# SUMMARY

**Synergy Signal** is a multi-layered confluence indicator for TradingView (Pine Script v6). It combines four independent data streams — Expansion Wave, Momentum, Volatility, and Order Flow — into a single oscillator panel that generates high-probability long and short entry signals.

## What It Does

Rather than relying on any single indicator, Synergy Signal requires multiple independent "pillars" to agree before plotting an entry dot. This confluence-first design reduces false signals and keeps you on the right side of the market's dominant force.

| Pillar                | Setting Name in UI | What It Measures                                        |
| --------------------- | ------------------ | ------------------------------------------------------- |
| 🔵 **Expansion Wave** | Enable Expansion   | Whether price is breaking outside its statistical range |
| 🟣 **Momentum**       | Enable Momentum    | The strength and direction of the underlying trend      |
| 🟠 **Volatility**     | Enable Volatility  | Short-term overbought / oversold pressure               |
| 🟢/🔴 **Order Flow**  | Enable Order Flow  | Buying vs. selling pressure from real volume data       |

When enough pillars align, a **green dot** (long) or **red dot** (short) is plotted at the bottom or top of the oscillator pane.

## Key Features

* **Confluence scoring** — you control how many pillars must agree (Base Min Score)
* **Divergence detection** — detects divergences across Momentum, Expansion Wave, and Order Flow for a soft score boost
* **Chop zone filter** — suppresses signals when the Momentum line is ranging between Chop Zone Low and Chop Zone High
* **Regime filter** — only takes longs in bullish expansion, shorts in bearish expansion
* **Cooldown timer** — prevents signal spam after a flip
* **Multi-exchange Order Flow** — aggregates volume from Binance, Coinbase, and Kraken


# overview

## The Philosophy

Most indicators fail not because they are wrong, but because they are used alone. A single Momentum reading, a single Volatility cross, or a single Order Flow spike can easily be a false positive in choppy or manipulated markets.

Synergy Signal is built on a different premise: **require agreement**. Each of the four pillars operates independently. The signal engine counts how many agree in the same direction, and only fires when the count meets your minimum threshold.

This means you will see fewer signals — but the ones you do see carry the weight of multiple confirming factors.

***

## The Four Pillars

### 🔵 Expansion Wave

Measures how far price is breaking outside its expected statistical range (based on a standard deviation envelope). A bullish Expansion Wave means price is pushing above the upper band with sustained force. A bearish Expansion Wave means price is collapsing below the lower band.

The Expansion Wave value is rendered as a **cyan/teal fill** on the oscillator — brighter at the extremes, fading toward the midline at 50.

### 🟣 Momentum

An RSI-based line (default 21-period) that tracks the underlying directional strength. For a long signal, the indicator looks for:

* The Momentum line recently touched or crossed the **Momentum Oversold** level (default 30)
* Momentum is now **rising**
* Momentum has recovered **above its own moving average**

The opposite logic applies for shorts. The Momentum line is shown in **purple**.

### 🟠 Volatility

A Stochastic RSI-based line that tracks short-term exhaustion. It tells you whether momentum is entering from a depleted (oversold) or exhausted (overbought) state — a key filter to avoid chasing into extended moves.

The Volatility line is shown in **orange**.

### 🟢/🔴 Order Flow

Cumulative Volume Delta — the difference between estimated buying and selling volume — normalized and z-scored so it is comparable across assets and timeframes. Rising, positive Order Flow confirms buy-side dominance. Falling, negative Order Flow confirms sell-side dominance.

Order Flow is shown as **green or red bars** centered at the 50 midline.

***

## Signal Logic at a Glance

**LONG signal fires when:**

* ✅ Expansion Wave is bullish (expanding upward)
* ✅ Momentum line is recovering from Oversold zone
* ✅ Order Flow is rising (buy pressure increasing)
* ✅ Volatility line is not overbought
* ✅ Divergence detected (optional soft score boost)
* ✅ Score ≥ Base Min Score (Long)
* ✅ Momentum not in the Chop Zone
* ✅ Regime Filter allows longs (if enabled)
* ✅ Cooldown has elapsed since last signal

Each of these conditions can be tuned or toggled. The **Base Min Score** is the primary dial for controlling signal frequency vs. quality.

***

## Panel Layout

The indicator plots in a **separate oscillator panel** below the price chart. Here is what you will see:

| Element                | Color        | Meaning                                    |
| ---------------------- | ------------ | ------------------------------------------ |
| Blue fill (lower half) | Cyan/teal    | Bullish Expansion Wave strength            |
| Blue fill (upper half) | Cyan/teal    | Bearish Expansion Wave strength            |
| Purple line            | Purple       | Momentum                                   |
| Yellow line            | Yellow       | Momentum moving average                    |
| Orange line            | Orange       | Volatility                                 |
| Green/red bars         | Green/Red    | Order Flow                                 |
| Green dot (bottom)     | Bright green | Long entry signal                          |
| Red dot (top)          | Red          | Short entry signal                         |
| Dashed lines           | Green/Red    | Momentum Oversold (30) / Overbought (70)   |
| Solid lines            | Green/Red    | Volatility Oversold (20) / Overbought (80) |
| Dotted lines           | Dim white    | Chop Zone Low (35) / Chop Zone High (65)   |


# momentum

## What Is It?

The Momentum pillar is an RSI-based line (default 21-period) applied to the close price. It tracks the underlying directional strength of the asset and serves as the primary trend filter in the signal engine.

It appears as a **purple line** on the oscillator panel, with its moving average shown as a **yellow line**.

> **UI name:** "Enable Momentum" in the settings panel. The line is labelled "Momentum" in the Style tab.

## How It Works

The Momentum line measures the ratio of average gains to average losses over a lookback period. Values above 70 indicate overbought conditions; values below 30 indicate oversold conditions.

In Synergy Signal, the Momentum line is not just used for simple overbought/oversold readings — it is used to identify **recovery and rejection patterns**:

### Long Condition (Momentum approves a long)

All four of the following must be true:

| Condition         | What It Checks                                                                          |
| ----------------- | --------------------------------------------------------------------------------------- |
| **Recent low**    | Momentum dropped below the Momentum Oversold level (default 30) within the last 60 bars |
| **Rising**        | Momentum line is currently rising for at least 2 bars                                   |
| **Above MA**      | Momentum line is above its own 14-period EMA                                            |
| **Not exhausted** | Momentum is still below the Momentum Overbought level (default 70)                      |

This pattern captures a **bounce off oversold with confirmation of upward momentum** — not just any Momentum reading.

### Short Condition (Momentum approves a short)

Mirror logic:

| Condition         | What It Checks                                                              |
| ----------------- | --------------------------------------------------------------------------- |
| **Recent high**   | Momentum was above Momentum Overbought (default 70) within the last 60 bars |
| **Falling**       | Momentum line is currently falling for at least 2 bars                      |
| **Below MA**      | Momentum line is below its own 14-period EMA                                |
| **Not exhausted** | Momentum is still above Momentum Oversold (default 30)                      |

## The Momentum Moving Average

A 14-period SMA of the Momentum line is plotted as a **yellow line** (hidden by default in the Style tab — enable it under "Momentum MA"). It serves two purposes:

1. Visual reference for Momentum direction
2. Internal filter — Momentum must be above/below this MA to qualify for long/short signals

## Chop Zone Interaction

When **Block Chop Zone** is enabled (State section), any bar where the Momentum line falls between **Chop Zone Low** (35) and **Chop Zone High** (65) is treated as a ranging environment — and no signals fire.

> **Example:** If the Momentum line is at 50, the market is in equilibrium. No directional edge exists. The chop block prevents signals in this region.

The chop zone boundaries are shown as **dotted white lines** on the oscillator panel.

## Momentum Filter (Advanced)

There is an optional secondary filter called the **Momentum Trend Filter** (Momentum Filter (Pivots) section in the UI). When enabled, it calculates the rate-of-change of the Momentum line, smooths it, and compares it to its own moving average. This creates a slow-moving "trend of the momentum":

