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**.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน