> For the complete documentation index, see [llms.txt](https://docs.bigbeluga.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bigbeluga.org/ultimate-suites/ultimate-macd-suite/macd-engine.md).

# MACD Engine

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.).&#x20;

It visualizes the MACD oscillator using a normalized range from -100 to +100 and enables gradient-based color mapping to enhance trend clarity.

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

*HeatMap mode:* Color intensity grows as values reach extreme ranges (-100/+100)

<div align="left" data-with-frame="true"><figure><img src="/assets/25bb23d7f7ec889cc6a67947198a5ec97da2dbee5110bfe7f452858539c9e230.png" alt=""><figcaption></figcaption></figure></div>

<figure><img src="/assets/a993b07b7c974bd4d811b30799e03e8b6eb676790995e1d50107e496775e9cdd.png" alt=""><figcaption></figcaption></figure>

*Rising/Falling mode:* Color changes based on histogram slope.

<div align="left" data-with-frame="true"><figure><img src="/assets/5973d2d40322fe2e64f711c48ea378738df547d2a41cef3acf17cbc47268deff.png" alt=""><figcaption></figcaption></figure></div>

<figure><img src="/assets/a99924bd64e20dc92a5b0fbf487b46e82dbfaef03e3829ad44c2d1efd5b7017c.png" alt=""><figcaption></figcaption></figure>

### **Overbought/Oversold Zones**

OB zone: above +100

OS zone: below -100

<figure><img src="/assets/ab5b64774455a613240066571228660fa5c06f0b6c0ac3b6108c548e48acc0a1.png" alt=""><figcaption></figcaption></figure>

### **Settings**

<div align="left" data-with-frame="true"><figure><img src="/assets/acd57c2ea2ea34a790d1df533fbfc702b361482be6860ea48c49d55a880cbc2c.png" 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 %}
