PureBytes Links
Trading Reference Links
|
Some people have expressed an interest so here it
is: (Set to plot on price data). I find these
an improvement over Bollinger Bands because
the always contain the price.
{****** Stoller Bands ****** }
{ Coded from Manning Stoller's TAG 97 Presentation }
{by David Fenstemaker }
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") ;
|