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
So this error also occurs on a demo account(not in the tester)?
And it is better to read about the history for testing in the "Testing of trading strategies" section.
I do not really understand what "on a demo account (not in the tester)" means.
My file/login is the new test account of MetaQuotes-Demo server.
I go to the strategy view/tester. I start my Expert Advisor from 01.01.2012 and get error.
I have been implementing it since 01.01.2011 up to today. Everything is running without any problems.
I go to view/strategy tester. I start my EA from 01.01.2012, I get error.
I start it from 01.01.2011 till today. Everything is running without any problems.
Read about testing basics: https://www.mql5.com/ru/articles/239
Quotation:
The testing agent downloads only the missing history with a small margin to provide the necessary data on the history to calculate the indicators at the start of testing. The minimum amount of history to be downloaded from the trade server for timeframes D1 and less is one year. So, if we start testing on the interval 2010.11.01-2010.12.01 (testing on the interval of one month) with the period M15 (each bar is 15 minutes), the terminal will request the history for the whole year 2010.
Well, it's easy. Open a chart on a demo account with the needed symbol-period pair (for example, EURUSD, 10 min) and attach your Expert Advisor to this chart. Then look at the logs in "Tools" (Ctrl+T), "Experts" tab.
It works. Logged the result of the calculation of this function. Outputs every tick, the result is similar to the truth.
So the glitch is in the tester.
Well, that's good! :) Now try to look through the links about testing described above. They are similar, the text of the article has been moved to the Reference.
I have read it carefully. All I got was that if something is not loaded, it will be loaded automatically when the data is accessed.
I solved the problem in a different way. However, I don't like this way of solving the problem too much. I had changed _Period in the entire program to PERIOD_M10 and changed the timeframe in the tester from 10 minutes to 1 month.
bool SymbolSelect(
string name, // имя символа
bool select // включить или выключить
);
string name, // имя символа
bool select // включить или выключить
);
The script in question is "intCheckLoadHistory(string symbol,ENUM_TIMEFRAMES period,datetime start_date)".
It is stated here https://www.mql5.com/ru/docs/series/timeseries_access
The script in question is "intCheckLoadHistory(string symbol,ENUM_TIMEFRAMES period,datetime start_date)".
It's available here https://www.mql5.com/ru/docs/series/timeseries_access
I will try it later.
Thank you very much for your help!