Candle position is lost when using a multi-symbol EA on MT5
-
I've been battling to make this work...until I realised it might be a bug...
I have attached an example project to demonstrate the issue.
Steps:- Ensure GBPUSD, EURUSD, AUDUSD and GBPJPY are present in the Marketwatch window
- Ensure the strategy tester window has the 1hr TF selected
- Ensure the attached EA is selected
- Ensure the symbol selected is GBPUSD
- Run the EA and let it run for a few bars (4 bars or more should suffice)
- Pause the EA
- Compare the hour displayed in the comment (on the top left of the window) with candle time of the current candle that has just been created. You will notice that the hours are different. The one in the comment lags behind
I have noticed that for every 2nd and 4th symbol in the Set "Current Market" for next blocks block, the candle id position lags behind by 1 candle. Hence it lags behind when symbol in the Condition block (block 3) is set to either EURUSD (which is the 2nd on the list) or GBPJPY (which is the 4th on the list)
This issue makes it near-impossible to backtest multiple symbols if the logic utilises candle id positions (eg check that candle ID 1 closed above candle ID 2)
-
Yes, apparently that is s bug. The admin should definitely take a look at this.
-
Ok great. Thanks @l-andorrà ...was beginning to think I was seeing things
-
I am marking this post as resolved as I have realised the issue is local.
I decided to test the same EA on another terminal/broker, and to my surprise it worked fine. Hence I reinstalled the terminal on which I initially experienced the issue, and that resolved the issue. -
Great news! Thank you for sharing.