Open prices only tester is skipping period

 

I am trying to test ea on open prices only  from 2015.1.1 to 2020.4.7 but MT4 is skipping years and tests only 2015.1.1 to 2017.8.7


chart H1 H4

when I use M1 open prices only then it works fine


how to fix this?

Every tick test works fine for any period

GBPUSD60 - 7 MB

GBPUSD1 - 380 MB


with or without bar control still same bug



 

 
void OnTick()
{
 static datetime Time0; if (Time0 == Time[0]) return; Time0 = Time[0];
printf ("new bar here?");
return ;

The Fundamentals of Testing in MetaTrader 5
The Fundamentals of Testing in MetaTrader 5
  • www.mql5.com
The idea of ​​automated trading is appealing by the fact that the trading robot can work non-stop for 24 hours a day, seven days a week. The robot does not get tired, doubtful or scared, it's is totally free from any psychological problems. It is sufficient enough to clearly formalize the trading rules and implement them in the algorithms, and...
 
Gin2020: but MT4 is skipping years and tests only 2015.1.1 to 2017.8.7
  1. Why did you post your MT4 question in the Root / MT5 EA section instead of the MQL4 section, (bottom of the Root page?)
              General rules and best pratices of the Forum. - General - MQL5 programming forum
    Next time post in the correct place. The moderators will likely move this thread there soon.

  2. Download history (current TF and all lower ones) for your test period.

  3. here's how you can get all available from your broker.
 
Gin2020:


In future please post in the correct section.

I will move this to the MQL4 and MT4 section

Reason: