+91-0000000000

}

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

Debu MACD

Enhance your trend analysis with the Debu MACD AFL code for Amibroker. This code, available for free download, seamlessly integrates with the Amibroker data feed to provide a comprehensive view of trend dynamics. Whether you’re a trend follower or a momentum trader, the Debu MACD AFL code enhances your ability to identify potential trend changes. Download and integrate this code into your Amibroker platform to refine your trend-following strategy.

/
_SECTION_BEGIN("debu1");

//Title="this is for automatic wrapping of title text 
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +
WriteVal( V, 1.0 ) +
" {{VALUES}}", 
O, H, L, C, SelectedValue( ROC( C, 1 )) ));

// This part will plot the EMA value of 5days close and 6 days open price

P = ParamField("Price field_C",3);
Periods = Param("Periods for Close", 15, 2, 200, 1, 10 );
Plot( EMA( P, Periods ), "EMA_Close" + "("+periods+")", colorRed, styleThick ,styleLine);

Q = ParamField("Price field_O",4);
Periods = Param("Periods for Open", 15, 2, 200, 1, 10 );
Plot( EMA( Q, Periods ), "EMA_Open" +"("+periods+")", colorBlue, styleThick, styleLine);

// This part will plot Closing price with barstyle choosen by user

ChartStyl=ParamStyle("Chart Type", styleBar,maskAll );
Chartcolor=ParamColor("Chart Colour",maskAll); 
Plot(Close,"Closing price with5,6 EMA",Chartcolor,ChartStyl);


// This part will find the buy and sell point in the chart
Buy= MACD(12,26)>Signal(12,26,9);
Sell= Cross(EMA( Q, Periods ), EMA( p, Periods ));
Buy     = ExRem(Buy, Sell);
Sell    = ExRem(Sell, Buy);
Signalshape=Buy*shapeUpArrow + Sell*shapeDownArrow;
PlotShapes( Signalshape, IIf( Buy, colorGreen, colorRed ),0, IIf( Buy, Low, High ) );
//IIf (Buy,PlotShapes(shapeUpArrow,colorGreen,0,Low),PlotShapes(shapeDownArrow,colorRed,0,High));
_SECTION_END();

Open chat
1
Hi, how can I help you?