Use Debugger with Historical Data?

 
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.
 

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).

 
Gooly,

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

Thanks.
 

like (untested!)

int OnTick() { 

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

This calculates always the available bars of the actual chart!

Reason: