TradingView
undershot
2022년 8월 23일 오전 10시 59분

MACD Divergences 

VOLATILITY S&P 500TVC

설명

Update of MACD indicator which shows the most recent, and developing, price action divergences with the histogram.

릴리즈 노트

Updated chart image

릴리즈 노트

Updated to now include all past divergences, and fix bug which stopped indicator updating.

릴리즈 노트

Updated to include MACD variable inputs, and show MACD plot and MACD signal plot.

릴리즈 노트

Improved label positions

릴리즈 노트

Added alerts and tidied script

릴리즈 노트

Bug fix (hopefully): Stopped lines drawing onto each increasing histogram bar of current island.
코멘트
BTCCNY
Thanks for your "MACD Divergences".
Set alert "alertcondition" is not valid, although it appears in the chart.
Suggest that bullish is all green and bearish is all red.
Suggest shrinking the label frame.
Suggest that labels appear in the closing line instead of the center.
jgvansickle
Thanks, very good indicator. I wish the alerts worked.
sharpie0319
Many thanks for this indicator. I been an avid user of MACD histogram for my secondary confirmation. I made a copy of the indicator for my personal used and tweaked a bit the codes, basically as below

*Plot only histogram and not the MACD and Signals
*Instead of alert condition, I change to "alert" to use any alert function, thus saving some number of alerts.
*I would suggest try to use 100/26 and see the difference.

Once again thanks @undershot
sharpie0319
@undershot I forgot to add. I added "lookback" so that it will work on some assets like GOLD and some JPY assets. Hope it helps that you can update the code for others. Cheers
Izzatikhmal
@sharpie0319, where to change 100/26?
sharpie0319
@Izzatikhmal, I am not using it anymore but here are some snippets of changes I did before.
// Input parameters macdSource = close macdShortPeriod = 26 macdLongPeriod = 100 macdSignalPeriod = 9


and alerts is here

// Generate alerts if isBullishToBearish alert("MACD Histogram changed from Bullish to Bearish (" + syminfo.ticker + ") {{interval}}", alert.freq_once_per_bar_close) if isBearishToBullish alert("MACD Histogram changed from Bearish to Bullish (" + syminfo.ticker + ") {{interval}}", alert.freq_once_per_bar_close)
haiprodt3
Hướng dẫn sử dụng ad ơi
Detri_Mantela
That's exactly the indicator I was looking for! Thanks a lot!
더보기