Michael
Michael
Michael
Added topic Offline charts -> learning how to create one
So bear with me. When I run the following code, I get an offline chart but when I open the offline chart, all I get is a "waiting for update".  Anyone know why? I know, I'm just copying EURUSD data, but like I said; I'm learning. The sub class
Michael
Added topic Why do I get "no lines" in some spots?
Take a look at the picture. Here's the code: //+------------------------------------------------------------------+
Michael
Added topic What's the difference AccountInfoDouble(ACCOUNT_MARGIN_SO_CALL) and AccountInfoDouble(ACCOUNT_MARGIN_SO_SO)
They're both listed in percentage terms. AccountInfoDouble( ACCOUNT_MARGIN_SO_CALL )  = 50 and AccountInfoDouble(ACCOUNT_MARGIN_SO_SO) = 30. I've done the RTFM thing and still don't get it. So, If I'm getting margin called at 50% (all positions
Michael
Added topic TRIX indicator
I just recently started playing around with MT5 (I live in the U.S. so my options are greatly limited as to brokers who use MT5). I found an indicator in there called TRIX.  And I really like it.  So I took upon myself to try to convert the
Michael
Added topic RefreshRates()
Great for the current chart.  But my EA needs to pull the latest Bid/Ask pair from other symbols.  How can this be done efficiently?  I am assuming MarketInfo?  ex. double NJask=MarketInfo("NZDJPY",MODE_ASK);
Michael
Added topic Found something in my travels around metaeditor
If this isn't "new", then I apologize ahead of time. What is the "database" tab in the navigator window for?  It looks pretty useful.  My googling skills must be off lately because I can't find any information anywhere on it. TIA
Michael
Added topic Color values in global variables
So, what I'm trying to do is read values in from a text file and take those values and set them to a global variable. Deriving Doubles, Integers and bool's from a string value is, setting to a double, and then back to original format in other
Michael
Added topic Array out of range ..... again
Here's the code: //+------------------------------------------------------------------+
Michael
Added topic Predefined structures "type ahead"
This one is odd. Take the following: MqlDateTime tl; Now, I should be able to type "tl." (without the "") and see what the options are (maybe a better word would be "intellisense").  After the update of Windows 10 today, it has
Michael
Added topic Show text object
Can someone tell me why this text object doesn't appear on the chart?  It shows in the object list. //+------------------------------------------------------------------+
Michael
Added topic Volatile pairs
Dumb question for those who have been trading for more than 2 years live (automated or manual) What would you consider to be the top 10 most volatile pairs? Thanks
Michael
Added topic Error 4024 on ChartOpen
In the code below, the error comes up on ChartOpen.  Now, despite the error; the chart still opens.  After going through a few things, I actually found out the problem.  MT4 using too much memory.  I made the following changes
Michael
Added topic DLL Hell
We've all tried it.  There's something we want to do in a DLL but Metatrader is still stuck in the 19th century.  For my inquiry, I give you this: The EA: //+------------------------------------------------------------------+
Michael
Added topic Better get an orders current profit
Not talking pips here. But which formula is more accurate: double TotalProfit= OrderProfit (); or double TotalProfit= OrderProfit ()+ OrderSwap ()+ OrderCommission (); In other words, does OrderProfit() automatically include OrderSwap() and
Michael
Added topic Unresoved import call (x64)
Now, the code I'm going to post works flawlessly in MT4 and the platform is set to x86 in visual studio.  But in MT5 (x64) and x64 set as the platform in Visual Studio, I get "Can not find < function name> inside <dll name>.dll". EA
Michael
Added topic DLL for MQL4 and C#
Good news is I'm trying to do this in only 1 way.  C# managed program to MQL4. Now, when the DLL code is this: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using
Michael
Added topic Invalid trade parameters (Errorcode 3)
I'm not sure why, but here's the code:    double myLot= 1.07 ;    int Ticket= OrderSend ( Symbol ()
Michael
Added topic Is there a way to change this?
I'd like to actually put the name of the indicator in there.  Is it possible
Michael
Added topic Preference question
My spelling sucks today!  :P Do you like to have indicators in the same window with your candlesticks/bars?  Or do like to have them in a separate windows to avoid "clutter"?  I'm writing a family of indicators and am stuck on this
Michael
Added topic Gator error
Can someone please tell me why this: void OnStart ()   {    double LipsCurrent= iGator ( Symbol (), 0 , 13 , 8 , 8 , 5 , 5 , 3 , MODE_SMMA , PRICE_MEDIAN ,MODE_GATORLIPS, 4 );    double TeethCurrent= iGator ( Symbol ()