rainly

MACD Convergence/Divergence [LY_TR]

Moving average convergence divergence (MACD) is a trend indicator that enables to show crossing between two (L and H in this script) moving averages of prices. The MACD is calculated by subtracting the 26-day for H (12 for L) exponential moving average (EMA) from the 12-day for H (5 for L) EMA with used signal value is 1 as default in this script. MACD L, H and crossing each other can be used as a trigger for buy and sell signals.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?