OPEN-SOURCE SCRIPT

Market Regime & Bias Assistant [Prototype v1.1]

58

Market Regime & Bias Assistant [Prototype v1.1]


### **Overview**
The **Market Regime & Bias Assistant** is an all-in-one trend filtration and trading system designed to keep traders on the right side of the market. Instead of relying on a single moving average, this indicator combines **ADX (Trend Strength)**, **Multi-Timeframe EMAs**, **RSI**, and **Volume Spread Analysis (VSA)** concepts to generate a quantitative "Confidence Score" for the current market bias.

It automatically adapts its settings based on your timeframe (Intraday vs. Swing) and provides clear visual cues via background shading, candle coloring, and a data panel.

---

### **Key Features**

* **Auto-Adaptive Modes:** Automatically switches between "Intraday" and "Swing" settings based on your timeframe.
* *Intraday:* Uses faster EMAs (Aggressive 9/30 or Conservative 20/50) and VWAP.
* *Swing:* Uses standard 20/50 EMAs with 200/800 long-term context moving averages.
* **Market Regime Detection:** Identifies if the market is in a **Trend (Bull/Bear)** or a **Range (Neutral)** using a combination of ADX thresholds and EMA alignment.
* **Confidence Scoring (0-100):** A proprietary algorithm that scores the quality of the trend based on RSI alignment, Volume confirmation, and Long-term EMA context.
* **Vector Volume Candles:** Color-coded candles to highlight institutional activity (High Volume) vs. Climactic Volume (Exhaustion).
* **Pullback Signals:** "L" and "S" markers indicating high-probability entries after a pullback into the EMA value zone.
* **Data Dashboard:** A bottom-right panel displaying the current Mode, Regime, Bias, and quantitative Confidence Score.

---

### **How to Read the Visuals**

#### **1. Background Colors (The Regime)**
* **Green Background:** Confirmed **Bullish Trend**. Only look for Longs.
* **Red Background:** Confirmed **Bearish Trend**. Only look for Shorts.
* **Gray Background:** **Neutral / Range**. The market is chopping or consolidating. Stand aside or trade strictly mean-reversion.

#### **2. Candle Colors (Vector Volume)**
* **Green/Red Borders:** Normal volume.
* **Blue / Fuchsia:** **High Volume (1.2x Average)**. Indicates institutional interest or a breakout.
* **Lime / Bright Red:** **Climactic Volume (1.8x Average)**. Indicates potential exhaustion or a stopping volume event.

#### **3. The EMAs**
* **Fast/Slow Lines:** Show the immediate trend direction.
* **Gray/White Lines:** The 200 and 800 EMAs. These act as major support/resistance levels and define the "Big Picture" bias.
* **Lime Line (Intraday Only):** The VWAP (Volume Weighted Average Price).

---

### **How to Use This Indicator**

**Step 1: Check the Regime**
Look at the background color and the Dashboard panel. Is the Trend Strength "Strong" or "Very Strong"?
* *Rule:* Do not take trend-following trades if the Regime is "Range/Neutral."

**Step 2: Check the Confidence**
The dashboard calculates a score from 0 to 100.
* **High Confidence (>67):** All systems go. Alignment of RSI, Volume, and Trend.
* **Medium Confidence (34-66):** Caution warranted. Usually implies divergence in RSI or low volume.
* **Low Confidence (<34):** The trend is weak or failing.

**Step 3: Wait for the Setup (The Arrows)**
The indicator looks for pullbacks into the "Value Zone" (the space between the Fast and Slow EMA).
* **Triangle Up (L):** Appears when price pulls back into the zone during a Bull trend, then bounces out with volume confirmation.
* **Triangle Down (S):** Appears when price rallies into the zone during a Bear trend, then rejects lower.

---

### **Settings & Customization**
* **Mode:** Default is "Auto," but you can force "Intraday" or "Swing" manually.
* **Intraday Style:** Choose between "Aggressive" (9 EMA / 30 EMA) for scalping or "Conservative" (20 EMA / 50 EMA) for day trading.
* **ADX Threshold:** Adjusts how strict the trend filter is (Default: 20).
* **Visual Toggles:** Turn off/on the Panel, Background shading, or Vector candles to clean up your chart.

### **Alerts**
This script comes with built-in alert conditions for:
1. **Bullish Regime Start**
2. **Bearish Regime Start**
3. **High-Confidence Setup Detected**

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.