# 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yummyprofit.com/indicator-and-strategy/trading-strategy/macd-divergences.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
