How to test if there are enough candles on the chart?

 

1) If i set a backtest to run from january 1 2012 to december 30 2012, and let's say if i have any indicator that collects data from the past 200-300 candles, does the strategy tester let the indicator to use data from 2011 if we currently are at january 1 2012 and dont have 200 candles formed yet, or it will fill it up with black data i.e no bars?

2) Given the question above, if it wont let us peek in to 2011 and use that data, or even if, how can i test if there are atleast 200-300 bars formed already on the chart, so for D1 TF already 200 days passed?

Is: Mathabs(Close[200]-Open[200])!=0 reliable or there exists a better code for it to test

Please help guys!

 
  1. Tester had always guaranteed that you have at least 100 bars and current versions will provide 1,000 if you have the history.
  2. if( Bars >= 200) or iBars(...) >= 200
 
WHRoeder:
  1. Tester had always guaranteed that you have at least 100 bars and current versions will provide 1,000 if you have the history.
  2. if( Bars >= 200) or iBars(...) >= 200

1) I have the latest version and i have data from 2001 but thats not the case i just wanted to make sure what the strategy tester will do if i start from january 1 and the indicator implies data from previous times


2) That does count the number of bars right, so for example if we have like 10 gaps in between the bars where there should be candles, those will not be counted right?