PureBytes Links
Trading Reference Links
|
> Value1 = TLValue(Low, 2, High, 1, 0);
> Value2 = TLValue(High, 2, Low, 1, 0);
>From the online help:
Note: You must offset the price by its corresponding bar number. For
example, if you wanted the trend line angle for a line drawn from the
Close of ten bars ago to the Close of the current bar, replace the
parameters PRICE1, BAR1, PRICE2, and BAR2 would be replaced with the
values Close[0], 0, Close[10], and 10 respectively.
So it should be:
Value1 = TLValue(Low[2], 2, High[1], 1, 0);
Value2 = TLValue(High[2], 2, Low[1], 1, 0);
--
Dennis
|