Skip to main content

ATR Breakouts for Amibroker (AFL)

kamalcharan about 12 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 3)
  • Tags:
    amibroker, channel

Uses ATR channel breakouts. Excellent one for positional trades and not suitable for intraday

Indicator / Formula

Copy & Paste Friendly
Plot( C, "Close", colorBlack, styleNoTitle | ParamStyle("Style") | GetPriceStyle() );


_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 50, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style")|styleNoTitle ); 
_SECTION_END();


Plot( EMA(Close,50) + (2*ATR(20)), "Long Entry Threshold", colorGreen, styleLine|styleThick );
Plot( EMA(Close,50) - (2*ATR(20)), "Short Entry Threshold", colorRed, styleLine|styleThick );


Plot( EMA(Close,50) + (ATR(20)), "Short Stop Loss", colorViolet, styleLine|styleDashed );
Plot( EMA(Close,50) - (ATR(20)), "Long Stop Loss", colorBrown, styleLine|styleDashed );

1 comments

Leave Comment

Please login here to leave a comment.