# MACD Engine

<mark style="color:$info;">The MACD Engine is the core computational logic of the suite, normalizing the MACD values and signal line for all other components (signals, divergences, histogram, etc.).</mark>&#x20;

<mark style="color:$info;">It visualizes the MACD oscillator using a normalized range from -100 to +100 and enables gradient-based color mapping to enhance trend clarity.</mark>

### **MACD Line:** Rendered with dynamic coloring:

*<mark style="color:$info;">HeatMap mode:</mark>* <mark style="color:$info;"></mark><mark style="color:$info;">Color intensity grows as values reach extreme ranges (-100/+100)</mark>

<div data-with-frame="true"><figure><img src="/files/AoQntKFahU5lGGAcb1nw" alt=""><figcaption></figcaption></figure></div>

<figure><img src="/files/w2ZOm2U8M7RwfZ89vqnf" alt=""><figcaption></figcaption></figure>

*<mark style="color:$info;">Rising/Falling mode:</mark>* <mark style="color:$info;"></mark><mark style="color:$info;">Color changes based on histogram slope.</mark>

<div data-with-frame="true"><figure><img src="/files/EoptYBizdgoszxIxuCff" alt=""><figcaption></figcaption></figure></div>

<figure><img src="/files/vEOFSFt9Qe2DnZlrr6ZB" alt=""><figcaption></figcaption></figure>

### **Overbought/Oversold Zones**

<mark style="color:$info;">OB zone: above +100</mark>

<mark style="color:$info;">OS zone: below -100</mark>

<figure><img src="/files/x3JnAeOM8B7YDnS0c6G5" alt=""><figcaption></figcaption></figure>

### **Settings**

<div data-with-frame="true"><figure><img src="/files/vWpLFPfkFoF9wyCnIZVN" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}

### **Settings**

1. **Source** – Default: `close`.\
   Defines the price type to calculate MACD on.
2. **Fast Length** – Default: `10`.\
   Short-term MA period.
3. **Slow Length** – Default: `20`.\
   Long-term MA period.
4. **Signal Smoothing** – Default: `9`.\
   Period used to smooth the signal line.
5. **Oscillator MA Type** – `EMA` or `SMA`.\
   Defines moving average type for MACD itself.
6. **Signal Line MA Type** – `EMA` or `SMA`.\
   Defines moving average type for the signal line.
   {% endhint %}


---

# 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.bigbeluga.com/oscillators/ultimate-macd-suite/macd-engine.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.