* **Momentum trending up** → longs preferred
* **Momentum trending down** → shorts preferred

This filter appears as two additional lines on the oscillator when enabled (white and yellow). It is **disabled by default** and is most useful on higher timeframes (4H, Daily).

## Settings (State Section in UI)

| Setting               | Default | Description                                                         |
| --------------------- | ------- | ------------------------------------------------------------------- |
| Enable Momentum       | ✅ On    | Enables the Momentum pillar                                         |
| Momentum Oversold     | 30      | Level Momentum must fall below before a long recovery counts        |
| Momentum Overbought   | 70      | Level Momentum must rise above before a short rejection counts      |
| Block Chop Zone       | ✅ On    | Suppresses all signals when Momentum is between the chop boundaries |
| Chop Zone Low         | 35      | Lower boundary of the chop dead zone                                |
| Chop Zone High        | 65      | Upper boundary of the chop dead zone                                |
| Momentum Trend Filter | ❌ Off   | Enables the pivot-based trend direction gate                        |

## Tips

* Raising the **Chop Zone** boundaries (e.g., 40/60) creates a tighter filter — only signals in strongly trending Momentum conditions. Expect significantly fewer signals.
* Lowering the **Oversold/Overbought** thresholds (e.g., 25/75) requires a deeper extreme before the recovery pattern qualifies — higher conviction entries, but fewer of them.
* If you disable the Momentum pillar, the chop zone filter is also bypassed, and the indicator relies entirely on Expansion Wave, Volatility, and Order Flow.


# setup

## Adding the Indicator

1. Open **TradingView** and navigate to a chart.
2. Click the **Indicators** button in the top toolbar.
3. Search for **"Synergy Signal"** or **"Multi-Momentum"**.
4. Click the indicator to add it. It will open in a new oscillator panel below the price chart.

{% hint style="info" %}
If you received the source code directly, click **Pine Editor** at the bottom, paste the code, and click **Add to chart**.
{% endhint %}

## The Settings Panel

Open the indicator settings by clicking the gear icon on the indicator name. You will see three tabs: **Inputs**, **Style**, and **Visibility**.

The **Inputs** tab is where all functional settings live. It is organized into these sections as they appear in the UI:

| Section                  | What It Controls                                 |
| ------------------------ | ------------------------------------------------ |
| Volatility               | Enable/disable the Volatility (orange) line      |
| Momentum                 | Enable/disable the Momentum (purple) line        |
| Expansion                | Enable/disable the Expansion Wave (blue fill)    |
| Order Flow               | Enable/disable the Order Flow (green/red bars)   |
| Momentum Filter (Pivots) | Optional advanced trend direction gate           |
| State                    | Chop zone boundaries, Oversold/Overbought levels |
| Signals (Entries)        | Long/short dot display and state-change mode     |
| Divergence               | Divergence types and minimum required            |
| Confluence               | Score Pillars toggle and Base Min Score          |
| Noise Filter             | Regime Filter and Cooldown bars                  |

## Recommended Starting Settings

When you first add the indicator, all four pillars are enabled with balanced defaults. These defaults are designed for **crypto on the 1H–4H timeframe** but work across most liquid assets.

| Setting                   | Default | Notes                                        |
| ------------------------- | ------- | -------------------------------------------- |
| Enable Volatility         | ✅ On    | Keep on for most setups                      |
| Enable Momentum           | ✅ On    | Core pillar — rarely disable                 |
| Enable Expansion          | ✅ On    | Key for regime context                       |
| Enable Order Flow         | ✅ On    | Disable for non-BTC alt coins if needed      |
| Momentum Trend Filter     | ✅ On    | Advanced — leave on to start                 |
| Block Chop Zone           | ✅ On    | Recommended to leave on                      |
| Chop Zone Low             | 35      | Momentum below this = potentially trending   |
| Chop Zone High            | 65      | Momentum above this = potentially trending   |
| Momentum Oversold         | 30      | Standard level                               |
| Momentum Overbought       | 70      | Standard level                               |
| Volatility Overbought     | 80      | Volatility-based level                       |
| Volatility Oversold       | 20      | Volatility-based level                       |
| Enable Long Dots          | ✅ On    |                                              |
| Enable Short Dots         | ✅ On    |                                              |
| Only plot on state change | ✅ On    | Cleaner chart                                |
| Use Momentum Divs         | ✅ On    |                                              |
| Use Expansion Divergence  | ✅ On    |                                              |
| Use Order Flow Divergence | ✅ On    |                                              |
| Min Divergences Required  | 1       |                                              |
| Divergence Fresh Bars     | 20      |                                              |
| Score Pillars             | ✅ On    | Auto-caps min score to available pillars     |
| Base Min Score (Long)     | 2       | Pillars required to fire a long              |
| Base Min Score (Short)    | 2       | Pillars required to fire a short             |
| Regime Filter             | ✅ On    | Requires Expansion Wave to confirm direction |

## Choosing Your Timeframe

Synergy Signal works on any timeframe but performs best when used with context:

* **4H / Daily** — Swing trades. Signals are rarer but more reliable. Raise Base Min Score to 3 for cleaner setups.
* **1H** — Most common use case. Default settings are tuned for this.
* **15m / 5m** — Scalping. Lower Base Min Score to 1 and reduce Cooldown to 3–5 bars. Expect more noise.

## Order Flow and Multi-Exchange Volume

By default the Order Flow pillar aggregates volume from three exchanges:

* `BINANCE:BTCUSDT`
* `COINBASE:BTCUSD`
* `KRAKEN:BTCUSD`

These are hardcoded for BTC. If you are trading a **different asset**, the Order Flow bars will still function but will reflect BTC volume, not your asset's volume. In that case, consider **disabling the Order Flow pillar** and relying on the other three pillars.

{% hint style="info" %}
**Tip:** For Ethereum and other large-cap coins, BTC Order Flow still provides a useful macro market structure signal due to high correlation. Test on your asset before disabling it.
{% endhint %}

## First Steps After Adding

