Paul, I was just going thru my trading books & there is a bit more 
  to the countback line.  It looks like the 3rd last significant high, 
  ignoring inside days.  I think this will need a bit more code.  I 
  found something on another forum, but it seems to give CBL exits only, not 
  entries.
   
  
    
    
    
    
    
to code the countbackline indicator
    setup 3 variables
    cb1h, cb2h, cb3h
    cb1h = cb2h = cb3h = h
    and in a for loop to do test and set cbxh for each 
    bar
    and so can use this info to set
    
 
    
      
      
      
      Hi, 
does anyone know how to do calculation similar to a 
      countback line for
entry. I am trying look back from today's high to 
      the last time the
high was greater & look to enter if this last 
      high was exceeded. This
is more that just a cross of the HHV in last 3 
      days, it would be any
day back from now. I think it needs looping but 
      sure how to get it to
work.
Dave