Hi everyone
I found this indicator that draws the divergence line on the indicator and price chart.
It only draws the regular (reversal) divergence and not hidden(continuation) divergence.
Tried to change the code to also show the hidden divergence but was unsuccessful
If anyone knows how to do this successfully can you please share it, thanks.
Link to original
https://www.prorealcode.com/prorealtime-indicators/macd-divergences-on-price-and-indicator/
Please define precisely the “hidden divergences” conditions (and with pictures), in your next post. Thanks in advance.
Thanks Nicolas
Example: Market is in a Bull trend
– Hidden (continuation) divergence
- Price: Higher Lows – Macd: Lower Lows
– Regular (Reversal) divergence
- Price: Higher Highs – Macd: Lower Highs
**The indicator is currently only showing Regular divergence
see attachment
- Hidden Divergence 001
- Hidden Divergence 002
- Macd Hidden Divergence 1 (Wrong-Ignore this)
- Macd Hidden Divergence 2 (Wrong-Ignore this)
Sorry Jpegs “Macd Hidden Divergence 1 & Macd Hidden Divergence 2” are wrong
Hidden Divergence 001 & Hidden Divergence 002 are correct
What are the settings of your MACD please? Seems different than the default 12,26,9 periods.