OPEN-SOURCE SCRIPT
Hyper Squeeze Sniper (Dual Side: Long + Short)

Hyper Squeeze Sniper (Dual Side: Long + Short)
Tagline: A professional-grade volatility breakout system designed to catch explosive moves in both Bull and Bear markets.
Description
The Hyper Squeeze Sniper is a comprehensive momentum indicator that combines Volatility Analysis, Volume Spread Analysis, and Trend Following logic into a single system. It is designed to identify the "Squeeze" (consolidation phase) and signal high-probability entries exactly when the price explodes.
This script features a built-in State Machine to manage trade status (Wait, Long, Short) and prevent conflicting signals.
🛠 Concepts & Calculations (The Logic)
This indicator uses a 3-step validation process to generate signals:
1. The Squeeze Detection (Consolidation)
Before a trend explodes, volatility usually contracts. We measure this using the relationship between Bollinger Bands (BB) and Keltner Channels (KC).
Logic: When the Bollinger Bands (Length 20, Mult 2.0) narrow completely inside the Keltner Channels (Length 20, Mult 1.5), the background turns Gray.
Meaning: Energy is building up. This is a "No Trade" zone.
2. The Breakout & Confirmation (Entry)
We do not trade every breakout. The script filters for "Smart Money" moves using:
Momentum Filter: Uses Linear Regression (20 periods) to calculate the true slope of the price. We only go Long if the slope is Positive, and Short if Negative.
Volume Filter: The breakout candle must have a volume at least 1.2x higher than the 20-period average (vol_mult = 1.2). This filters out fake breakouts with low participation.
Price Action: The candle must close in the direction of the trend (Green for Long, Red for Short).
3. The Trailing Stop (Risk Management)
Once a position is taken, an ATR Trailing Stop (Chandelier Exit logic) is activated.
Calculation: It uses a 14-period ATR with a multiplier of 3.0.
Behavior: The stop line only moves in favor of the trade (Ratcheting effect) to lock in profits as the trend extends.
📊 How to Use
For LONG Setups (Bullish)
Wait: Look for the Gray Squeeze Zone.
Signal: A Green Triangle labeled "LONG" appears below the bar.
Hold: Stay in the trade as long as the price remains ABOVE the Green Safety Line.
Exit: Close the position when the 'X' mark appears (Price closes below the Green Line).
For SHORT Setups (Bearish)
Wait: Look for the Gray Squeeze Zone.
Signal: A Red Triangle labeled "SHORT" appears above the bar.
Hold: Stay in the trade as long as the price remains BELOW the Orange Safety Line.
Exit: Close the position when the 'X' mark appears (Price closes above the Orange Line).
⚙️ Settings (Default)
Squeeze Settings: BB (20, 2.0) / KC (20, 1.5).
Volume Filter: 1.2 (Requires 20% higher volume than average).
ATR Exit: 3.0 (Wide stop for capturing large trends).
🖥 Dashboard
A status table is located at the top-right corner to provide real-time data:
Trend: Shows the current market phase (Squeeze, Bullish, or Bearish).
Status: Displays the current signal state (LONG, SHORT, or WAIT).
Stop Loss: Displays the precise price level for the trailing stop.
Tagline: A professional-grade volatility breakout system designed to catch explosive moves in both Bull and Bear markets.
Description
The Hyper Squeeze Sniper is a comprehensive momentum indicator that combines Volatility Analysis, Volume Spread Analysis, and Trend Following logic into a single system. It is designed to identify the "Squeeze" (consolidation phase) and signal high-probability entries exactly when the price explodes.
This script features a built-in State Machine to manage trade status (Wait, Long, Short) and prevent conflicting signals.
🛠 Concepts & Calculations (The Logic)
This indicator uses a 3-step validation process to generate signals:
1. The Squeeze Detection (Consolidation)
Before a trend explodes, volatility usually contracts. We measure this using the relationship between Bollinger Bands (BB) and Keltner Channels (KC).
Logic: When the Bollinger Bands (Length 20, Mult 2.0) narrow completely inside the Keltner Channels (Length 20, Mult 1.5), the background turns Gray.
Meaning: Energy is building up. This is a "No Trade" zone.
2. The Breakout & Confirmation (Entry)
We do not trade every breakout. The script filters for "Smart Money" moves using:
Momentum Filter: Uses Linear Regression (20 periods) to calculate the true slope of the price. We only go Long if the slope is Positive, and Short if Negative.
Volume Filter: The breakout candle must have a volume at least 1.2x higher than the 20-period average (vol_mult = 1.2). This filters out fake breakouts with low participation.
Price Action: The candle must close in the direction of the trend (Green for Long, Red for Short).
3. The Trailing Stop (Risk Management)
Once a position is taken, an ATR Trailing Stop (Chandelier Exit logic) is activated.
Calculation: It uses a 14-period ATR with a multiplier of 3.0.
Behavior: The stop line only moves in favor of the trade (Ratcheting effect) to lock in profits as the trend extends.
📊 How to Use
For LONG Setups (Bullish)
Wait: Look for the Gray Squeeze Zone.
Signal: A Green Triangle labeled "LONG" appears below the bar.
Hold: Stay in the trade as long as the price remains ABOVE the Green Safety Line.
Exit: Close the position when the 'X' mark appears (Price closes below the Green Line).
For SHORT Setups (Bearish)
Wait: Look for the Gray Squeeze Zone.
Signal: A Red Triangle labeled "SHORT" appears above the bar.
Hold: Stay in the trade as long as the price remains BELOW the Orange Safety Line.
Exit: Close the position when the 'X' mark appears (Price closes above the Orange Line).
⚙️ Settings (Default)
Squeeze Settings: BB (20, 2.0) / KC (20, 1.5).
Volume Filter: 1.2 (Requires 20% higher volume than average).
ATR Exit: 3.0 (Wide stop for capturing large trends).
🖥 Dashboard
A status table is located at the top-right corner to provide real-time data:
Trend: Shows the current market phase (Squeeze, Bullish, or Bearish).
Status: Displays the current signal state (LONG, SHORT, or WAIT).
Stop Loss: Displays the precise price level for the trailing stop.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.