Download MetaTrader 5

Debugging when the markets are closed

To add comments, please log in or register
1000 paid orders are executed in Freelance service. Sign up!
johnmcgiles
34
johnmcgiles 2010.09.20 00:06 

Is it possible to debug an expert advisor when all the markets are closed (ie with historical data)?  

So for example, I'm programming an EA on Sunday and I want to debug it but no market is open.  Do I have to wait until Monday to start debugging or is it possible to debug this with historical data?

Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Symbol Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Environment State / Symbol Properties - Documentation on MQL5
Pawel Wojnarowski
685
Pawel Wojnarowski 2010.09.20 11:25  
johnmcgiles:

Is it possible to debug an expert advisor when all the markets are closed (ie with historical data)?  

So for example, I'm programming an EA on Sunday and I want to debug it but no market is open.  Do I have to wait until Monday to start debugging or is it possible to debug this with historical data?

I've got the same problem. Seems that it is impossible, as EAs work on OnTick() function and obviously there are no ticks during the weekend. Personally I am using Print() to print variables to journal in the tester as a workaround while backtesting on the historical data - it's better than nothing.

The other way is to use OnTimer() - Rosh has once suggested it. 

To add comments, please log in or register