Download MetaTrader 5
To add comments, please log in or register
Are you accustomed to using the standard library? MQL5 has one!
Winsor Hoang
4743
Winsor Hoang 2015.01.28 05:08 

I ran across a website that mention about a MQL code snippet, which will enable you to correctly backtest your strategy on price based charts. Does anyone have more info on this? 

 

#include <CustomChartingBacktest.mqh>

and at the very top of the void OnTick() function add the following function call:

if(skipFirstTickOnBacktest()) return; 

/
To add comments, please log in or register