> For the complete documentation index, see [llms.txt](https://docs.yummyprofit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yummyprofit.com/indicator-and-strategy/trading-strategy/macd-divergences.md).

# MACD divergences

![](/files/-MiHQBb08jwt26WloPio)

![](/files/-MiHRNY4PHs7lgeJ5ggb)

![](/files/-MiHSI_3XqAF3hQ-4VTa)

## Indicator config

* Fash length: 12
* Slow length: 26
* MACD Divergences Type. You can choose 1 of 3 types of divergence signals including:
  * **MACD line divergences**
  * **MACD Signal line divergences**
  * **MACD histogram divergences**

![](/files/-MiHO9UODDGyLXnKJeWA)

## Tradingview Script

Here is a script that synthesizes divergence signals from the  MACD indicator, including 3 options:  \
\
\-  MACD divegence  \
\-  MACD signal divergence  \
\-  MACD histogram divergence&#x20;

{% embed url="<https://www.tradingview.com/script/63MBGaUY-The-best-MACD-line-MACD-signal-MACD-histogram-Divergences/>" %}

**Settings:** \
Basically, you only need to care about 2 parameters:&#x20;

* MACD Source: There are 3 options: macdLine, signLine and histLine.&#x20;
* Lookback Level For Divs: Number of previously adjacent peak.
* Other parameters
