OPEN-SOURCE SCRIPT
Aktualisiert Vector Trinity I: Structure [VWAP-DBB]

This indicator is **Part 1** of the "Vector Trinity" trading system—a comprehensive, data-driven framework designed to analyze market behavior through three distinct physical dimensions:
* **I: Structure (Space):** Defines the battlefield and volatility boundaries (Current Indicator).
* **II: Impulse (Time):** Identifies momentum ignition and energy release.
* **III: Flow (Energy):** Validates the move via volume and capital flow.
**2. Core Logic: Why Rolling VWAP?**
Most standard Bollinger Bands use a Simple Moving Average (SMA) as the centerline. The flaw in SMA is that it treats every candle equally, regardless of trading activity.
**Vector Trinity I** replaces the SMA with a **Rolling VWAP (Volume-Weighted Average Price)** over a rolling window (default 20).
* **Data Logic:** Price combined with Volume represents the true "cost basis" of the market.
* **Behavior:** The centerline becomes "sticky" during high-volume nodes and moves faster when real capital enters. It represents the *True Mean* of the market structure.
**3. The Dual-Band "Highway" Structure**
Instead of a single channel, this system utilizes a Double Bollinger Band (DBB) architecture based on Standard Deviations (StdDev) from the VWAP:
* **The Noise Zone (Basis to 1.0 StdDev):** The empty space in the middle. Price action here is often choppy and directionless.
* **The Acceleration Zone (1.0 to 2.0 StdDev):** The filled "Cloud." When candles close and stay within this zone, it indicates a strong trend (The Highway).
* **The Reversion Zone (> 2.0 StdDev):** Price is statistically extended and may revert to the mean.
**4. Volatility Squeeze Detection**
The indicator integrates a mechanical "Squeeze" detection based on the relationship between the Bollinger Bands (Variance) and Keltner Channels (ATR).
* **Squeeze ON (Orange Cloud & Dots):** Daily variance is at extreme lows. Energy is compressing. Do not trade direction; prepare for a breakout.
* **Squeeze OFF (Grey Cloud):** Expansion phase. Volatility is returning to the market.
**5. How to Use**
* **Step 1:** Observe the **Purple Line (VWAP)**. Its slope dictates the dominant trend structure.
* **Step 2:** Look for **Orange Zones**. This indicates a "Squeeze." Wait for the cloud to turn Grey.
* **Step 3:** Trade the breakout when price closes inside the "Acceleration Zone" (between the inner and outer bands) accompanied by Volume.
**Settings:**
* **Rolling Length:** 20 (Standard for swing/day trading).
* **Inner/Outer Bands:** 1.0 / 2.0 (The standard trend definition).
* **Squeeze Sensitivity:** 1.5 (Standard KC Multiplier).
---
### **中文说明**
**1. 简介:矢量三位一体系统 (Vector Trinity)**
本指标是“矢量三位一体”交易系统的 **第一部分**。这是一套基于数据逻辑的综合分析框架,旨在通过三个物理维度解构市场行为:
* **I: Structure 结构 (空间):** 定义价格运行的战场边界与波动率结构(本指标)。
* **II: Impulse 脉冲 (时间):** 识别动能的点火与能量释放。
* **III: Flow 流向 (能量):** 通过成交量与资金流验证突破的真伪。
**2. 核心逻辑:为什么要用 Rolling VWAP?**
传统的布林带使用简单移动平均线 (SMA) 作为中轨。SMA 的缺陷在于它平等地对待每一根 K 线,而忽略了成交量的权重。
**Vector Trinity I** 使用 **Rolling VWAP (滚动成交量加权平均价)** 替代了 SMA。
* **数据逻辑:** 只有结合了成交量的价格,才代表市场真实的“平均持仓成本”。
* **表现特征:** 在放量交易区,中轨会表现出更强的支撑/阻力特性;在缩量区则表现平滑。它代表了市场结构的*真实均值*。
**3. 双通道“高速公路”结构**
本系统不使用单条轨道,而是基于 VWAP 的标准差 (StdDev) 构建了双重布林带 (DBB) 架构:
* **噪音区 (中轨 到 1.0 标准差):** 中间的空白区域。在此区域内的价格通常是无方向的震荡。
* **加速区 (1.0 到 2.0 标准差):** 填充颜色的“云带”。当 K 线收盘并运行于此区域时,代表趋势确立,价格进入了“高速公路”。
* **回归区 (> 2.0 标准差):** 价格在统计学上过热,可能面临均值回归。
**4. 波动率挤压监测 (Squeeze)**
指标内置了基于布林带(方差)与肯特纳通道(ATR)对比的机械化“挤压”监测。
* **挤压状态 (橙色云带 & 底部圆点):** 每日方差处于极低值 (Variance at extreme lows)。市场正在积蓄能量。此时不应猜测方向,而应等待爆发。
* **扩张状态 (灰色云带):** 挤压结束,波动率回归,趋势展开。
**5. 使用方法**
* **第一步:** 观察 **紫色中轨 (VWAP)**。它的倾斜方向决定了主要的结构趋势。
* **第二步:** 寻找 **橙色区域**。这代表“挤压”正在发生。耐心等待云带变回灰色。
* **第三步:** 当价格突破并收盘在“加速区”(内轨与外轨之间)时,配合成交量介入交易。
**参数设置:**
* **Rolling Length (周期):** 20 (波段/日内交易的标准设置)。
* **Inner/Outer Bands (内外轨):** 1.0 / 2.0 (经典的趋势定义范围)。
* **Squeeze Sensitivity (敏感度):** 1.5 (标准肯特纳通道倍数)。
* **I: Structure (Space):** Defines the battlefield and volatility boundaries (Current Indicator).
* **II: Impulse (Time):** Identifies momentum ignition and energy release.
* **III: Flow (Energy):** Validates the move via volume and capital flow.
**2. Core Logic: Why Rolling VWAP?**
Most standard Bollinger Bands use a Simple Moving Average (SMA) as the centerline. The flaw in SMA is that it treats every candle equally, regardless of trading activity.
**Vector Trinity I** replaces the SMA with a **Rolling VWAP (Volume-Weighted Average Price)** over a rolling window (default 20).
* **Data Logic:** Price combined with Volume represents the true "cost basis" of the market.
* **Behavior:** The centerline becomes "sticky" during high-volume nodes and moves faster when real capital enters. It represents the *True Mean* of the market structure.
**3. The Dual-Band "Highway" Structure**
Instead of a single channel, this system utilizes a Double Bollinger Band (DBB) architecture based on Standard Deviations (StdDev) from the VWAP:
* **The Noise Zone (Basis to 1.0 StdDev):** The empty space in the middle. Price action here is often choppy and directionless.
* **The Acceleration Zone (1.0 to 2.0 StdDev):** The filled "Cloud." When candles close and stay within this zone, it indicates a strong trend (The Highway).
* **The Reversion Zone (> 2.0 StdDev):** Price is statistically extended and may revert to the mean.
**4. Volatility Squeeze Detection**
The indicator integrates a mechanical "Squeeze" detection based on the relationship between the Bollinger Bands (Variance) and Keltner Channels (ATR).
* **Squeeze ON (Orange Cloud & Dots):** Daily variance is at extreme lows. Energy is compressing. Do not trade direction; prepare for a breakout.
* **Squeeze OFF (Grey Cloud):** Expansion phase. Volatility is returning to the market.
**5. How to Use**
* **Step 1:** Observe the **Purple Line (VWAP)**. Its slope dictates the dominant trend structure.
* **Step 2:** Look for **Orange Zones**. This indicates a "Squeeze." Wait for the cloud to turn Grey.
* **Step 3:** Trade the breakout when price closes inside the "Acceleration Zone" (between the inner and outer bands) accompanied by Volume.
**Settings:**
* **Rolling Length:** 20 (Standard for swing/day trading).
* **Inner/Outer Bands:** 1.0 / 2.0 (The standard trend definition).
* **Squeeze Sensitivity:** 1.5 (Standard KC Multiplier).
---
### **中文说明**
**1. 简介:矢量三位一体系统 (Vector Trinity)**
本指标是“矢量三位一体”交易系统的 **第一部分**。这是一套基于数据逻辑的综合分析框架,旨在通过三个物理维度解构市场行为:
* **I: Structure 结构 (空间):** 定义价格运行的战场边界与波动率结构(本指标)。
* **II: Impulse 脉冲 (时间):** 识别动能的点火与能量释放。
* **III: Flow 流向 (能量):** 通过成交量与资金流验证突破的真伪。
**2. 核心逻辑:为什么要用 Rolling VWAP?**
传统的布林带使用简单移动平均线 (SMA) 作为中轨。SMA 的缺陷在于它平等地对待每一根 K 线,而忽略了成交量的权重。
**Vector Trinity I** 使用 **Rolling VWAP (滚动成交量加权平均价)** 替代了 SMA。
* **数据逻辑:** 只有结合了成交量的价格,才代表市场真实的“平均持仓成本”。
* **表现特征:** 在放量交易区,中轨会表现出更强的支撑/阻力特性;在缩量区则表现平滑。它代表了市场结构的*真实均值*。
**3. 双通道“高速公路”结构**
本系统不使用单条轨道,而是基于 VWAP 的标准差 (StdDev) 构建了双重布林带 (DBB) 架构:
* **噪音区 (中轨 到 1.0 标准差):** 中间的空白区域。在此区域内的价格通常是无方向的震荡。
* **加速区 (1.0 到 2.0 标准差):** 填充颜色的“云带”。当 K 线收盘并运行于此区域时,代表趋势确立,价格进入了“高速公路”。
* **回归区 (> 2.0 标准差):** 价格在统计学上过热,可能面临均值回归。
**4. 波动率挤压监测 (Squeeze)**
指标内置了基于布林带(方差)与肯特纳通道(ATR)对比的机械化“挤压”监测。
* **挤压状态 (橙色云带 & 底部圆点):** 每日方差处于极低值 (Variance at extreme lows)。市场正在积蓄能量。此时不应猜测方向,而应等待爆发。
* **扩张状态 (灰色云带):** 挤压结束,波动率回归,趋势展开。
**5. 使用方法**
* **第一步:** 观察 **紫色中轨 (VWAP)**。它的倾斜方向决定了主要的结构趋势。
* **第二步:** 寻找 **橙色区域**。这代表“挤压”正在发生。耐心等待云带变回灰色。
* **第三步:** 当价格突破并收盘在“加速区”(内轨与外轨之间)时,配合成交量介入交易。
**参数设置:**
* **Rolling Length (周期):** 20 (波段/日内交易的标准设置)。
* **Inner/Outer Bands (内外轨):** 1.0 / 2.0 (经典的趋势定义范围)。
* **Squeeze Sensitivity (敏感度):** 1.5 (标准肯特纳通道倍数)。
Versionshinweise
Update ColorOpen-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.