Traders Laboratory - View Single Post - Nasdaq5048: Bars Back that Price Occurred
View Single Post
  #1 (permalink)  
Old 01-04-2007, 10:06 PM
ant's Avatar
ant ant is offline
ant has no status.

 
Join Date: Sep 2006
Posts: 293
Thanks: 0
Thanked 3 Times in 1 Post
Nasdaq5048: Bars Back that Price Occurred

Nasdaq5048,

The following indicator draws a trendline between 2 bars for each price that they have in common. Is this what you're trying to do?

variables: TickSize( MinMove / PriceScale ), Price( 0 ), TLID( 0 ); if CurrentBar > 2 then begin Price = Low; while Price <= High begin if Price >= Low[1] and Price <= High[1] then TLID = TL_NEW(Date[1], Time[1], Price, Date, Time, Price); Price = Price + TickSize; end; end;

Reply With Quote