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

Re: value question 3



PureBytes Links

Trading Reference Links

John,

As far as I can tell, the "problem" with the LR
condition isn't really a problem at all. I didn't dig
deep enough into this to verify that LR is never
"pointing down" when the text plots, but here is what
I think is happening.

Apply the indicator code below to a chart, and you
will see that both the arctangent & LR conditions are
working OK (I separated the two conditions into two
separate plots).

The "problem" is that the ArcTangent condition is, by
far, the more restrictive of the two. In other words,
the LR can easily be TRUE while ArcTan is FALSE. But,
if ArcTan is TRUE, LR is always TRUE as well (at least
on the charts I applied it to).

LR doesn't restrict the output because it is a more
lax condition than ArcTan.

Cheers,

Lance



{*************************************************}
input:  AvLen(20), NumBars(1), length1(3);
vars: Price(0), s(0), u(0);

Price = Average(C,AvLen);
value1 = arctangent((Price-Price[NumBars])/NumBars);
value2 = LinearRegValueFC(Price, Length1, 0);

condition1 = value1 > 30;
Condition2 = value2 > value2[1];

If Condition1 then begin   
	           
S = TEXT_NEW(DATE,TIME,Low * .97,"30");

End;

If Condition2 then begin
	
U = TEXT_NEW(DATE,TIME,Low * .94,"LR");

End;