Traders Laboratory - View Single Post - Nasdaq5048: Bars Back that Price Occurred
Thread
:
Nasdaq5048: Bars Back that Price Occurred
View Single Post
#
1
(
permalink
)
01-04-2007, 10:06 PM
ant
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;
ant
View Public Profile
Send a private message to ant
Find all posts by ant
View ant's Videos
ant's Trade Info