_SECTION_BEGIN("Keltner Bands");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
Color = ParamColor("Color", colorDarkTeal );
Style = ParamStyle("Style", styleLine | styleNoLabel);
CenterLine = EMA( P, Periods );
KTop = CenterLine + Width * ATR( Periods );
KBot = CenterLine - Width * ATR( Periods );
Plot( KTop, "KBTop" + _PARAM_VALUES(), Color, styleNoTitle,0,0,1,0,0);
Plot( KBot, "KBBot" + _PARAM_VALUES(), Color, styleNoTitle,0,0,1,0,0 );
Plot( CenterLine, "KMid" + _PARAM_VALUES(), Color,styleNoTitle,0,0,1,0,0 );
_SECTION_END();