PROTECTED SOURCE SCRIPT
Sigma-X Algo [Main] - SMC & Volume Heatmap

**简介 / Short Description:**
A professional institutional trading system combining Statistical Mean Reversion (Sigma), Smart Money Concepts (SMC), and Volume Analysis. Designed for XAUUSD and BTC M5 scalping.
一套结合了统计学均值回归、SMC机构订单流以及量能热力图的专业交易系统。专为黄金(XAUUSD)和比特币(BTC)的M5短线交易设计。
**详细描述 / Description:**
---
### **[CN] 中文说明**
**Sigma-X Algo** 是一套为高波动市场(如黄金、比特币)量身定制的狙击型交易系统。它不预测行情,而是通过捕捉价格的**“统计学极值”**与**“机构订单痕迹”**,寻找高胜率的反转机会。
#### **核心功能 (Core Features)**
1. **📊 统计学均值回归 (Sigma Extremes):**
* 基于 **TRIMA** 算法计算价格偏离度。
* 当价格触及 **3.0σ** 极值时,图表会出现 **钻石信号**。
* **S+ (彩色钻石):** 顺势极值,胜率加成。
* **Risk (灰色钻石):** 逆势极值,提示风险。
2. **🏛️ 多周期 SMC 订单块 (MTF Order Blocks):**
* **4H OB (绿色/橙色):** 大级别“城墙”,也是核心反转区。
* **1H OB (蓝色/红色):** 短线“战术掩体”,用于日内观察。
* **逻辑:** 采用“穿透即删除”逻辑,只保留未被截取 (Unmitigated) 的有效结构。
3. **🔥 量能热力图 (Volume Heatmap):**
* 通过 K 线染色识别主力行为。
* **亮紫色/亮黄色 K 线:** 代表成交量超过平均值的 **2.0倍**。这是机构入场护盘或出货的关键信号。
4. **🌊 趋势过滤器 (Trend Filter):**
* 内置 **EMA 50/144** 斐波那契均线组,自动判定当前是顺势还是逆势。
#### **实战策略 (How to Trade)**
* **做多狙击 (Long Setup):**
1. 价格回踩 **4H 看涨 OB (绿色框)**。
2. 主图出现 **绿色 S+ 钻石** 信号。
3. **K 线变色 (亮紫)**,确认主力爆量承接。
* **做空狙击 (Short Setup):**
1. 价格反抽 **4H 看跌 OB (橙色框)**。
2. 主图出现 **红色 S+ 钻石** 信号。
3. **K 线变色 (亮黄)**,确认主力出货。
---
### **[EN] English Description**
**Sigma-X Algo** is a sniper-style trading system tailored for high-volatility assets like Gold (XAUUSD) and Bitcoin (BTC). Instead of predicting, it identifies high-probability reversals by combining **Statistical Extremes** with **Institutional Footprints**.
#### **Key Features**
1. **📊 Statistical Mean Reversion (Sigma Extremes):**
* Calculates price deviation based on the **TRIMA** algorithm.
* **Diamond Signals** appear when price hits the **3.0σ** extreme.
* **S+ (Colored Diamond):** Trend-following signals (High Probability).
* **Risk (Gray Diamond):** Counter-trend signals (Caution required).
2. **🏛️ MTF Smart Money Concepts (SMC):**
* **4H Order Blocks (Green/Orange):** The "HTF Wall". Primary reversal zones.
* **1H Order Blocks (Blue/Red):** Intraday tactical zones.
* **Logic:** Uses "Delete on Break" logic to keep the chart clean, showing only unmitigated zones.
3. **🔥 Volume Heatmap:**
* Highlights institutional activity by coloring candles.
* **Bright Purple/Yellow Candles:** Indicate volume is **2.0x** greater than average. This confirms "Stopping Volume" or "Climax" behavior.
4. **🌊 Trend Filter:**
* Built-in **EMA 50/144** Fibonacci ribbon to filter noise and identify the dominant trend.
#### **Trading Strategy**
* **Long Setup:**
1. Price dips into a **4H Bullish OB (Green Box)**.
2. A **Green S+ Diamond** appears.
3. **Highlighter Candle (Purple)** appears, confirming institutional absorption.
* **Short Setup:**
1. Price rallies into a **4H Bearish OB (Orange Box)**.
2. A **Red S+ Diamond** appears.
3. **Highlighter Candle (Yellow)** appears, confirming institutional distribution.
---
**Disclaimer:**
Trading involves high risk. This indicator is a tool for analysis, not financial advice. Always use stop losses.
---
# 2. 副图指标说明书 (Sub Indicator)
**标题 / Title:**
**Sigma-X Algo [Oscillator] - Divergence & Momentum**
**简介 / Short Description:**
The companion oscillator for the Sigma-X system. Features absolute momentum (TRIMA), structural trend filtering, and automatic divergence detection.
Sigma-X 系统的配套副图指标。包含绝对动能算法、趋势结构过滤以及自动背离检测功能。
**详细描述 / Description:**
---
### **[CN] 中文说明**
这是 **Sigma-X Algo** 系统的专用副图震荡指标,用于辅助主图进行动能确认和背离识别。
#### **核心功能**
1. **动能柱 (Momentum Histogram):**
* 基于价格与 TRIMA 均线的偏离度绘制。
* **实心柱:** 动能增强。
* **空心/浅色柱:** 动能衰竭(这是进场的重要参考)。
2. **👀 自动背离检测 (Auto Divergence):**
* 自动识别价格与动能之间的 **底背离 (Bullish)** 和 **顶背离 (Bearish)**。
* **绿线:** 底背离,提示潜在上涨。
* **红线:** 顶背离,提示潜在下跌。
3. **🦅 鹰眼预警 (Warning Zones):**
* 当动能突破 **1.8σ** 警戒线时,背景会变色,提示即将进入变盘区。
#### **如何配合主图使用**
当主图出现 **S+ 信号** 时,观察副图:
* 如果副图同时出现 **绿线 (底背离)**,胜率极高。
* 如果副图动能柱颜色变浅 (衰竭),确认反转即将发生。
---
### **[EN] English Description**
This is the companion oscillator for the **Sigma-X Algo** system, designed to confirm momentum and identify divergences.
#### **Key Features**
1. **Momentum Histogram:**
* Calculated based on the deviation between Price and TRIMA.
* **Solid Colors:** Momentum is increasing.
* **Pale Colors:** Momentum is exhausting (A key trigger for entry).
2. **👀 Auto Divergence Detection:**
* Automatically plots **Regular Bullish (Green Line)** and **Regular Bearish (Red Line)** divergences between Price and Oscillator.
3. **🦅 Warning Zones:**
* Background changes color when momentum breaches the **1.8σ** warning threshold, signaling potential volatility.
#### **How to Use with Main Chart**
When a **S+ Signal** appears on the Main Chart:
* Look for a **Green Line (Bullish Divergence)** on this oscillator for high-probability confirmation.
* Wait for the histogram bars to fade (exhaustion) before pulling the trigger.
---
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 이를 자유롭게 제한 없이 사용할 수 있습니다 – 자세한 내용은 여기에서 확인하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 이를 자유롭게 제한 없이 사용할 수 있습니다 – 자세한 내용은 여기에서 확인하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.