You are on page 1of 1

//Keltner Bands for Amibroker//

Periods = Param("Periods", 21, 2, 300, 1 );

Width = Param("Width", 1.35, 0.05, 10, 0.05 );

CenterLine = EMA(c, Periods );

KTop = CenterLine + Width * ATR( 21 );

KBot = CenterLine - Width * ATR( 21);

KTop2 = CenterLine + Width * 2.7 * ATR( 21 );

KBot2 = CenterLine - Width * 2.7 * ATR( 21);

Plot( KTop, "KBTop" + _PARAM_VALUES(), Colorblue, Styledashed );

Plot( KBot, "KBBot" + _PARAM_VALUES(), Colorblue, Styledashed );

Plot( KTop2, "KBTop" + _PARAM_VALUES(), Colorred, Styledashed );

Plot( KBot2, "KBBot" + _PARAM_VALUES(), Colorred, Styledashed );

You might also like