indicator generation lag in backtesting??

 

when I code an EA and backtest on a time range the EA doesnt start testing at the beginning of the range, it doesnt have indicator values immediately--can be over a month for something like 200mva--can I test from the beginning of range ??

 
texasron:

when I code an EA and backtest on a time range the EA doesnt start testing at the beginning of the range, it doesnt have indicator values immediately--can be over a month for something like 200mva--can I test from the beginning of range ??

Where would you like the data to come from that is before your "range" ?
 
texasron: for something like 200mva--can I test from the beginning of range ??
The tester only creates 100 bars before the start time.
 

can the number of prerange bars be changed?--different indicators kick in at different times making the first trades/time comparisons inaccurate!-------

 
texasron:

can the number of prerange bars be changed?--different indicators kick in at different times making the first trades/time comparisons inaccurate!-------

Yes,  start the test run at an earlier date and   return(0);  at the beginning of start until you ave reached the actual date you want to run from.
 
Have the EA check for sufficient history (Bars) before starting to trade.
Reason: