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...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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-
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?