+91-0000000000

}

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

MACD BB With Sar

MACD BB With Sar AFL integrates MACD, Bollinger Bands, and SAR indicators. Leveraging an AmiBroker data feed, it combines these signals to offer traders a holistic view of potential market movements, aiding in decision-making processes.

/
_SECTION_BEGIN("MACD");

SetChartBkColor( colorBlack ) ;
f = Param("fast ema",9,1,50,1);
s = Param("Slow ema",34,2,100,1); 
A1=MA(C,f)-MA(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.25,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?