+91-0000000000

}

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

B-MACD BUY SELL

The B-MACD BUY SELL strategy relies heavily on Amibroker data for its decision-making process. Traders using this system need access to high-quality Amibroker data feed to accurately identify buy and sell signals, ultimately optimizing their trading outcomes.

// MACD indicator,
//MODIFIED=CASONI


PeriodFast = Param( "Fast EMA", 12, 2, 200, 1 );
PeriodSlow = Param( "Slow EMA", 26, 2, 200, 1 );
PeriodSignal = Param( "Signal EMA", 9, 2, 200, 1 );
MACDInd = MACD(PeriodFast, PeriodSlow );
SigInd = Signal(PeriodFast, PeriodSlow , PeriodSignal );
HistInd = MACDInd - SigInd ;
_N( macdStr = WriteVal( PeriodFast, 1.0 )+","+WriteVal( PeriodSlow , 1.0 ) );
_N( sigStr = macdStr + ","+WriteVal( PeriodSignal , 1.0 ) );
Plot( MACDInd, "MACD", colorBrightGreen);
Plot( SigInd , "SIGNAL", colorRed);
Buy=  MACDIND > SigIND;
Sell= MACDIND < SigIND;
Buy=ExRem(Buy,Sell); Sell=ExRem(Sell,Buy); 
PlotShapes( shapeHollowUpArrow* Buy , colorBrightGreen ,0);
PlotShapes( shapeHollowDownArrow* Sell, colorRed ,0);
Plot(0,"",colorDarkBlue,styleLine);

Filter = Buy OR Sell;
Buy=ExRem(Buy,Sell); Sell=ExRem(Sell,Buy); 
AddTextColumn(FullName(),"Name");
AddColumn( Buy, "BUY" );
AddColumn( Sell, "SELL" );

Open chat
1
Hi, how can I help you?