PROTECTED SOURCE SCRIPT
MACD+ Pro Structure (W-Bottom & M-Top)

这是一个为您准备的 **MACD+ Pro Structure (V8.7)** 指标的详细中英双语简介。您可以将其保存为文档,或用于发布指标时的说明文案。
---
# 📈 MACD+ Pro Structure V8.7 - User Guide & Principles
# 📈 MACD+ Pro 结构化战法 V8.7 - 用户指南与原理说明
---
## 1. Introduction (简介)
**English:**
MACD+ Pro Structure is a comprehensive quantitative trading system designed for professional traders. It goes beyond the traditional MACD indicator by integrating **Price Action (Structure)**, **Momentum (Divergence)**, and **Volume Analysis**.
This indicator helps traders identify potential reversals through **Dual Divergence detection** and captures trend continuations or reversals via valid **W-Bottom/M-Top patterns**. It visualizes complex market logic into simple, actionable signals on your chart.
**中文:**
MACD+ Pro Structure 是一套专为专业交易者设计的综合量化交易系统。它超越了传统 MACD 指标的范畴,融合了**裸K形态(结构)**、**动能分析(背离)**以及**成交量分析**。
该指标通过**双重背离检测**帮助交易者识别潜在的反转点,并通过严格定义的**W底/M顶形态**捕捉趋势的突破或反转。它将复杂的市场逻辑转化为图表上简单、可执行的视觉信号。
---
## 2. Core Principles (核心原理)
### A. Dual Divergence Engine (双重背离引擎)
* **English:**
* The indicator monitors two types of divergences simultaneously: **Histogram Divergence** (Momentum decay) and **MACD Line Divergence** (Price/Indicator conflict).
* **Logic:** It uses Pivot points to compare price highs/lows against MACD highs/lows.
* **Visual:** When *any* divergence is detected, the MACD line instantly **thickens and changes color** (Green for Bullish, Red for Bearish). This indicates an active "N-Pattern" state, suggesting a high-probability reversal window.
* **中文:**
* 指标同时监测两种类型的背离:**柱状图背离**(动能衰竭)和 **MACD 快线背离**(量价冲突)。
* **逻辑**:利用 Pivot(波峰波谷)算法对比价格高低点与 MACD 指标高低点。
* **视觉**:当检测到*任意*一种背离时,MACD 快线会立即**加粗并变色**(多头变绿,空头变红)。这标志着“N字状态”的激活,提示当前处于高胜率的反转窗口期。
### B. Structural Patterns: W-Bottom & M-Top (结构化形态)
* **English:**
* Instead of subjective guessing, the script uses arrays to store Pivot Lows/Highs to identify valid **Double Bottoms (W)** and **Double Tops (M)**.
* **Validation:** It checks for time intervals between legs, price differences (tolerance), and volume shrinkage on the second leg.
* **Trigger:** A signal is only generated when the price **breaks the Neckline** (dashed line).
* **中文:**
* 不同于主观猜测,脚本使用数组记录波峰波谷,以识别有效的**双底(W底)**和**双顶(M顶)**。
* **验证**:系统会检查左右脚的时间间隔、价格误差(容差率)以及右脚的缩量情况。
* **触发**:信号仅在价格实体有效**突破颈线**(虚线)时才会触发。
---
## 3. Usage Guide (详细用法说明)
### Scenario 1: Reversal Trading (左侧反转交易)
**Signal:** MACD Line Color Change (Line Divergence)
* **English:**
1. Observe the MACD line.
2. **Bullish:** If price makes a lower low but the MACD line turns **Thick Green**, it indicates a Bottom Divergence. This is an entry signal for a potential reversal.
3. **Bearish:** If price makes a higher high but the MACD line turns **Thick Red**, it indicates a Top Divergence.
4. **Exit:** The line returns to a thin Blue line when the momentum fades or crosses the zero line.
* **中文:**
1. 观察 MACD 快线的状态。
2. **做多**:如果股价创新低,但 MACD 快线突然变成**加粗的绿色**,说明底背离确认。这是一个潜在的抄底信号。
3. **做空**:如果股价创新高,但 MACD 快线突然变成**加粗的红色**,说明顶背离确认。
4. **离场**:当动能衰竭或穿过零轴时,线条会恢复为细蓝色,提示反转动能结束。
### Scenario 2: Structural Breakout (右侧结构交易)
**Signal:** "W-Bottom" / "M-Top" Labels
* **English:**
1. Wait for the indicator to draw a **Dashed Neckline** (White for W, Red for M).
2. **Long Entry:** When the "W-Bottom" label appears and the candle closes above the white neckline. This confirms a structural breakout.
3. **Short Entry:** When the "M-Top" label appears and the candle closes below the red neckline.
* **中文:**
1. 等待指标自动绘制**虚线颈线**(W底为白色,M顶为红色)。
2. **做多进场**:当图表出现“W底”标签,且K线收盘价站上白色颈线时。这确认了结构的有效突破。
3. **做空进场**:当图表出现“M顶”标签,且K线收盘价跌破红色颈线时。
### Scenario 3: Auxiliary Signals (辅助信号)
* **English:**
* **Golden Needle (金针探底):** Long lower shadow with high volume + MACD below zero. Indicates panic selling and potential rebound.
* **Volume Breakout (放量突破):** Large bullish candle with high volume breaking the trend line. Indicates strong trend initiation.
* **中文:**
* **金针探底**: 长下影线配合巨量 + MACD 处于零轴下方。提示恐慌盘涌出,潜在的反弹机会。
* **放量突破**: 大阳线配合成交量放大,并突破长期趋势线。提示强趋势的启动。
---
## 4. Key Parameters (关键参数说明)
* **MACD Settings**: Standard 12, 26, 9 (Adjustable).
* **Divergence Check (背离检测)**:
* You can toggle Histogram or Line divergence individually.
* *Pivot Sensitivity*: Controls how strict the pivot detection is (Default 2).
* **Pattern Settings (形态设置)**:
* *ATR Tolerance*: Allows for dynamic price difference between W/M legs based on volatility.
* *Volume Shrink*: Enforces volume analysis on the second leg of the pattern.
---
## ⚠️ Disclaimer (免责声明)
**English:** This indicator is for assistance and educational purposes only. Past performance does not guarantee future results. Please combine with your own risk management strategy.
**中文:** 本指标仅供辅助分析和学习使用。历史表现不代表未来结果。请务必结合您自己的风险管理策略进行交易。
---
# 📈 MACD+ Pro Structure V8.7 - User Guide & Principles
# 📈 MACD+ Pro 结构化战法 V8.7 - 用户指南与原理说明
---
## 1. Introduction (简介)
**English:**
MACD+ Pro Structure is a comprehensive quantitative trading system designed for professional traders. It goes beyond the traditional MACD indicator by integrating **Price Action (Structure)**, **Momentum (Divergence)**, and **Volume Analysis**.
This indicator helps traders identify potential reversals through **Dual Divergence detection** and captures trend continuations or reversals via valid **W-Bottom/M-Top patterns**. It visualizes complex market logic into simple, actionable signals on your chart.
**中文:**
MACD+ Pro Structure 是一套专为专业交易者设计的综合量化交易系统。它超越了传统 MACD 指标的范畴,融合了**裸K形态(结构)**、**动能分析(背离)**以及**成交量分析**。
该指标通过**双重背离检测**帮助交易者识别潜在的反转点,并通过严格定义的**W底/M顶形态**捕捉趋势的突破或反转。它将复杂的市场逻辑转化为图表上简单、可执行的视觉信号。
---
## 2. Core Principles (核心原理)
### A. Dual Divergence Engine (双重背离引擎)
* **English:**
* The indicator monitors two types of divergences simultaneously: **Histogram Divergence** (Momentum decay) and **MACD Line Divergence** (Price/Indicator conflict).
* **Logic:** It uses Pivot points to compare price highs/lows against MACD highs/lows.
* **Visual:** When *any* divergence is detected, the MACD line instantly **thickens and changes color** (Green for Bullish, Red for Bearish). This indicates an active "N-Pattern" state, suggesting a high-probability reversal window.
* **中文:**
* 指标同时监测两种类型的背离:**柱状图背离**(动能衰竭)和 **MACD 快线背离**(量价冲突)。
* **逻辑**:利用 Pivot(波峰波谷)算法对比价格高低点与 MACD 指标高低点。
* **视觉**:当检测到*任意*一种背离时,MACD 快线会立即**加粗并变色**(多头变绿,空头变红)。这标志着“N字状态”的激活,提示当前处于高胜率的反转窗口期。
### B. Structural Patterns: W-Bottom & M-Top (结构化形态)
* **English:**
* Instead of subjective guessing, the script uses arrays to store Pivot Lows/Highs to identify valid **Double Bottoms (W)** and **Double Tops (M)**.
* **Validation:** It checks for time intervals between legs, price differences (tolerance), and volume shrinkage on the second leg.
* **Trigger:** A signal is only generated when the price **breaks the Neckline** (dashed line).
* **中文:**
* 不同于主观猜测,脚本使用数组记录波峰波谷,以识别有效的**双底(W底)**和**双顶(M顶)**。
* **验证**:系统会检查左右脚的时间间隔、价格误差(容差率)以及右脚的缩量情况。
* **触发**:信号仅在价格实体有效**突破颈线**(虚线)时才会触发。
---
## 3. Usage Guide (详细用法说明)
### Scenario 1: Reversal Trading (左侧反转交易)
**Signal:** MACD Line Color Change (Line Divergence)
* **English:**
1. Observe the MACD line.
2. **Bullish:** If price makes a lower low but the MACD line turns **Thick Green**, it indicates a Bottom Divergence. This is an entry signal for a potential reversal.
3. **Bearish:** If price makes a higher high but the MACD line turns **Thick Red**, it indicates a Top Divergence.
4. **Exit:** The line returns to a thin Blue line when the momentum fades or crosses the zero line.
* **中文:**
1. 观察 MACD 快线的状态。
2. **做多**:如果股价创新低,但 MACD 快线突然变成**加粗的绿色**,说明底背离确认。这是一个潜在的抄底信号。
3. **做空**:如果股价创新高,但 MACD 快线突然变成**加粗的红色**,说明顶背离确认。
4. **离场**:当动能衰竭或穿过零轴时,线条会恢复为细蓝色,提示反转动能结束。
### Scenario 2: Structural Breakout (右侧结构交易)
**Signal:** "W-Bottom" / "M-Top" Labels
* **English:**
1. Wait for the indicator to draw a **Dashed Neckline** (White for W, Red for M).
2. **Long Entry:** When the "W-Bottom" label appears and the candle closes above the white neckline. This confirms a structural breakout.
3. **Short Entry:** When the "M-Top" label appears and the candle closes below the red neckline.
* **中文:**
1. 等待指标自动绘制**虚线颈线**(W底为白色,M顶为红色)。
2. **做多进场**:当图表出现“W底”标签,且K线收盘价站上白色颈线时。这确认了结构的有效突破。
3. **做空进场**:当图表出现“M顶”标签,且K线收盘价跌破红色颈线时。
### Scenario 3: Auxiliary Signals (辅助信号)
* **English:**
* **Golden Needle (金针探底):** Long lower shadow with high volume + MACD below zero. Indicates panic selling and potential rebound.
* **Volume Breakout (放量突破):** Large bullish candle with high volume breaking the trend line. Indicates strong trend initiation.
* **中文:**
* **金针探底**: 长下影线配合巨量 + MACD 处于零轴下方。提示恐慌盘涌出,潜在的反弹机会。
* **放量突破**: 大阳线配合成交量放大,并突破长期趋势线。提示强趋势的启动。
---
## 4. Key Parameters (关键参数说明)
* **MACD Settings**: Standard 12, 26, 9 (Adjustable).
* **Divergence Check (背离检测)**:
* You can toggle Histogram or Line divergence individually.
* *Pivot Sensitivity*: Controls how strict the pivot detection is (Default 2).
* **Pattern Settings (形态设置)**:
* *ATR Tolerance*: Allows for dynamic price difference between W/M legs based on volatility.
* *Volume Shrink*: Enforces volume analysis on the second leg of the pattern.
---
## ⚠️ Disclaimer (免责声明)
**English:** This indicator is for assistance and educational purposes only. Past performance does not guarantee future results. Please combine with your own risk management strategy.
**中文:** 本指标仅供辅助分析和学习使用。历史表现不代表未来结果。请务必结合您自己的风险管理策略进行交易。
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, ücretsiz ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgiyi buradan edinebilirsiniz.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, ücretsiz ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgiyi buradan edinebilirsiniz.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.