OPEN-SOURCE SCRIPT
Zweig Breadth Thrust (ZBT) Complete Validation

Zweig Breadth Thrust (ZBT) – Full Validation (Pine Script v6)
This script implements the classic Zweig Breadth Thrust (ZBT) indicator and adds a full validation layer to objectively identify complete signals based on Martin Zweig’s original rules.
⸻
🔎 What it measures
The ZBT tracks market breadth momentum:
• Ratio of advancing vs declining stocks:
ADV / (ADV + DECL)
• Smoothed using a 10-day EMA
It captures a rapid transition:
from oversold conditions → to broad market participation
⸻
⚙️ Signal logic (Zweig rules)
The script automatically validates the full signal:
1. Setup (oversold)
• ZBT drops below 0.40
2. Time window
• A 10 trading day window is triggered
3. Thrust (confirmation)
• ZBT must rise above 0.615 within that window
⸻
📊 States displayed
• 🔴 Setup
Market in oversold condition (< 0.40)
• 🟡 Setup Active
Countdown window in progress
• 🟢 VALID ZBT
Fully confirmed signal (high statistical significance)
• 🟠 Near Miss
Indicator approached the trigger but failed to confirm
• ⚫ Setup Expired
No confirmation within the allowed window
⸻
📈 Interpretation
• VALID ZBT
A rare signal historically associated with:
• Strong bullish phases
• Broad-based participation (not just mega caps)
• Near Miss
Typically reflects a short-term bounce rather than a structural shift
⸻
🧠 Practical use
This indicator is designed as:
• A risk-on / risk-off timing tool
• A confirmation of market regime change
• A complement to fundamental and technical analysis
⸻
⚠️ Notes
• Intended for daily timeframe
• Uses market breadth data (ADV / DECL), which may vary depending on TradingView data feeds
• Based on the original methodology by Martin Zweig
⸻
🧭 Use cases
Particularly useful for:
• Portfolio management
• Tactical asset allocation
• Confirming rallies after market corrections
This script implements the classic Zweig Breadth Thrust (ZBT) indicator and adds a full validation layer to objectively identify complete signals based on Martin Zweig’s original rules.
⸻
🔎 What it measures
The ZBT tracks market breadth momentum:
• Ratio of advancing vs declining stocks:
ADV / (ADV + DECL)
• Smoothed using a 10-day EMA
It captures a rapid transition:
from oversold conditions → to broad market participation
⸻
⚙️ Signal logic (Zweig rules)
The script automatically validates the full signal:
1. Setup (oversold)
• ZBT drops below 0.40
2. Time window
• A 10 trading day window is triggered
3. Thrust (confirmation)
• ZBT must rise above 0.615 within that window
⸻
📊 States displayed
• 🔴 Setup
Market in oversold condition (< 0.40)
• 🟡 Setup Active
Countdown window in progress
• 🟢 VALID ZBT
Fully confirmed signal (high statistical significance)
• 🟠 Near Miss
Indicator approached the trigger but failed to confirm
• ⚫ Setup Expired
No confirmation within the allowed window
⸻
📈 Interpretation
• VALID ZBT
A rare signal historically associated with:
• Strong bullish phases
• Broad-based participation (not just mega caps)
• Near Miss
Typically reflects a short-term bounce rather than a structural shift
⸻
🧠 Practical use
This indicator is designed as:
• A risk-on / risk-off timing tool
• A confirmation of market regime change
• A complement to fundamental and technical analysis
⸻
⚠️ Notes
• Intended for daily timeframe
• Uses market breadth data (ADV / DECL), which may vary depending on TradingView data feeds
• Based on the original methodology by Martin Zweig
⸻
🧭 Use cases
Particularly useful for:
• Portfolio management
• Tactical asset allocation
• Confirming rallies after market corrections
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.