Download MetaTrader 5

OnTester Forward Test

To add comments, please log in or register
Learning MQL5? Start with documentation!
Henrique Vilela
1232
Henrique Vilela 2016.07.25 20:39 

Hi, 

There's a way to identify if the OnTester call is for a regular or a forward test?

It's called twice per test when the forward test is used, one of each time period. I just would like to identify which one it is. 

Thank you in advice. 

Stanislav Korotky
17918
Stanislav Korotky 2016.07.26 13:08  
I did this by storing first operation datetime in every run - this is balance deposit. All backtest runs have the same A datetime, and all forward runs have the same B datetime. B > A.
To add comments, please log in or register