MACDDivANY[definedindicator;shortperiod;longperiod;signalperiod;daysbefore]
SyntaxIn normal MACDDiv function the calculation is done using closing value but if instead of closing value you would like to go with any other value then use this indicator .
DescriptionSuppose you would like to get macd histogram for period 12,26,9 using Simple moving average of 14 days the formula will be

Macddivany[sma[14;0];12;26;9;0]
Example