PureBytes Links
Trading Reference Links
|
Can someone tell me why this indicator will not flag +1 or -1 when it makes
higher low swings or lower low swings? If not, anyone have another
solution?
Thanks.
Tom Cathey
{ SwingLow(OCCURANCE,PRICE,STRENGTH,LENGTH) - for reference}
Var:
MA(0),Trend(0);
MA=Average(Close,20);
If SwingLow(2,MA,10,30) < SwingLow(1,MA,10,30) then Trend= 1;
If SwingLow(2,MA,10,30) > SwingLow(1,MA,10,30) then Trend= -1;
Plot1(Trend,""); {+1 or -1}
|