OPEN-SOURCE SCRIPT
Pullback to the primary trend confluence Qiuku V2

This advanced indicator is designed to capture explosive trend breakouts while aggressively filtering out false signals in consolidation zones.
Key Strategies:
1. MA Cluster (The Squeeze): Identifies periods where SMA 13, 26, and 100 are tightly compressed (within 1% range), representing coiled energy.
2. Candle Piercing: Requires a strong candle body to physically cross through the entire MA cluster.
3. ADX Trend Filter: Signals are only valid when ADX > 25 and rising, ensuring the market is not in a "dead zone."
4. Structure Confirmation: To exit the "box," price must break the 20-bar highest high (for Long) or lowest low (for Short).
5. Volume Surge: Breakthroughs must be backed by relative volume > 1.2x of the 20-period average.
Visual Guides:
- Green Glowing Box: High-probability Bullish Breakout.
- Red Glowing Box: High-probability Bearish Breakdown.
- Gray Background: "Trash Time" - ADX is below 25, trend is too weak to trade.
- Yellow Cross: Potential "fake-out" detected due to low volume.
Key Strategies:
1. MA Cluster (The Squeeze): Identifies periods where SMA 13, 26, and 100 are tightly compressed (within 1% range), representing coiled energy.
2. Candle Piercing: Requires a strong candle body to physically cross through the entire MA cluster.
3. ADX Trend Filter: Signals are only valid when ADX > 25 and rising, ensuring the market is not in a "dead zone."
4. Structure Confirmation: To exit the "box," price must break the 20-bar highest high (for Long) or lowest low (for Short).
5. Volume Surge: Breakthroughs must be backed by relative volume > 1.2x of the 20-period average.
Visual Guides:
- Green Glowing Box: High-probability Bullish Breakout.
- Red Glowing Box: High-probability Bearish Breakdown.
- Gray Background: "Trash Time" - ADX is below 25, trend is too weak to trade.
- Yellow Cross: Potential "fake-out" detected due to low volume.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.