Skip to main content

Keltner Bands for Amibroker (AFL)

santosh.hatgi over 12 years ago Amibroker (AFL)

  • Rating:
    5 / 5 (Votes 1)
  • Tags:
    bands, amibroker

smoother than Bolinger Bands. Good for entry exit when Price is near the band.
Copy pest code in editor and once saved directly drag and drop to price chart. Works well for all time formats.

Screenshots

Indicator / Formula

Copy & Paste Friendly
_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", colorCycle );
Style = ParamStyle("Style");

CenterLine = MA( P, Periods );
KTop   = CenterLine + Width * ATR( Periods );
KBot = CenterLine - Width * ATR( Periods );

Plot( KTop, "KBTop" + _PARAM_VALUES(), Color, Style ); 
Plot( KBot, "KBBot" + _PARAM_VALUES(), Color, Style ); 
_SECTION_END();

1 comments

Leave Comment

Please login here to leave a comment.