Topic: Did not have the same range of data in mt4 as in eastudio
What could it be. I download data from data service. Also download data for mt4 and import it correctly.
Now when i want to backtest e.g from 1.1.2007 to 22.1.2020 i get this in my journal on mt4.
2020.01.31
2020.01.31 21:15:59.395 Tester: template 'M:\MT4Back\templates\tester.tpl' applied
2020.01.31 21:15:59.397 TestGenerator: file "M:\MT4Back\tester\history\EURUSD60_0.fxt" is read-only
2020.01.31 21:15:59.397 TestGenerator: symbol EURUSD period 60 model 0 from [b]2017.01.01 to 2020.01.05[/b]
2020.01.31 21:15:59.400 2007.01.08 00:00:00 Portfolio Expert EURUSD H1 inputs: Entry_Amount=1; Base_Magic_Number=100;
2020.01.31 21:15:59.442 2017.01.02 00:00:00 Portfolio Expert EURUSD H1 EURUSD,H1: array out of range in 'Portfolio Expert EURUSD H1.mq4' (578,15)
2020.01.31 21:15:59.442 2017.01.02 00:00:00 Testing pass stopped due to a critical error in the EA
2020.01.31 21:15:59.452 EURUSD,H1: 115 tick events (18727 bars, 77111641 bar states) processed in 0:00:00.047 (total time 0:00:00.047)
Here is the ea.
Also this problem i have had with
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
double Close(int bar)
{
return Close[bar];
}
So when i use backtest date from 1.1.2017 - 5.1.2020 it is working.
But why i have a json file with data from 2007 and in mt4 i have data from 2017??
In my mt4 history center there are data from 2007..
Ok with open prices it is working but why not with every tick in the backtest settings?