Strategy Tester OnTick is missing a lot of ticks

 

Hi,

I've recently encountered unexpected results when testing my EA on MT4's Strategy Tester.

After a little investigation, I've suspected that OnTick() function does not actually get called on every tick,

So I've created a new, very simple 'EA'.

The only thing in this EA is this line of code under OnTick- 

void OnTick()
  {
//---
   Print("Current Date- ", TimeToStr(TimeCurrent(), TIME_DATE));
  }


To my surprise-

The backtest is sometimes missing whole days of ticks (!!!)


I've downloaded tick data from DukasCopy,

And also, When checking 'Visual Mode', I can clearly see on chart that the tick data is available,

So I don't understand why the Strategy Tester is missing those ticks.


Attached a screenshot of backtested settings and the code for the 'EA'.

Strategy Tester settings is-

Model- 'Every Tick'

Optimization is off


I've tried searching in google and in here, but didn't find a single person complaining about this issue.


Do you guys have any idea why I'm getting this weird behaviour?

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...
 

Hi, 

Did you find an answer? 

I have exactly the same problem and I am looking for a solution. 

 
AMI289: I've downloaded tick data from DukasCopy,

But didn't create all timeframes with that data.