Skip to main content

3 6 18 Crossover System for Amibroker (AFL)

Rakesh Kumar almost 15 years ago Amibroker (AFL)

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

This system works better on 30 Min, 45 Min, 1 Hour charts & may be use on daily chart. White up/down arrows are alerts to buy/Sell & Green/Red arrows are actual buy/sell indicator. Very useful in trend market.

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Background_Setting");
SetChartBkGradientFill( ParamColor("BgTop", colorBlack),
ParamColor("BgBottom", colorDarkGrey),ParamColor("TitleBack",colorLightGrey)); 
SetChartBkColor(ParamColor("Outer Panel",colorPaleBlue));
_SECTION_END();

_SECTION_BEGIN("EMA");
Plot(EMA(Close,3),"EMA3",colorYellow, style=styleThick);
Plot(EMA(Close,6),"EMA6",colorGreen, style=styleThick);
Plot(EMA(Close,18),"EMA18",colorRed, style=styleThick);
_SECTION_END();

Buy=Cross(EMA(Close,3),EMA(Close,6));
Sell=Cross(EMA(Close,6),EMA(Close,3));
Short=Sell;
Cover=Buy;
shape = Buy * shapeSmallUpTriangle + Sell * shapeSmallDownTriangle;
PlotShapes( shape, IIf( Buy, colorWhite, colorWhite ), 0, IIf( Buy, Low, High ) );

Buy=Cross(EMA(Close,6),EMA(Close,18));
Sell=Cross(EMA(Close,18),EMA(Close,6));
Short=Sell;
Cover=Buy;
shape = Buy * shapeSmallUpTriangle + Sell * shapeSmallDownTriangle;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low, High ) );



_SECTION_BEGIN("Basic Chart");
Plot(Close,"Price",colorWhite, styleCandle);
SetChartOptions(0,chartShowArrows|chartShowDates);
_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.