OPEN-SOURCE SCRIPT
Manus Gold Daily Range Choppy Filter

### Manus Gold Daily Range Choppy Filter
This indicator is designed to answer one simple but critical question **before trading begins**:
**Is today a day worth trading, or is the market too choppy?**
Instead of generating entries or signals, this tool acts as a **daily market condition filter**. It helps traders avoid low-quality sessions where breakouts fail and price action is dominated by noise and mean-reversion.
---
### 🔍 What the indicator does
The script evaluates **market tradability once per day**, based on **yesterday’s completed data**, and then locks that decision for the entire trading day.
It combines two independent concepts:
#### 1️⃣ Choppiness Analysis (core logic)
* Calculates the **Choppiness Index** on **1H and 4H timeframes**
* Detects whether the market is:
* **Trending / expanding** (low & falling choppiness)
* **Range-bound / noisy** (high choppiness)
* Optional requirement that choppiness must be **falling** (early expansion phase)
#### 2️⃣ Daily Range Contraction (optional filter)
* Detects **NR days** (narrowest range in N days)
* Detects **ADR contraction** (yesterday’s range significantly smaller than normal)
* Used to identify potential **breakout-ready environments**
Both components are combined into a single **daily tradability decision**.
---
### 🟢 / 🔴 Output logic
* **Green bar** → Market is considered **tradable**
* **Red bar** → Market is **not tradable** (choppy / low quality)
Important characteristics:
* **Exactly one bar per day**
* No intraday repainting
* Decision is locked using **yesterday’s final data**
* Designed to be used on **any intraday chart**
---
### 📊 Visual elements
* Histogram bar (green / red) indicating daily tradability
* Optional background highlight on the first bar of each new day
* Optional table showing:
* Choppiness values (1H / 4H)
* Choppy / not-choppy status
* Falling expansion state
* DRB / contraction filter status
---
### 🎯 How to use it
This indicator is **not a trading strategy** and does **not provide entries**.
It is best used as:
* A **pre-market filter**
* A **“trade / no-trade” switch**
* A **risk and expectation management tool**
Typical usage:
* Trade breakout and trend strategies **only on green days**
* Reduce size or avoid trading entirely on red days
* Combine with your existing setups (London Breakout, NY session, trend continuation, etc.)
---
### ⚠️ Notes
* Designed and optimized for **Gold (XAUUSD)** but works on other instruments
* Uses higher-timeframe context to protect against intraday noise
* Especially useful for traders who struggle with **overtrading in ranges**
---
### ✅ Summary
This indicator helps you **stay out of bad days**, not chase more trades.
Sometimes, **the best trade is not trading at all**.
This indicator is designed to answer one simple but critical question **before trading begins**:
**Is today a day worth trading, or is the market too choppy?**
Instead of generating entries or signals, this tool acts as a **daily market condition filter**. It helps traders avoid low-quality sessions where breakouts fail and price action is dominated by noise and mean-reversion.
---
### 🔍 What the indicator does
The script evaluates **market tradability once per day**, based on **yesterday’s completed data**, and then locks that decision for the entire trading day.
It combines two independent concepts:
#### 1️⃣ Choppiness Analysis (core logic)
* Calculates the **Choppiness Index** on **1H and 4H timeframes**
* Detects whether the market is:
* **Trending / expanding** (low & falling choppiness)
* **Range-bound / noisy** (high choppiness)
* Optional requirement that choppiness must be **falling** (early expansion phase)
#### 2️⃣ Daily Range Contraction (optional filter)
* Detects **NR days** (narrowest range in N days)
* Detects **ADR contraction** (yesterday’s range significantly smaller than normal)
* Used to identify potential **breakout-ready environments**
Both components are combined into a single **daily tradability decision**.
---
### 🟢 / 🔴 Output logic
* **Green bar** → Market is considered **tradable**
* **Red bar** → Market is **not tradable** (choppy / low quality)
Important characteristics:
* **Exactly one bar per day**
* No intraday repainting
* Decision is locked using **yesterday’s final data**
* Designed to be used on **any intraday chart**
---
### 📊 Visual elements
* Histogram bar (green / red) indicating daily tradability
* Optional background highlight on the first bar of each new day
* Optional table showing:
* Choppiness values (1H / 4H)
* Choppy / not-choppy status
* Falling expansion state
* DRB / contraction filter status
---
### 🎯 How to use it
This indicator is **not a trading strategy** and does **not provide entries**.
It is best used as:
* A **pre-market filter**
* A **“trade / no-trade” switch**
* A **risk and expectation management tool**
Typical usage:
* Trade breakout and trend strategies **only on green days**
* Reduce size or avoid trading entirely on red days
* Combine with your existing setups (London Breakout, NY session, trend continuation, etc.)
---
### ⚠️ Notes
* Designed and optimized for **Gold (XAUUSD)** but works on other instruments
* Uses higher-timeframe context to protect against intraday noise
* Especially useful for traders who struggle with **overtrading in ranges**
---
### ✅ Summary
This indicator helps you **stay out of bad days**, not chase more trades.
Sometimes, **the best trade is not trading at all**.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.