+91-0000000000

}

Monday – Friday : 9:00 AM – 6:30 PM

MACD BB With Sar Stops

This AFL combines the MACD indicator with Bollinger Bands and SAR stops. Integrated with an AmiBroker data feed, it provides traders with comprehensive signals from multiple indicators, aiding in more informed trading decisions.

/
_SECTION_BEGIN("MACD");

SetChartBkColor( colorBlack ) ;
f = Param("fast Dema",12,1,50,1);
s = Param("Slow Dema",26,2,100,1); 
A1=DEMA(C,f)-DEMA(C,s); 
BBtop=BBandTop(A1,5,.5); 
BBbot=BBandBot(A1,5,.5);
//Color=IIf(a1<0 AND a1>Ref(a1,-1), colorBrightGreen,IIf(a1>0 AND a1>Ref(a1,-1),colorBrightGreen,IIf(a1>0 AND a1 bbtop, colorBrightGreen, IIf(a1 < bbbot,colorRed,colorYellow));
Plot(a1,"MACD",color,styleDots+styleLine);
Plot(BBtop,"",colorYellow,styleDashed);
Plot(BBbot,"",colorYellow,styleDashed);
Plot(0,"",31,styleNoLabel);
_SECTION_END();

Plot( EMA( a1, 9 ), "", colorBlue, styleThick ); 
thick = Param("thickness",0.1,0.1,5,0.1);
//Plot(6, "", Color, styleOwnScale| styleArea|styleNoLabel,-0.5,100);
PlotOHLC(0,thick,-thick,0,"",Color,styleCloud+styleNoLabel);


_SECTION_END();

Open chat
1
Hi, how can I help you?