Reply To: about MACD Histogram divergence

Optuma Forums Optuma Scripting about MACD Histogram divergence Reply To: about MACD Histogram divergence

#45543
Darren
  • Topics: 66
  • Replies: 661
  • Posts: 727

Thanks Ho. See this post on divergences based on RSI:

https://forum.optuma.com/topic/how-to-calculate-positive-and-negative-divergences/

You would need to change the RSI to MACD Histogram to calculate the pivot lows:

M1 = MACD(BAR1=12, BAR2=26, OSC=9).Histogram;
P1 = PIVOT(M1, MIN=7, TYPE=Low);
V1 = VALUEWHEN(M1, P1 <> 0);
Sig1 = V1 > V1[1];
V2 = VALUEWHEN(Close(),
P1 <> 0);
Sig2 = V2 < V2[1];
M1 < 0 and Sig1 and Sig2

  • This reply was modified 3 years ago by Mark Wass.

Pin It on Pinterest