TradingView
madoqa
Feb 5, 2020 3:54 AM

Divergence MACD [mado] 

Euro Fx/British PoundFXCM

描述

Divergence screener for MACD
Regular Bullish: "D" navy label
Hidden Bullish: "H" navy label
Regular Bearish: "D" red label
Hidden Bearish: "H" red label
评论
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.
更多