what is a big mistake here ....

 

what is my big mistake here.....any help


Please replace your code here using the SRC button. 

 

What error are you getting?

What is it suppose to be doing? 

 

  1. Play video
    Please edit your post.
    For large amounts of code, attach it.

  2. //int limit = Bars - counted_bars;   // first time counted = 0
    int limit = Bars - 1 - counted_bars; // loop from Bars - 1 .. 0

  3. high1=High[i+1];
    Your look back is 1 so
     int counted_bars=IndicatorCounted();
     if(counted_bars < 1) counted_bars = 1; // Lookback of 1

  4. what is my big mistake here.
    Not specifying what the problem is.
Reason: