Type : Indicator, Name : Keltner Bands
input: Price(close), MALen(10), Const(.8);
vars: Centline(0), AvgRange(0), Upper(0), Lower(0);
CentLine = average(Price,MALen);
AvgRange = average(TrueRange,MALen);
Upper = CentLine+(AvgRange*Const);
Lower = CentLine-(AvgRange*Const);
plot1(Upper,»Upper»);
plot2(Lower,»Lower»);