Reply To: about MACD Histogram divergence

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

#45543
DarrenDarren
  • Topics: 55
  • Replies: 461
  • Posts: 516

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 2 years, 6 months ago by AvatarMark.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close