Been coding in MT4 for years, as in like 15. Today either OrderSelect or OrderType no longer works. I can't get trades closed. I get error messages I don't even recognise. 2018.12.20 21:03:26.914 multi-order EA AUDJPY,M15: Trying to close...44108 2018.12.20 21:03:26.914 multi-order EA AUDJPY,M15
I used to do something like this to get the code to wait: if ( TimeCurrent () > lastChecked+( 60 * 15 )){ for ( int i = 0 ; i < OrdersTotal (); i++){ if ( OrderSelect (i,SELECT_BY_POS) > 0 ){ if (OrderType() == OP_BUY){ if
Hi Folks, I'm convinced there's an article that explains how to use the common data folder for classes. But I can't find it. I've searched via google and via this search form. I've tried to create classes in the folder, doesn't want to do it, I've tried to import the classes, no joy, I've tried to
Does anyone know if the new language in MT4 allows login of simultaneous accounts yet from one instance? Instead of having to maintain separate libraries be nice if I could maintain one and tell MT which account to use for which and the settings for that account. It looks to me from the help
For some reason my EA's files are no longer being read in the new editor. No error messages, but it doesn't get done. I presume it's a location issue. I started looking for information, can't find any. Does MT handle this now or do I have to specify where the folders are, till now I haven't had to
I've been testing code for months now, just letting it run. Must be on month 7 already. Was rock solid, then in the last week I've suddenly developed "terminated by timeout" issues. Didn't change anything my side. Anyone else having issues
Hi Folks, So I'm setting arrays, in particular I want to remember which pairs and profit for that pair per individual trade, which appear to be a problem already. I can't seem to have a String and Double Array, so Pairs[string 1][ double 1][double 1]; or Pairs[1][1][1] appears to be not possible? I
Hi guys, I'm using satellite comms, so I can't spend much time searching and browsing, bit expensive. What I need to do is close blocks of trades, say I have some buys open, say 0.01 lot, 0.05 lot and 0.14 lots = 0.2 lots total. Now I need to close 0.16 lots. So I would have to close a few trades
I'm battling with lots vs units oanda style.... My base is $USD - I want to sell $10000 eurusd @ 1.3890 and $10 000 eurjpy @ 105.97 each. So on the oanda platform it gives it as 7 179 units each, what would that be in lots for MetaTrader and how do I get there ? Probably going to kick myself, but
Hi Folks, I'm probably going to look like a right ass now, but I can't get this figured. Might be the flu that's fried the brain, but instead of hurting myself trying to figure this out I thought I'd ask. I want to calculate the positions value. So let's say I bought Eurusd 0.8 lots at 1.2345, the