PureBytes Links
Trading Reference Links
|
Nice try, Mark...but it still gives a flat line.
I'm not sure if the "first occurrence" and "second occurrence"
of this function will do what we ask....tell if the avg is making
Higher low swings or Lower low swings.
Thanks anyway...
Tom
-------------
Mark Brown wrote:
try this, i didnt verify it...
Var: MA(0),UPTrend(0),DNTrend(0);
MA=Average(Close,20);
If SwingLow(2,MA,10,30) < SwingLow(1,MA,10,30) then UPTrend= 1;
DNTrend=0;
If SwingLow(2,MA,10,30) > SwingLow(1,MA,10,30) then DNTrend= -1;
UPTrend=0;
Plot1(UPTrend,"UPTrend");
Plot2(DNTrend,"DNTrend");
|