MACD histogram Offset Value

Hi,

I am trying to workout the MACD histogram offset value in the watch list.

say for example below, current bar has MACD histogram value of -2.834 which is easy to populate with MACD() script, I am trying to populate histogram bar 4 value which would be approximate -1.0. the idea is to work out rate of change in histogram compare to the previous bars.

Any help to work out the script is much appreciated.

MACD Histogram Offset

Hi Chintan,

You can use the rate-of-return ROC() function on the MACD, so for a 5 period change in 12/26/9 MACD:

V1 = MACD(BAR1=12, BAR2=26, OSC=9, DEFAULT=Histogram);
ROC(V1, BARS=5)

You can also apply the ROC tool to the MACD to calculate it on a chart, but the values can vary wildy - especially when crossing the zero line.

https://www.optuma.com/videos/how-to-apply-indicators-on-indicators/