Use Debugger with Historical Data?

Back to topics list To post a new topic, please log in or register
avatar
14
jt27 2016.06.01 03:19
 
Is it possible to use the debugger with historical data with MQL4?  I see the button for it and the tab in the options menu to set it up but the 'Start on History Data' button is greyed out.
avatar
2017
gooly 2016.06.01 23:29 #
 

1) You can't use the strategy tester (and its historic data)  with the debugger.

2) In your EA you can start the calculation at the beginning of your chart (Bars - n).

avatar
2
marcboggs 2016.07.01 13:40 #
 
Gooly,

Can you give a code example of how to do this?

Thanks.
avatar
2017
gooly 2016.07.01 13:51 #
 

like (untested!)

int OnTick() { 

     int bar = Bars; 
     while (--bar>=0) { 
         ...
     }
}

This calculates always the available bars of the actual chart!


Back to topics list  

To add comments, please log in or register