TradingView
madoqa
Feb 5, 2020 3:54 AM
Divergence MACD [mado]
FX:EURGBP
60
Euro Fx/British Pound
FXCM
描述
⋅
Feb 5, 2020 3:54 AM
Divergence screener for MACD
Regular Bullish: "D" navy label
Hidden Bullish: "H" navy label
Regular Bearish: "D" red label
Hidden Bearish: "H" red label
Centered Oscillators
Divergence
评论
alorse
⋅
Jul 22, 2021 12:59 AM
Hi, thanks for the scripts, works awesome, however the line is printed late, 2 or 3 candles after the divergence, do you now how to fix it?
petemartin95
⋅
Apr 26, 2021 7:46 AM
Any idea how to get alerts to fire on the regular divergences?? Thanks.
alorse
⋅
Jul 22, 2021 1:02 AM
@petemartin95
, modify the script and add this to the end:
`alertcondition((bullCond ? macd[lbR] : na) or (bearCond ? macd[lbR] : na), "Divergence", "{{ticker}}: Divergence in {{interval}}")`
Then you can setup the alerts through tradingview.
更多