Solved.
Not enough historical data.
Open a window (In my case it was GBPJPY)
For all relevant time frames:
Set so window do not automatically jumps to the last bar
press PgUp until enough historical data can be seen on screen.
I knew all this. I did not think it was needed when programmatically getting historical data since it is done automatically when doing optimization runs.
I do opt run on one computer and test on another
So another solution is to run an optimization run on the MT5 where you will run the EA.
Solved.
Not enough historical data.
Open a window (In my case it was GBPJPY)
For all relevant time frames:
Set so window do not automatically jumps to the last bar
press PgUp until enough historical data can be seen on screen.
I knew all this. I did not think it was needed when programmatically getting historical data since it is done automatically when doing optimization runs.
I do opt run on one computer and test on another
So another solution is to run an optimization run on the MT5 where you will run the EA.
Thanks!
Thats a new one for me.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
On some pairs I get problems creating a buffer for moving average. It is multicurrency EA. Error 4806, data not found.
I even tried with some retry code but it does not help, see below. Are there any other means of getting to this data.