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."
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.