[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ati_TLValue function help?



PureBytes Links

Trading Reference Links

Is there a problem with the Trendline Value function?

When I plot the code below the values are wrong. I want
to plot the value of the trend line above the current bar
starting from the low of 2 bars ago and the second point 
equal the high of 1 bar ago.

fig. 1
******************************

      bar 2  /<-- Value here?
	 |  /|
	 | / |
	 |/| |
 	   | bar 0
           |
        bar 1

******************************
Code for Indicator:

Value1 = TLValue(Low, 2, High, 1, 0);
Value2 = TLValue(High, 2, Low, 1, 0);

Plot1(Value1,"Up");
Plot2(Value2,"Dn");

I've tried:

Plot1(Value1[1],"Up");

This appears closer, but the values still look wrong.

Any ideas?

Randy