PureBytes Links
Trading Reference Links
|
Try this my friend.
Input: AvgLen(6), ATRLen(15), IBMult(2), OBMult(3);
Vars : Avg(0), ATR(0), UpperBand1(0), UpperBand2(0),
LowerBand1(0), LowerBand2(0) ;
Avg = Average (Close, AvgLen) ;
ATR = AvgTrueRange(ATRLen) ;
UpperBand1 = Avg + (IBMult * ATR) ;
UpperBand2 = Avg + (OBMult * ATR) ;
LowerBand1 = Avg - (IBMult * ATR) ;
Lowerband2 = Avg - (OBMult * ATR) ;
If UpperBand2 > 0 then Plot1 (UpperBand2, "StollerHi1") ;
If UpperBand1 > 0 then Plot2 (UpperBand1, "StollerHi2") ;
If LowerBand1 > 0 then Plot3 (LowerBand1, "StollerLo1") ;
If LowerBand2 > 0 then Plot4 (Lowerband2, "StollerLo2") ;
|