+91-0000000000

}

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

MACD - Moving Average Convergence Divergence

The MACD AFL calculates the difference between two exponential moving averages. Leveraging amibroker data feed, it generates signals based on the convergence or divergence of these moving averages, assisting traders in identifying potential buy or sell opportunities.

/
r1 = Param( "Fast avg", 12, 2, 200, 1 );
r2 = Param( "Slow avg", 26, 2, 200, 1 );
r3 = Param( "Signal avg", 9, 2, 200, 1 );
Plot( ml = MACD(r1, r2), StrFormat(_SECTION_NAME()+"(%g,%g)", r1, r2), ParamColor("MACD color", colorRed ), ParamStyle("MACD style") );
Plot( sl = Signal(r1,r2,r3), "Signal" + _PARAM_VALUES(), ParamColor("Signal color", colorBlue ), ParamStyle("Signal style") );
Plot( ml-sl, "MACD Histogram", ParamColor("Histogram color", colorBlack ), styleNoTitle | ParamStyle("Histogram style", styleHistogram | styleNoLabel, maskHistogram ) );

Open chat
1
Hi, how can I help you?