Classical MACD lines with filled OSMA on the chart.
Slow MA is calculated using ЕМА.
Histogram can be scaled by changing parameter OsmaX.
Draw buffer ordering has changed, so MACD line draws above.
OSMA indicator has added to chart.
Translated from Russian by MetaQuotes Software Corp.
Original code: http://www.mql5.com/ru/code/9318