// Downloaded From https://www.WiseStockTrader.com
_SECTION_BEGIN("MACD");
r1 = Param( "Fast avg", 10, 2, 200, 1 );
r2 = Param( "Slow avg", 15, 2, 200, 1 );
r3 = Param( "Signal avg", 1, 1, 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", colorDefault ), styleNoTitle | ParamStyle("Histogram style", styleHistogram | styleNoLabel, maskHistogram ) );
 Plot(0, "", colorBlue, 1);
 Plot(0.25, "", colorLightGrey, styleLine | styleNoLabel);
Plot(-0.25, "", colorLightGrey, styleLine | styleNoLabel);
SetGradientFill( colorGreen, colorRed, 0, GetChartBkColor() ); 
Plot(ml, "Sterngth" + _PARAM_VALUES(), colorDefault, styleLine | styleGradient );
_SECTION_END();