What Is Moving Average Convergence Divergence (MACD)?
Moving average convergence divergence (MACD) is a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price. The MACD is calculated by subtracting the 26-period exponential moving average (EMA) from the 12-period EMA.
The result of that calculation is the MACD line. A nine-day EMA of the MACD called the "signal line," is then plotted on top of the MACD line, which can function as a trigger for buy and sell signals. Traders may buy the security when the MACD crosses above its signal line and sell—or short—the security when the MACD crosses below the signal line. Moving average convergence divergence (MACD) indicators can be interpreted in several ways, but the more common methods are crossovers, divergences, and rapid rises/falls.
When the MACD forms highs or lows that diverge from the corresponding highs and lows on the price, it is called a divergence. A bullish divergence appears when the MACD forms two rising lows that correspond with two falling lows on the price. This is a valid bullish signal when the long-term trend is still positive.
Some traders will look for bullish divergences even when the long-term trend is negative because they can signal a change in the trend, although this technique is less reliable.
When the MACD forms a series of two falling highs that correspond with two rising highs on the price, a bearish divergence has been formed. A bearish divergence that appears during a long-term bearish trend is considered confirmation that the trend is likely to continue.
Some traders will watch for bearish divergences during long-term bullish trends because they can signal weakness in the trend. However, it is not as reliable as a bearish divergence during a bearish trend. ( Reference :
Investopedia-MACD )
So this indicator help us to see this divergences and give you some alert when he detected a new one.
Indicator Parameters
MACD Settings:
Fast EMA Period
Slow EMA Period
Signal SMA Period
Apply to
Positive MACD Color
Negative MACD Color
Signal Color
Divergence Settings:
Show Bullish Divergence
Use Bullish Divergence Alert
Show Bearish Divergence
Use Bearish Divergence Alert
Candles To Look Back For Divergence
Drawing Settings:
Bullish Divergence Line Color
Bearish Divergence Line Color
Lines & Arrow Thickness
Lines & Arrow Style
Object SELECTABLE
Dimension Coefficient ( For The Arrow )
For Any Update Idea Please Contact Me here.
Thanks for sharing your knowledge for free.