1. Enable all four pillars and run with default settings for at least 50–100 bars to observe signal frequency.
2. If you are getting too many signals, **raise Base Min Score** (Long and Short) from 2 to 3.
3. If signals are too rare, **lower Base Min Score** to 1 or turn off the Regime Filter.
4. Review the [Recommended Configurations](file:///4339211/guides/configurations.md) page for asset-specific presets.


# expansion

## What Is It?

The Expansion Wave measures whether price is making a **statistically significant move** outside its normal range. It uses a standard deviation envelope around an EMA as its reference band, then calculates how consistently price has been closing outside that band over the lookback window.

* **Bullish Expansion Wave** — price is repeatedly closing *above* the upper band
* **Bearish Expansion Wave** — price is repeatedly closing *below* the lower band

The result is normalized to a 0–100 scale and rendered as a **cyan/teal fill** on the oscillator.

***

## How It Looks on the Chart

The Expansion Wave fill is split into two halves:

* **Lower half (0–50):** Bullish expansion strength. The fill grows upward from the bottom as bull pressure increases.
* **Upper half (50–100):** Bearish expansion strength. The fill grows downward from the top as bear pressure increases.

When both bull and bear are low (price is inside the band), the fill fades and the panel appears mostly dark — this is a ranging, low-expansion environment.

***

## Role in Signal Generation

The Expansion Wave pillar contributes to signals in two ways:

### 1. Pillar Score

When the Expansion Wave is bullish, it adds **+1** to the long score. When bearish, it adds **+1** to the short score.

The Expansion Wave is counted as bullish (`bullOK`) when **either** of the following is true:

* **Sustained expansion:** The bull value is above its acceptance threshold for 3+ bars, bull is greater than bear, and the bull EMA is rising
* **Early expansion:** The bull value is turning up (rising for 2 bars) — catches early breakouts before they fully develop

The mirror logic applies for bearish (`bearOK`).

### 2. Regime Gate

When the **Regime Filter** is enabled (Noise Filter section), entries are additionally gated:

* Long signals require the Expansion Wave to be bullish (`bullOK`)
* Short signals require the Expansion Wave to be bearish (`bearOK`)

This means **if the Expansion Wave is not confirming your direction, no signal fires** — even if Momentum, Volatility, and Order Flow all agree.

***

## Settings

The Expansion Wave's internal parameters are fixed to keep the settings panel clean. The only user-facing control is:

| Setting          | Location in UI    | Description                                            |
| ---------------- | ----------------- | ------------------------------------------------------ |
| Enable Expansion | Expansion section | Enables or disables the Expansion Wave pillar entirely |

Internal defaults (for reference):

| Parameter        | Value  | Description                                           |
| ---------------- | ------ | ----------------------------------------------------- |
| Source           | Close  | Price input                                           |
| Length           | 14     | Lookback for the std dev envelope                     |
| Multiplier       | 1.0    | Standard deviation width                              |
| Smoothing        | 5 bars | EMA smoothing applied to bull/bear values             |
| Acceptance Level | 30     | Min bull/bear value to count as "active expansion"    |
| Acceptance Bars  | 3      | How many bars it must hold above the acceptance level |

***

## Tips

* **Disable the Expansion Wave** if you trade in a slow, mean-reverting market where statistical breakouts are uncommon. This lets Momentum and Order Flow drive signals.
* **Watch the fill for context.** Even without a signal dot, a brightening bullish fill during a pullback is a visual cue that expansion is rebuilding. It can help you anticipate the next signal.
* **Regime Filter + Expansion Wave** is the most conservative combination. Only enable it if you want to avoid all counter-trend trades.
* When the fill is dark on both sides of the midline, the market is in compression. Avoid trading until one side begins to brighten.


# volatility

## What Is It?

The Volatility pillar is a Stochastic RSI-based line — a stochastic applied to an RSI. It is a faster, more sensitive oscillator than the Momentum line, designed to capture short-term exhaustion and the precise moment when price momentum begins to shift direction.

It appears as an **orange line** on the oscillator panel.

> **UI name:** "Enable Volatility" in the settings panel. The line is labelled "Volatility" in the Style tab.

***

## How It Works

The Volatility line measures where the current RSI value sits relative to its own high-low range over the lookback period. This makes it react quickly to reversals in momentum, faster than the Momentum line alone.

The raw value is smoothed with a 3-period SMA to reduce noise (the standard "smooth K" step).

### Internal Parameters (Fixed)

| Parameter    | Value |
| ------------ | ----- |
| RSI Length   | 14    |
| Stoch Length | 14    |
| Smooth K     | 3     |
| Smooth D     | 3     |

***

## Role in Signal Generation

The Volatility line is used as a **directional gate** — it answers the question: *is momentum entering from a healthy starting position?*

### Long Gate

A long signal gets Volatility approval when:

* The Volatility line is rising strongly (up for 2+ bars with sufficient delta) **or** it recently touched the Volatility Oversold zone (≤20) and is now turning up
* **AND** the Volatility line is not currently overbought (≥80) — you don't want to enter a long when Volatility is already maxed out

### Short Gate

Mirror logic:

* The Volatility line is falling strongly **or** it recently touched the Volatility Overbought zone (≥80) and is now turning down
* **AND** the Volatility line is not currently oversold (≤20)

### Curl Protection

The Volatility line also contributes to a **curl protection filter** that runs automatically. This filter blocks counter-trend entries when both Momentum and Order Flow are clearly moving against the intended direction:

* If Momentum is rising for 2 bars, above its MA, **and** Order Flow is also rising → **short signals are blocked**
* If Momentum is falling for 2 bars, below its MA, **and** Order Flow is also falling → **long signals are blocked**

***

## Reading the Orange Line

| Zone     | What It Means                                      |
| -------- | -------------------------------------------------- |
| Below 20 | Volatility Oversold — potential long entry zone    |
| 20–80    | Neutral territory                                  |
| Above 80 | Volatility Overbought — potential short entry zone |

The **solid red line** at 80 and **solid green line** at 20 mark these boundaries on the panel.

> **Note:** The Volatility line being overbought does not mean the trend is over. In strong trends, it can remain near the extremes for extended periods. Use it alongside the Momentum and Expansion Wave pillars for context.

***

## Settings (State Section in UI)

| Setting               | Default | Description                            |
| --------------------- | ------- | -------------------------------------- |
| Enable Volatility     | ✅ On    | Enables the Volatility pillar          |
| Volatility Overbought | 80      | Volatility level considered overbought |
| Volatility Oversold   | 20      | Volatility level considered oversold   |

***

## Tips

* On very short timeframes (5m, 1m), the Volatility line can be noisy. Consider raising the Overbought level to 85 and lowering the Oversold to 15 to require a more extreme reading before the gate activates.
* The Volatility line acts as a **final directional gate** before a signal fires. Even if Expansion Wave, Momentum, and Order Flow all agree, a signal will be blocked if the Volatility line is in the wrong zone.
* Watch for the orange Volatility line curling up from below 20 — this often visually precedes a green long dot by 1–2 bars, giving you an early visual cue.
* You can **hide the Volatility line** in the Style tab without disabling the pillar — useful for a cleaner chart while keeping the logic active.


# order flow

## What Is It?

The Order Flow pillar measures the net buying or selling pressure on an asset using **Cumulative Volume Delta (CVD)**. For each bar, it estimates how much volume was driven by buyers vs. sellers — then aggregates this over time to reveal the dominant force in the market.

It appears as **green bars** (buying pressure) and **red bars** (selling pressure) centered at the 50 midline on the oscillator panel.

> **UI name:** "Enable Order Flow" in the settings panel. The bars are labelled "Order Flow" in the Style tab (Color 0 = bullish green, Color 1 = bearish red).

***

## How Order Flow Is Calculated

For each bar, the indicator estimates buy/sell volume using the High-Low-Close relationship:

* **Buy fraction** = (Close − Low) / (High − Low)
* **Sell fraction** = (High − Close) / (High − Low)
* **Delta** = Volume × (Buy fraction − Sell fraction)

This delta is summed over a 21-bar rolling window to get the raw Order Flow value.

### Z-Score Normalization

The raw value is normalized using a 300-bar rolling z-score:

```
Order Flow Z = (Raw Value − Mean) / Std Dev
```

This ensures the Order Flow reading is **comparable across assets and timeframes**, regardless of absolute volume levels. The z-score is then scaled and soft-clamped at ±60 to prevent outliers from dominating the display.

The final value is shifted to center at 50, so:

* **Above 50** = net buying pressure
* **Below 50** = net selling pressure

***

## Multi-Exchange Volume

By default, Order Flow aggregates volume from three spot markets simultaneously:

| Exchange | Symbol            |
| -------- | ----------------- |
| Binance  | `BINANCE:BTCUSDT` |
| Coinbase | `COINBASE:BTCUSD` |
| Kraken   | `KRAKEN:BTCUSD`   |

This gives a much more representative picture of true market activity than a single exchange's volume alone.

{% hint style="warning" %}
These symbols are hardcoded for BTC. If you are using this indicator on an **altcoin or non-BTC asset**, the Order Flow bars will reflect BTC volume data. This is intentional for macro market structure context — BTC volume often correlates with broader crypto market direction — but be aware of this when analyzing alt signals. Consider disabling Order Flow if you find it misleading for your specific asset.
{% endhint %}

***

## Role in Signal Generation

### Long Gate (Order Flow approves a long)

Order Flow approves a long signal when:

* The Order Flow value has been **rising** over the last 5 bars (buying pressure is building)

### Short Gate (Order Flow approves a short)

Order Flow approves a short signal when:

* The Order Flow value has been **falling** over the last 5 bars (selling pressure is building)

This is deliberately simple — the key question is just: is buying or selling pressure trending right now?

***

## Reading the Bars

| Bar Color                   | Meaning                                   |
| --------------------------- | ----------------------------------------- |
| 🟢 Green (above 50 midline) | Net buying pressure — buyers in control   |
| 🔴 Red (below 50 midline)   | Net selling pressure — sellers in control |
| Tall bar                    | Strong directional pressure               |
| Short bar near midline      | Weak or balanced buying/selling           |

Look for **growing green bars** during a long setup and **growing red bars** during a short setup. When bars shrink back toward the midline, Order Flow is neutralizing — be cautious.

***

## Settings

| Setting           | Location in UI     | Description                                        |
| ----------------- | ------------------ | -------------------------------------------------- |
| Enable Order Flow | Order Flow section | Enables or disables the Order Flow pillar entirely |

The internal Order Flow parameters (z-score window, normalization period, clamp) are fixed and calibrated for crypto markets on 1H–4H timeframes.

***

## Tips

* **Order Flow divergence** is one of the most powerful setups available. If price makes a new low but Order Flow makes a higher low, sellers are losing steam even as price drops. The divergence system can automatically detect and score this.
* On **illiquid assets or small-cap coins**, volume data may be sparse or unreliable. Consider disabling Order Flow for these assets.
* In ranging markets, Order Flow bars often alternate between small green and red near the midline with no clear conviction. The Chop Zone filter on the Momentum pillar usually handles this — but watching bar height is an additional visual confirmation of conviction.
* The bar colors in the Style tab are labelled **Color 0** (bullish/green) and **Color 1** (bearish/red) — you can customize these colors to your preference.


# how signals work

## The Signal Pipeline

Every bar, the indicator runs through the following pipeline to determine whether to plot a long (green dot) or short (red dot):

1. Calculate each pillar independently
2. Compute the confluence score (how many agree)
3. Apply filters (chop zone, regime, curl protection, Volatility gate)
4. Resolve conflicts (if long + short both qualify)
5. Apply position state machine (cooldown, flip logic)
6. Plot the dot

{% stepper %}
{% step %}

### Step 1: Individual Pillar Conditions

Each pillar produces a true/false output:

| Pillar         | Long True When                                         | Short True When                                         |
| -------------- | ------------------------------------------------------ | ------------------------------------------------------- |
| Expansion Wave | Bullish expansion active (`bullOK`)                    | Bearish expansion active (`bearOK`)                     |
| Momentum       | Recovering from Oversold zone, rising, above its MA    | Rejecting from Overbought zone, falling, below its MA   |
| Order Flow     | Order Flow slope is positive (rising over last 5 bars) | Order Flow slope is negative (falling over last 5 bars) |
| Divergence     | Valid bullish divergence detected recently             | Valid bearish divergence detected recently              |

The **Volatility line** does not add to the score — it acts as a binary gate that can block an otherwise valid signal.
{% endstep %}

{% step %}

### Step 2: Confluence Score

The scores are summed:

```
Long Score  = Expansion Wave(long)  + Momentum(long)  + Order Flow(long)  + Divergence score (0–3)
Short Score = Expansion Wave(short) + Momentum(short) + Order Flow(short) + Divergence score (0–3)
```

The **Divergence pillar** is "soft" — it can contribute 1, 2, or 3 points depending on how many divergence types are detected (Momentum div, Expansion div, Order Flow div). Its absence never blocks an entry.

The **Base Min Score** setting determines how many points are required. With **Score Pillars** (auto-scale) enabled, the minimum is automatically capped to the number of available pillars.
{% endstep %}

{% step %}

### Step 3: Filters Applied

Even if the score threshold is met, these filters can block the signal:

#### Chop Zone Block

If the Momentum line is between Chop Zone Low (35) and Chop Zone High (65) → **signal blocked**.

#### Regime Filter

If the Regime Filter is enabled (Noise Filter section):

* Long requires `bullOK` (Expansion Wave is bullish)
* Short requires `bearOK` (Expansion Wave is bearish)

#### Curl Protection

* If Momentum is rising for 2 bars AND above its MA AND Order Flow is rising → **shorts blocked**
* If Momentum is falling for 2 bars AND below its MA AND Order Flow is falling → **longs blocked**

#### Volatility Gate

* Long requires Volatility line is not overbought (≥80) and is rising or was recently oversold
* Short requires Volatility line is not oversold (≤20) and is falling or was recently overbought

#### Momentum Trend Filter (optional)

If the **Momentum Trend Filter** is enabled (Momentum Filter (Pivots) section), signals are gated to only fire in the direction the smoothed Momentum derivative is pointing.
{% endstep %}

{% step %}

### Step 4: Conflict Resolution

On rare occasions, both long and short conditions are true on the same bar. The indicator resolves this:

1. **Higher score wins.** Long score > short score → take long. Short score > long score → take short.
2. **On a tie:** If Momentum ≥ 50, prefer long. If Momentum < 50, prefer short.

Only one dot can fire per bar.
{% endstep %}

{% step %}

### Step 5: Position State Machine

The indicator tracks a virtual position state:

* `pos = 1` → currently long
* `pos = -1` → currently short
* `pos = 0` → flat (starting state)

Rules:

* A **long entry** can only fire if currently flat or short
* A **short entry** can only fire if currently flat or long
* After any flip, a **cooldown timer** starts. No new signal fires until the set number of bars has elapsed.
  {% endstep %}

{% step %}

### Step 6: Plot Mode

Two modes are available via **Only plot on state change** (Signals section):

| Mode           | When Dot Appears                                 |
| -------------- | ------------------------------------------------ |
| ✅ On (default) | Only on the bar where the signal flips direction |
| ❌ Off          | Every bar the signal condition is true           |

The default "on flip only" mode produces cleaner charts with discrete entry markers. The "every bar" mode is useful for understanding how long a condition persists or for debugging settings.
{% endstep %}
{% endstepper %}

## Visual Summary

```
GREEN DOT at the bottom of the panel = Long entry signal
RED DOT at the top of the panel      = Short entry signal
```

Each dot represents a moment when all active filters aligned and the score threshold was met in that direction. The dot marks the **first bar** of that condition (when using state-change mode).


# confluence scoring

## Why Confluence?

No single indicator is reliable across all market conditions. Confluence scoring solves this by requiring multiple independent systems to agree before generating a signal. The more pillars that align, the higher the confidence in the setup.

## How Scoring Works

Each enabled pillar contributes **+1** to the score when its condition is met:

| Pillar            | Max Score Contribution            |
| ----------------- | --------------------------------- |
| Expansion Wave    | 1                                 |
| Momentum          | 1                                 |
| Order Flow        | 1                                 |
| Divergence (soft) | Up to 3 (one per divergence type) |

The **maximum possible score** with all pillars enabled and all three divergence types firing is **6** (3 hard pillars + 3 divergence types).

The **Volatility line** does not add to the score — it is a binary gate only.

## The Divergence Score (Soft Pillar)

The Divergence score is "soft" because:

* It can **boost** the score when present
* Its absence **never blocks** a signal
* It can contribute between 0 and 3 points

The three divergence types that can each contribute 1 point:

1. **Momentum Divergence** (Use Momentum Divs)
2. **Expansion Divergence** (Use Expansion Divergence)
3. **Order Flow Divergence** (Use Order Flow Divergence)

A setup with all three hard pillars AND all three divergences would score **6 out of 6**.

## Setting the Minimum Score

The **Base Min Score** settings (Confluence section) control how strict the filter is:

| Base Min Score | Effect                                             |
| -------------- | -------------------------------------------------- |
| 1              | Very permissive — any single pillar fires a signal |
| 2 (default)    | Balanced — requires two pillars to agree           |
| 3              | Strict — requires broad agreement                  |
| 4              | Very strict — near full confluence required        |

There are **separate thresholds** for longs and shorts. You can require Score ≥ 3 for shorts but only ≥ 2 for longs if your bias is bullish, for example.

## Score Pillars (Auto-Scale)

When **Score Pillars** is enabled (Confluence section), the effective minimum score is automatically capped to the number of available hard pillars. This prevents an impossible requirement when some pillars are disabled.

**Example:**

* Order Flow disabled → only 2 hard pillars remain (Expansion Wave, Momentum)
* Base Min Score set to 3
* Auto-Scale caps the effective minimum to **2** so signals can still fire

Without Score Pillars enabled, a Base Min Score of 3 with only 2 pillars enabled would produce **zero signals**.

{% hint style="success" %}
It is strongly recommended to leave **Score Pillars** enabled unless you are intentionally requiring a high divergence score to qualify entries.
{% endhint %}

## Practical Examples

### Example A: Conservative Swing Setup

* Base Min Score Long: **3**
* Base Min Score Short: **3**
* All pillars enabled
* Regime Filter: On
* Min Divergences Required: 2

→ A signal fires only when Expansion Wave + Momentum + Order Flow all agree AND at least two divergence types are present. Very rare, very high conviction.

### Example B: Balanced Default

* Base Min Score Long: **2**
* Base Min Score Short: **2**
* All pillars enabled
* Regime Filter: On

→ Any two of the three hard pillars must agree. Divergence gives a soft boost but is not required.

### Example C: Scalping Mode

* Base Min Score Long: **1**
* Base Min Score Short: **1**
* Expansion Wave disabled
* Regime Filter: Off
* Cooldown: 3 bars

→ Momentum or Order Flow alone can fire a signal. Fast and responsive — use with additional chart context.

## Monitoring the Score Visually

The score is not directly displayed on the chart, but you can infer it by checking the four visual elements:

* 🔵 Is the blue Expansion Wave fill growing in your direction?
* 🟣 Is the purple Momentum line recovering from or rejecting an extreme?
* 🟢/🔴 Are the Order Flow bars strongly colored and growing?
* 🟠 Is the orange Volatility line in a favorable zone (not overbought for longs, not oversold for shorts)?

When all four look aligned, you are likely at or near a maximum score.


# state

The State section controls the thresholds that define what the indicator considers "trending" vs. "choppy" for both the Momentum and Volatility pillars.

## Settings

| Setting               | Default | Range  | Description                                                            |
| --------------------- | ------- | ------ | ---------------------------------------------------------------------- |
| Block Chop Zone       | ✅ On    | On/Off | Suppresses all signals when the Momentum line is in the chop dead zone |
| Chop Zone Low         | 35      | 0–100  | Lower boundary of the Momentum chop zone                               |
| Chop Zone High        | 65      | 0–100  | Upper boundary of the Momentum chop zone                               |
| Momentum Oversold     | 30      | 0–100  | Momentum level that must be reached before a long recovery counts      |
| Momentum Overbought   | 70      | 0–100  | Momentum level that must be reached before a short rejection counts    |
| Volatility Overbought | 80      | 0–100  | Volatility line level considered overbought (blocks longs above this)  |
| Volatility Oversold   | 20      | 0–100  | Volatility line level considered oversold (blocks shorts below this)   |

## Notes on Threshold Interaction

* The **Chop Zone** boundaries and the **Momentum Oversold/Overbought** levels are independent. The chop zone defines where signals are suppressed entirely. The Oversold/Overbought levels define the extremes that Momentum must visit before a recovery or rejection qualifies.
* Avoid setting **Chop Zone Low** higher than **Momentum Oversold** — this creates a situation where oversold Momentum readings are inside the chop zone and can never trigger a signal.
* The horizontal **dashed lines** on the oscillator panel show Momentum Oversold (green dashed) and Momentum Overbought (red dashed).
* The horizontal **solid lines** show Volatility Overbought (red solid) and Volatility Oversold (green solid).
* The horizontal **dotted lines** show Chop Zone Low and Chop Zone High.


# divergence

## What Is Divergence?

Divergence occurs when **price and an indicator move in opposite directions**. It signals that the current price move is losing internal support — the underlying Momentum, Expansion Wave, or Order Flow is not confirming what price is doing.

In Synergy Signal, divergences are detected on three independent sources and contribute a **soft score boost** to the signal engine. They never block entries on their own.

## Types of Divergence Detected

### Bullish Divergence (Long Signal Boost)

Price makes a **lower low** while an indicator makes a **higher low**. Sellers are losing momentum even as price drops — a reversal may be forming.

| Type                  | Setting Name              | Price     | Indicator                            |
| --------------------- | ------------------------- | --------- | ------------------------------------ |
| Momentum Divergence   | Use Momentum Divs         | Lower low | Momentum line higher low             |
| Expansion Divergence  | Use Expansion Divergence  | Lower low | Expansion Wave bull value higher low |
| Order Flow Divergence | Use Order Flow Divergence | Lower low | Order Flow value higher low          |

### Bearish Divergence (Short Signal Boost)

Price makes a **higher high** while an indicator makes a **lower high**. Buyers are losing momentum even as price rises.

| Type                  | Setting Name              | Price       | Indicator                            |
| --------------------- | ------------------------- | ----------- | ------------------------------------ |
| Momentum Divergence   | Use Momentum Divs         | Higher high | Momentum line lower high             |
| Expansion Divergence  | Use Expansion Divergence  | Higher high | Expansion Wave bear value lower high |
| Order Flow Divergence | Use Order Flow Divergence | Higher high | Order Flow value lower high          |

## How Detection Works

The indicator uses **pivot points** to identify swing highs and lows:

* A **pivot low** is a bar whose low is lower than the 2 bars to its left and 2 bars to its right
* A **pivot high** is a bar whose high is higher than the 2 bars to its left and 2 bars to its right

When a new pivot forms, the indicator compares it to the previous pivot. If price makes a lower low but the indicator makes a higher low → bullish divergence detected.

### Age Limit

Divergences are only counted if both pivots occurred within the last **120 bars**. Older divergences are discarded as stale.

### Freshness Window

Once a divergence is detected at a pivot, it remains active for the number of bars set in **Divergence Fresh Bars** (default 20). This keeps the divergence score active during the window when price typically reacts.

{% hint style="info" %}
**Note:** Pivot points are confirmed 2 bars after they form. This means a divergence detected at a pivot is already 2 bars old when it registers. Set Divergence Fresh Bars to at least 5–10 to ensure the boost is active when the signal fires.
{% endhint %}

## Settings (Divergence Section in UI)

| Setting                   | Default | Description                                                     |
| ------------------------- | ------- | --------------------------------------------------------------- |
| Use Momentum Divs         | ✅ On    | Detect divergences on the Momentum line                         |
| Use Expansion Divergence  | ✅ On    | Detect divergences on the Expansion Wave                        |
| Use Order Flow Divergence | ✅ On    | Detect divergences on the Order Flow bars                       |
| Min Divergences Required  | 1       | How many divergence types must fire before any points are added |
| Divergence Fresh Bars     | 20      | How many bars a detected divergence remains active              |

## Min Divergences Required

This controls how many divergence types must agree before the pillar contributes to the score:

| Value | Behavior                                           |
| ----- | -------------------------------------------------- |
| 1     | Any single divergence type activates the pillar    |
| 2     | Two types must agree (e.g., Momentum + Order Flow) |
| 3     | All three types must agree simultaneously          |

Each active divergence type contributes its individual point to the score. Setting Min Divergences Required to 2 ensures at least 2 types are present before any divergence points are added.

## Divergence as a Soft Pillar

A key design principle: divergences **add score points but never block entries**. A strong setup with Expansion Wave + Momentum + Order Flow all aligned should still fire even if no divergence is present. Divergence is a **bonus confirmation** — not a prerequisite.

When divergence IS present alongside strong hard-pillar confluence, the total score rises and the setup carries more weight.

## Tips

* Set **Divergence Fresh Bars** higher (40–60) on higher timeframes (4H, Daily) where pivots take more bars to form and confirm.
* On fast timeframes (1m, 5m), divergences can be noisy. Set **Min Divergences Required** to 2 to require more agreement before counting any divergence points.
* **Triple divergence** (all three types firing simultaneously) is a particularly powerful setup, especially when it coincides with the hard-pillar conditions.
* To effectively remove divergence from scoring without adjusting Min Score, disable all three divergence toggles (Use Momentum Divs, Use Expansion Divergence, Use Order Flow Divergence).


# noise filters

Synergy Signal includes several layers of noise filtering to reduce false signals, especially in choppy or transitional market conditions. Here is every filter, what it does, and how to control it.

## 1. Chop Zone Block

**Setting:** Block Chop Zone (State section)

The most impactful noise filter. When enabled, any bar where the **Momentum line** falls between **Chop Zone Low** and **Chop Zone High** is treated as a ranging environment — and no signals fire.

| Setting        | Default | Effect                           |
| -------------- | ------- | -------------------------------- |
| Chop Zone Low  | 35      | Lower edge of the chop dead zone |
| Chop Zone High | 65      | Upper edge of the chop dead zone |

**How to tune it:**

* **Wider zone (e.g., 40/60):** More aggressive filtering. Signals only fire when Momentum is clearly trending. Fewer signals, higher quality.
* **Narrower zone (e.g., 30/70):** Only filters the very center of ranging. More signals, some may be in choppy conditions.
* **Disable entirely:** Turn off Block Chop Zone if you want to trade mean-reversion setups in ranging markets.

> **Visual cue:** The dotted white lines on the oscillator panel mark the Chop Zone Low and Chop Zone High boundaries.

## 2. Regime Filter

**Setting:** Regime Filter (Noise Filter section)

When enabled, the **Expansion Wave's regime assessment** gates all entries:

* **Longs** are only allowed when the Expansion Wave is bullish (`bullOK`)
* **Shorts** are only allowed when the Expansion Wave is bearish (`bearOK`)

This is the strictest directional filter. It prevents all counter-trend entries and only allows signals that align with the current Expansion Wave regime.

**When to use it:**

* ✅ Trend-following strategies on 1H+ timeframes
* ✅ When you want to avoid catching falling knives or shorting into strong rallies
* ❌ Mean-reversion or range trading strategies
* ❌ When the Expansion Wave pillar is disabled (the filter has no effect without it)

## 3. Curl Protection

This filter runs automatically and cannot be toggled. It prevents signals when Momentum and Order Flow are clearly moving against the intended trade direction.

**Blocks long signals when:**

* Momentum line is falling for 2+ bars
* Momentum is below its moving average
* Order Flow is also falling

**Blocks short signals when:**

* Momentum line is rising for 2+ bars
* Momentum is above its moving average
* Order Flow is also rising

This prevents entries when the live market internals are curling strongly against you.

## 4. Cooldown Timer

**Setting:** Cooldown bars after flip (Noise Filter section) — Default: 10

After any signal fires, the indicator enters a cooldown period. No new signal fires until the set number of bars has elapsed.

| Cooldown     | Effect                                             |
| ------------ | -------------------------------------------------- |
| 0            | No cooldown — signals can fire on consecutive bars |
| 5            | Short cooldown — suitable for faster timeframes    |
| 10 (default) | Standard for 1H charts                             |
| 20+          | Forces significant separation between signals      |

The cooldown prevents rapid back-and-forth flipping when conditions are near a threshold boundary.

**Recommended by timeframe:**

| Timeframe    | Suggested Cooldown |
| ------------ | ------------------ |
| 1m – 5m      | 3–5 bars           |
| 15m – 30m    | 5–8 bars           |
| 1H (default) | 10 bars            |
| 4H           | 5–8 bars           |
| Daily        | 3–5 bars           |

## 5. Volatility Gate

The Volatility pillar acts as a final directional gate. Even if the score and all other filters pass, the Volatility line must confirm the direction:

* **Long blocked if:** Volatility line ≥ 80 (Volatility Overbought — don't enter longs when already maxed out)
* **Short blocked if:** Volatility line ≤ 20 (Volatility Oversold — don't enter shorts when already depleted)

## 6. Only Plot on State Change

**Setting:** Only plot on state change (Signals section)

When enabled (default), dots are only plotted on the **first bar** when a new signal direction is entered. If the signal condition persists across multiple consecutive bars, no additional dots are drawn.

When disabled, a dot appears on **every bar** where the signal condition is true — useful for debugging or understanding signal persistence, but produces cluttered charts in live use.

## Filter Interaction Summary

| Filter          | Blocks Long | Blocks Short | How to Adjust                       |
| --------------- | ----------- | ------------ | ----------------------------------- |
| Chop Zone       | ✅           | ✅            | Adjust boundaries or disable toggle |
| Regime Filter   | ✅           | ✅            | Disable toggle                      |
| Curl Protection | ✅           | ✅            | Cannot disable (automatic)          |
| Cooldown Timer  | ✅           | ✅            | Set to 0 to disable                 |
| Volatility Gate | ✅           | ✅            | Disable Volatility pillar           |
| Score Threshold | ✅           | ✅            | Lower Base Min Score                |


# signals

The Signals (Entries) section controls whether long and short entry dots are displayed, and how frequently they appear on the chart.

## Settings (as they appear in the UI)

| Setting                   | Default | Description                                                        |
| ------------------------- | ------- | ------------------------------------------------------------------ |
| Enable Long Dots          | ✅ On    | Shows green dots at the bottom of the panel for long entry signals |
| Enable Short Dots         | ✅ On    | Shows red dots at the top of the panel for short entry signals     |
| Only plot on state change | ✅ On    | Dots only appear on the first bar of a new signal direction        |

## Use Cases for Disabling One Side

* **Disable Short Dots:** If you are trading a spot-only portfolio with no ability to short, hiding short dots reduces visual noise without affecting signal logic.
* **Disable Long Dots:** Useful if you are testing or running a short-only strategy.

Disabling one side of the dots does not affect the other side's logic or the position state machine.

## Only Plot on State Change

When enabled (default), the indicator tracks a position state (long, short, or flat) and only draws a dot on the bar where the state *changes direction*. A signal condition that persists for 5 consecutive bars draws only **one dot** — on the first bar it was true.

When disabled, a dot draws on every bar where the signal condition holds. Use cases for disabling:

* Understanding how long a condition persists across bars
* Debugging which bars satisfy signal conditions under different settings
* Visual strategy development and backtesting review

For live trading, leave this enabled for the clearest entry markers.


# noise filter

The Noise Filter section controls two key filters: the Regime Filter and the Cooldown timer.

## Settings

| Setting                  | Default | Range  | Description                                                            |
| ------------------------ | ------- | ------ | ---------------------------------------------------------------------- |
| Regime Filter            | ✅ On    | On/Off | Requires the Expansion Wave to confirm direction before a signal fires |
| Cooldown bars after flip | 10      | 0–∞    | Minimum bars that must elapse between any two signals                  |

## Regime Filter

When on, long signals require the Expansion Wave to be in a bullish regime, and short signals require it to be in a bearish regime. This is the strictest possible directional filter — it effectively makes the indicator trend-following only.

**Turn off if:**

* You are trading reversals or mean-reversion setups
* The Expansion Wave pillar is disabled (the filter has no effect without it)
* You are getting very few signals and want to understand what Momentum and Order Flow alone are producing

## Cooldown Bars After Flip

After any signal fires in either direction, the cooldown timer starts. The indicator cannot fire another signal until this many bars have elapsed, regardless of conditions.

Setting cooldown to **0** disables it entirely — the signal can flip direction on the very next bar if conditions change.

**Recommended values by timeframe:**

| Timeframe    | Suggested Cooldown                      |
| ------------ | --------------------------------------- |
| 1m – 5m      | 3–5 bars                                |
| 15m – 30m    | 5–8 bars                                |
| 1H (default) | 10 bars                                 |
| 4H           | 5–8 bars (bars are longer in real time) |
| Daily        | 3–5 bars                                |

The cooldown is measured in **bars**, not time. A 10-bar cooldown on a 4H chart is 40 hours of real time.


# confluence

The Confluence section controls how many pillars must agree before a signal fires, and whether the minimum score is automatically capped based on how many pillars are enabled.

## Settings (as they appear in the UI)

| Setting                | Default | Range  | Description                                                    |
| ---------------------- | ------- | ------ | -------------------------------------------------------------- |
| Score Pillars          | ✅ On    | On/Off | Auto-caps Base Min Score to the number of enabled hard pillars |
| Base Min Score (Long)  | 2       | 1–4    | Minimum score required to fire a long signal                   |
| Base Min Score (Short) | 2       | 1–4    | Minimum score required to fire a short signal                  |

## How Score Pillars (Auto-Scale) Works

When **Score Pillars** is enabled, the effective minimum score is:

```
Effective Min Score = min(Base Min Score, Number of enabled hard pillars)
```

Hard pillars = Expansion Wave + Momentum + Order Flow (maximum 3). Divergence is not counted as a hard pillar for this cap.

**Example:**

* Expansion Wave: On, Momentum: On, Order Flow: Off → 2 hard pillars available
* Base Min Score: 3
* Score Pillars caps effective minimum to **2** so signals can still fire

Without Score Pillars enabled, a Base Min Score of 3 with only 2 active pillars would make signals impossible to generate.

## Choosing Your Base Min Score

| Base Min Score | Signal Frequency | Quality   | Best Use Case               |
| -------------- | ---------------- | --------- | --------------------------- |
| 1              | High             | Lower     | Scalping, strategy testing  |
| 2 (default)    | Moderate         | Good      | Standard active trading     |
| 3              | Low              | High      | Swing trading on 4H+        |
| 4              | Very low         | Very high | High-conviction setups only |

You can set different values for longs and shorts independently. For example, in a confirmed bull market you might set Base Min Score (Long) to 1 and Base Min Score (Short) to 3.


# troubleshooting

<details>

<summary>No Signals Are Appearing</summary>

**Check these in order:**

1. **Are all pillars enabled?** Go to each section (Volatility, Momentum, Expansion, Order Flow) and confirm the "Enable" toggle is on.
2. **Is the Base Min Score too high?** If only 2 pillars are enabled but Base Min Score is 3, no signals can fire. Enable **Score Pillars** to auto-cap the threshold to the number of active pillars.
3. **Is the Regime Filter blocking all entries?** If the Expansion Wave is weak or ranging, neither `bullOK` nor `bearOK` will be true. Try temporarily disabling the Regime Filter to see if signals appear.
4. **Is the Cooldown too long?** A very high Cooldown value can prevent signals from resetting. Try reducing Cooldown bars to 0 temporarily to test.
5. **Is the Momentum line stuck in the Chop Zone?** If Momentum has been between 35 and 65 for an extended period, Block Chop Zone suppresses all signals. This is intentional — wait for Momentum to exit the chop zone.

</details>

<details>

<summary>Too Many Signals</summary>

1. **Raise the Base Min Score** from 2 to 3 for both Long and Short.
2. **Enable the Regime Filter** if it is currently off.
3. **Widen the Chop Zone** (e.g., 40/60 instead of 35/65).
4. **Increase the Cooldown** from 10 to 15–20 bars.
5. **Enable "Only plot on state change"** if it is currently off — this alone can dramatically reduce dot count.

</details>

<details>

<summary>Signals Appear But Quality Is Low</summary>

1. **Check your timeframe.** Signals calibrated for 1H may look noisy on 5m. Default settings are optimized for 1H crypto.
2. **Enable the Regime Filter.** Counter-trend signals are inherently less reliable. The Regime Filter prevents these.
3. **Raise Min Divergences Required** to 2 — requiring more divergence types to agree filters out weaker setups.
4. **Check the Order Flow pillar.** If you are on a non-BTC asset, Order Flow is using BTC volume. Disable Order Flow and see if signal quality improves with the remaining pillars.

</details>

<details>

<summary>Order Flow Bars Are Always Flat / Tiny</summary>

This usually happens when:

* **The asset is not BTC.** The indicator aggregates volume from BTC markets on Binance, Coinbase, and Kraken. On altcoin charts, Order Flow reflects BTC volume, which is still useful for macro context but may produce bars that don't visually match the asset's own price action.
* **Very short timeframes** where individual bar volume is small relative to the z-score normalization window, making normalized values appear compressed.

**Fix:** Disable Order Flow (Enable Order Flow toggle off) and rely on Expansion Wave, Momentum, and Volatility.

</details>

<details>

<summary>Dots Appear in the Middle of the Panel Instead of Top/Bottom</summary>

This is not a bug. The dots use `location.top` and `location.bottom` which places them at the top and bottom of the **indicator pane itself**, not the price chart. If your indicator pane is very short or compressed, top and bottom may appear close together. Resize the indicator pane by dragging its border downward to give it more height.

</details>

<details>

<summary>"Only Plot on State Change" Is On But No Dot Appeared</summary>

This happens when:

* A signal condition is met but the **Cooldown** has not elapsed since the last flip.
* The **position state is already in that direction** — e.g., already long, and the long condition is true again. No flip occurs, so no dot is drawn.

This is intentional. The state machine only fires a dot on a **direction change**, not on a continuation of the same signal.

</details>

<details>

<summary>Divergence Is Enabled But Doesn't Seem to Be Adding to the Score</summary>

1. **Check Divergence Fresh Bars.** If set to 0, divergence only counts on the exact bar of the pivot — but pivots are confirmed 2 bars after they form, meaning the boost is already expired. Set Fresh Bars to at least 10.
2. **Check Min Divergences Required.** If set to 2 or 3, a single divergence type will not activate the pillar. Lower to 1 to verify divergences are being detected at all.
3. **Check the Max Div Age.** Both pivots must have occurred within the last 120 bars. If the chart has not had two qualifying pivots in that window, no divergence is detected.

</details>

<details>

<summary>The Indicator Loads Slowly</summary>

The Order Flow calculation pulls volume data from three external symbols via `request.security()` calls (Binance, Coinbase, Kraken). On some systems or symbols, this can slow the initial load.

* If performance is an issue, **disable Order Flow** (Enable Order Flow toggle off) to remove the three external data requests.
* After the first full load, TradingView typically caches the security requests and subsequent reloads are faster.

</details>

<details>

<summary>The Momentum Trend Filter Lines Are Appearing Unexpectedly</summary>

If you see two additional lines on the oscillator (white and yellow pivot-smoothed lines), the **Momentum Trend Filter** has been enabled in the Momentum Filter (Pivots) section. This is an advanced feature that is off by default.

To hide these lines: go to Settings → Inputs → Momentum Filter (Pivots) → uncheck **Momentum Trend Filter**. Alternatively, hide the lines in the Style tab without disabling the filter logic.

</details>


# configurations

Below are tested starting configurations for different trading styles. All settings not listed remain at their defaults.

{% tabs %}
{% tab title="Config 1: Balanced Default (1H Crypto)" %}
Best for: Daily active trading on major crypto pairs (BTC, ETH) on the 1-hour chart.

| Setting                   | Value |
| ------------------------- | ----- |
| Enable Volatility         | On    |
| Enable Momentum           | On    |
| Enable Expansion          | On    |
| Enable Order Flow         | On    |
| Block Chop Zone           | On    |
| Chop Zone Low             | 35    |
| Chop Zone High            | 65    |
| Momentum Oversold         | 30    |
| Momentum Overbought       | 70    |
| Volatility Overbought     | 80    |
| Volatility Oversold       | 20    |
| Enable Long Dots          | On    |
| Enable Short Dots         | On    |
| Only plot on state change | On    |
| Use Momentum Divs         | On    |
| Use Expansion Divergence  | On    |
| Use Order Flow Divergence | On    |
| Min Divergences Required  | 1     |
| Divergence Fresh Bars     | 20    |
| Score Pillars             | On    |
| Base Min Score (Long)     | 2     |
| Base Min Score (Short)    | 2     |
| Regime Filter             | On    |
| Cooldown bars             | 10    |
| {% endtab %}              |       |

{% tab title="Config 2: Conservative Swing (4H / Daily)" %}
Best for: Swing trading with fewer, higher-conviction signals.

| Setting                  | Value   |
| ------------------------ | ------- |
| All pillars              | Enabled |
| Block Chop Zone          | On      |
| Chop Zone Low            | 40      |
| Chop Zone High           | 60      |
| Momentum Oversold        | 30      |
| Momentum Overbought      | 70      |
| Base Min Score (Long)    | 3       |
| Base Min Score (Short)   | 3       |
| Regime Filter            | On      |
| Cooldown bars            | 8       |
| Min Divergences Required | 2       |
| Divergence Fresh Bars    | 40      |
| {% endtab %}             |         |

{% tab title="Config 3: Momentum + Volatility Only (No Expansion, No Order Flow)" %}
Best for: Assets with unreliable volume data (small-cap altcoins) or when you want a simpler, faster-reacting signal based on price action alone.

| Setting                   | Value                        |
| ------------------------- | ---------------------------- |
| Enable Volatility         | On                           |
| Enable Momentum           | On                           |
| Enable Expansion          | **Off**                      |
| Enable Order Flow         | **Off**                      |
| Block Chop Zone           | On                           |
| Chop Zone Low             | 35                           |
| Chop Zone High            | 65                           |
| Base Min Score (Long)     | 1                            |
| Base Min Score (Short)    | 1                            |
| Regime Filter             | **Off** (Expansion disabled) |
| Score Pillars             | On                           |
| Use Momentum Divs         | On                           |
| Use Expansion Divergence  | Off                          |
| Use Order Flow Divergence | Off                          |
| Min Divergences Required  | 1                            |
| {% endtab %}              |                              |

{% tab title="Config 4: Scalping (5m–15m)" %}
Best for: Short-term scalping. Expect many signals — use other chart context to filter.

| Setting                   | Value   |
| ------------------------- | ------- |
| All pillars               | Enabled |
| Block Chop Zone           | On      |
| Chop Zone Low             | 30      |
| Chop Zone High            | 70      |
| Base Min Score (Long)     | 1       |
| Base Min Score (Short)    | 1       |
| Regime Filter             | Off     |
| Cooldown bars             | 3       |
| Only plot on state change | On      |
| Use Momentum Divs         | Off     |
| Use Expansion Divergence  | Off     |
| Use Order Flow Divergence | Off     |

> Divergence is disabled in scalping mode because divergence detection relies on pivot points that take multiple bars to confirm — too slow for very short timeframes.
> {% endtab %}

{% tab title="Config 5: Long-Bias Bull Market" %}
Best for: Confirmed bull market conditions where you want aggressive long entries and selective shorts.

| Setting                | Value                        |
| ---------------------- | ---------------------------- |
| All pillars            | Enabled                      |
| Base Min Score (Long)  | 1                            |
| Base Min Score (Short) | 3                            |
| Regime Filter          | On                           |
| Block Chop Zone        | On                           |
| Cooldown bars          | 10                           |
| Enable Short Dots      | On (ignore low-score shorts) |
| {% endtab %}           |                              |
| {% endtabs %}          |                              |

## Tuning Tip

Start with Config 1 and adjust from there. The single most impactful lever is **Base Min Score**:

* Too many signals → raise Base Min Score by 1
* Too few signals → lower Base Min Score by 1, or disable the Regime Filter


# reading the chart

This guide walks you through how to interpret what you see on the oscillator panel in real time.

## The Panel at a Glance

```
100 ─── [Volatility OB solid line] ──────────────── RED DOTS APPEAR HERE
 80 ─── [Volatility OB] ─────────────────────────────────────────────────
 70 - - [Momentum OB dashed] - - - - - - - - - - - - - - - - - - - - - -
 65 ···· [Chop Zone High dotted] ·······································
 50 ─── [Midline] ─────── Order Flow bars centered here ────────────────
 35 ···· [Chop Zone Low dotted] ········································
 30 - - [Momentum OS dashed] - - - - - - - - - - - - - - - - - - - - - -
 20 ─── [Volatility OS] ──────────────────────────────────────────────
  0 ─── [Volatility OS solid line] ───────────── GREEN DOTS APPEAR HERE
```

## Step-by-Step: Reading a Long Setup

{% stepper %}
{% step %}

#### Check the Expansion Wave (Blue Fill)

Look at the lower half of the panel (0–50). Is there a bright cyan/blue fill growing upward? This represents bullish Expansion Wave activity — price is pushing outside its statistical range with increasing force.

**No fill or a faint fill** = expansion is weak or absent. Without Expansion Wave support, the signal relies on Momentum and Order Flow alone.
{% endstep %}

{% step %}

#### Check the Momentum Line (Purple)

Is the purple line below 30 (Momentum Oversold, shown by the green dashed line), or has it been there recently? Is it now rising? Is it above the yellow Momentum MA?

**Momentum above its MA and rising after touching Oversold** = the core long condition. This is the most important pillar to read.
{% endstep %}

{% step %}

#### Check the Order Flow Bars (Green/Red)

Are the bars green and growing taller than recent bars? Is the color shifting from red to green?

**Growing green Order Flow bars** = buying pressure is building. This confirms the long.
{% endstep %}

{% step %}

#### Check the Volatility Line (Orange)

Is the orange line below 80 (Volatility Overbought)? Is it rising or curling up from near 20 (Volatility Oversold)?

**Orange Volatility line rising from below 20** is the ideal long entry condition. **Orange line at or above 80** = long signal will be blocked by the Volatility gate.
{% endstep %}

{% step %}

#### Confirm the Dot

A green dot at the bottom of the panel means all active filters passed and the Base Min Score was met. This is your entry signal.
{% endstep %}
{% endstepper %}

## Step-by-Step: Reading a Short Setup

Mirror of the above:

1. **Blue fill in the upper half (50–100)** = bearish Expansion Wave building
2. **Purple Momentum line falling from above 70, now below yellow MA** = Momentum rejecting from overbought
3. **Red Order Flow bars growing** = selling pressure building
4. **Orange Volatility line falling from near 80** = Volatility exhaustion and turn
5. **Red dot at the top of the panel** = short entry confirmed

## Common Patterns to Recognize

### The Classic Recovery (Long)

Momentum dips below 30 (Momentum Oversold), bounces, crosses back above the yellow MA. Order Flow bars flip from red to green. Expansion Wave fill is building in the lower half. Volatility line is turning up from below 20.

**Green dot fires.** This is the highest-quality long setup — all four pillars agreeing.

### The Exhaustion Fade (Short)

Momentum spikes above 70 on a surge then immediately begins falling. Order Flow bars flip from green to red. Volatility line is at 80+ and rolling over. Expansion Wave fill is brightening in the upper half.

**Red dot fires.** Classic short after an overextended move.

### The Failed Breakout

Momentum tries to push above 70 but Order Flow doesn't confirm — bars remain thin or turn red even as Momentum rises. The divergence system may detect a bearish Momentum divergence. No long dot fires. The subsequent red dot is often a strong short.

### The Chop Zone Warning

Momentum line is between 35 and 65. Order Flow bars alternate between small green and red with no conviction. No dots are firing.

**This is a ranging environment.** The Chop Zone block is working as intended. Wait for the Momentum line to exit above 65 or below 35 before looking for entries.

## What to Ignore

* Single bars of green/red Order Flow surrounded by opposite-colored bars — these are short-term noise.
* Momentum briefly touching the Oversold/Overbought level in a single bar then snapping back — a single-bar spike without follow-through is not a setup.
* The Volatility line sitting near 80 or 20 for extended periods in a strong trend — this is normal and doesn't mean the trend is over.

## Using With Price Context

The oscillator panel works best when combined with basic price chart context:

* **At key support or resistance levels** — a green dot near a well-known support level carries more weight than one in open air.
* **After a structural break** — the first signal after a significant range breakout or breakdown tends to be a strong follow-through entry.
* **When Order Flow bars and price volume are both confirming** — if Order Flow is green and the price chart's volume bar is also large and green, the conviction is reinforced.


