OPEN-SOURCE SCRIPT
Qing (EMA + MACD + Squeeze)

Overview
The Qing EMA + MACD + Squeeze strategy is designed for traders who prioritize systematic trend confirmation over speculative entries. The core philosophy centers on the "bias" or gap between price and key moving averages, particularly the EMA 20, to determine overextended or breakout-ready conditions.
Key Features
The EMA Power Stack: Visualizes six distinct EMA periods (6, 12, 20, 50, 100, 200) to provide a clear view of short-term momentum versus long-term trend health.
EMA 20 Gap Label: Real-time percentage display of the distance between the current price and the EMA 20, allowing you to gauge "mean reversion" or "breakout strength" at a glance.
Qing Squeeze Detection: A specialized logic that identifies "tight" market consolidation (the Squeeze) where EMAs 6, 12, and 20 converge, often preceding explosive moves.
Integrated MACD & Volume: Uses MACD crossovers for momentum confirmation and volume spikes to filter out low-conviction breakouts.
Smart Risk Management: Features automatic position sizing based on a percentage of your equity and dynamic ATR-based Stop Loss and Take Profit levels.
How to Use
Bold Entry (Aggressive): Monitor for price moving and holding above the EMA 6. This is the first signal of a shift in immediate momentum.
Safe Entry (Conservative): Wait for a "Pair Stack" where the price is positioned above the EMA 6, 12, and 21 concurrently, supported by steadily buying volume.
Trend Filter: The EMA 200 (Red) serves as the ultimate trend barometer; typically, long setups are favored when the price is above this line.
Settings & Customization
Squeeze Tightness: Adjust the percentage spread allowed between short-term EMAs to define your breakout sensitivity.
Volume Spike: Customize the multiplier to ensure you only enter when professional interest is present.
MTF Filter: Optionally toggle a Higher Timeframe (e.g., Daily) filter to ensure you are trading in the direction of the "Big Picture."
The Qing EMA + MACD + Squeeze strategy is designed for traders who prioritize systematic trend confirmation over speculative entries. The core philosophy centers on the "bias" or gap between price and key moving averages, particularly the EMA 20, to determine overextended or breakout-ready conditions.
Key Features
The EMA Power Stack: Visualizes six distinct EMA periods (6, 12, 20, 50, 100, 200) to provide a clear view of short-term momentum versus long-term trend health.
EMA 20 Gap Label: Real-time percentage display of the distance between the current price and the EMA 20, allowing you to gauge "mean reversion" or "breakout strength" at a glance.
Qing Squeeze Detection: A specialized logic that identifies "tight" market consolidation (the Squeeze) where EMAs 6, 12, and 20 converge, often preceding explosive moves.
Integrated MACD & Volume: Uses MACD crossovers for momentum confirmation and volume spikes to filter out low-conviction breakouts.
Smart Risk Management: Features automatic position sizing based on a percentage of your equity and dynamic ATR-based Stop Loss and Take Profit levels.
How to Use
Bold Entry (Aggressive): Monitor for price moving and holding above the EMA 6. This is the first signal of a shift in immediate momentum.
Safe Entry (Conservative): Wait for a "Pair Stack" where the price is positioned above the EMA 6, 12, and 21 concurrently, supported by steadily buying volume.
Trend Filter: The EMA 200 (Red) serves as the ultimate trend barometer; typically, long setups are favored when the price is above this line.
Settings & Customization
Squeeze Tightness: Adjust the percentage spread allowed between short-term EMAs to define your breakout sensitivity.
Volume Spike: Customize the multiplier to ensure you only enter when professional interest is present.
MTF Filter: Optionally toggle a Higher Timeframe (e.g., Daily) filter to ensure you are trading in the direction of the "Big Picture."
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.