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.
O
Best posts made by oseiwe
-
RE: Candle position is lost when using a multi-symbol EA on MT5posted in Bug Reports
-
Set Current Timeframe For Next Blocks Not Workingposted in Bug Reports
It's taken me hours of troubleshooting to realise that the "Set Current Timeframe..." block does not work properly. In the below link, I have added two "Draw Line" blocks - both drawing trend lines. However one derives (or is supposed to derive) its timeframe from the "Set Timeframe..." block, while the other has it manually set to "H1".
If you run the EA on a 1min chart, you will notice that the two lines drawn are different. The manually set one is correct while the other isn't.
-
RE: Set Current Timeframe For Next Blocks Not Workingposted in Bug Reports
@roar Precisely. I think what's happening is that it only works on fields named "Timeframe" and nothing else. So even fields named "Candle Timeframe" will not work.
One could argue that it is working according to specification

