TradingView
madoqa
5 Feb 2020 pukul 03.54

Divergence MACD [mado] 

Euro Fx/British PoundFXCM

Deskripsi

Divergence screener for MACD
Regular Bullish: "D" navy label
Hidden Bullish: "H" navy label
Regular Bearish: "D" red label
Hidden Bearish: "H" red label
Komentar
alorse
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
Any idea how to get alerts to fire on the regular divergences?? Thanks.
alorse
@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.
Lebih lanjut