Do you have over 5 years of M1 history?
Keith Watford #:
Do you have over 5 years of M1 history?
Do you have over 5 years of M1 history?
Ah... I would have expected a different error code such as
4073 | ERR_NO_HISTORY_DATA | No history data |
not "no memory for history" - but there you go, thanks for the heads up. I changed the date range in testing to be within only a couple days and that worked
Thanks!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am working on an EA in MT4, trying to take advantage of some multi-timeframe features. In summary, my current EA runs on a PERIOD_D1 tf and I want to check the current time on PERIOD_D1 tf to manage housekeeping functionality.
To isolate the problem I made the following toy EA. This is all that is in my "iTimeTest.mq4" file:
Attaching it to a chart directly "live" it acts as expected, an example from a successful log entry. I have an actual time value and no error:
But, when run in the strategy tester it does not read the time correctly, instead returns 1970.01.01 00:00:00, and shows the error 4074:
4074
ERR_NO_MEMORY_FOR_HISTORY
No memory for history data
I have a metric tonne of memory on my workstation (128 GB RAM), and as I run the tests above with Windows, Outlook, MT4 + MT5 and Chrome I am only using 13 GB of it. So this error cannot truly be due to the memory available to the app via RAM.
I have restarted the PC, and of course restarted MT4 multiple times.
I am being careful to only select the same symbol for both the EA and the symbol in the strategy tester to eliminate accidental "multi-symbol testing" as a source of the problem. The data provider is OANDA, just using a vanilla DEMO account. This issue does not come up in MT5.
Can anyone else replicate the above?