Problem in open position.
-
Hello fxDreema. All right? How long do not write here!
I'm having trouble not to open positions, do not know why.
In short, appeared to me the following message:log daily:
EG 0 18:00:20.040 Trades '559799': market sell 0.01 EURUSD
PM 2 18:00:28.578 Trades '559799': failed market sell 0.01 EURUSD [Market closed]
https://mega.co.nz/#!eZoDkBqQ!1aIr12aoI ... qQ6x38gqt0log experts
JQ 0 18:00:19.456 pz-turtle-trading-mt5 (EURUSD,D1) PZ Turtle Trading (My Alert Name) __ Sell (S1)
HN 0 18:00:28.578 TCF Trend MT RJ v2.0 (EURUSD,D1) 26
https://mega.co.nz/#!TUBX2JaC!KN47GcTIm ... NaD15nMpgII added the link to the EA files and the indicator for you to analyze what happened to me yesterday.
Indicator: turtle trading.ex5 24 KB
https://mega.co.nz/#!iI5hSRTTEA: TCF Trend MT RJ v2.0.mq5 200 KB
https://mega.co.nz/#!TdASXIyJNote. Could not attach the file, so this the link. Key to open the indicator and MQL5 EA sent by private message.
-
It says Market Closed here and there, but this row is interesting:
Heiken_Ashi (EURSGD,W1) array out of range in 'Heiken_Ashi.mq5' (71,32)
It seems that something is wrong in this indicator and maybe because of that it does not load. Check if everything ok with input parameters for this indicator.
The other indicators are probably fine.By the way, I'm really starting to dislike MetaTrader 5. I had conversation about some problems with another guy, from Brazil. The problem was that in some situation when the EA tries to close the position, opposite position with huge load is opened. And unfortunately I can't easily fix this issue, because MT5 is... stupid. It does not wait for it's own database to be updated before going to do something else, or something like that. And this is when OrderSend() is used, not OrderSendAsync(). You can also get a response from the server that is specific for OrderSendAsync() when using OrderSend().
So, if you can choose between MT4 and MT5, pick MT4! -
I'm using the MT5 for being better and more practical optimization, test forward, etc.
Also the site is in portuguese, making it too easy for us. This at the time here, and is being used in some brokers for trading stocks.