OPEN-SOURCE SCRIPT
Yon Hybrid Momentum + Breakout Scanner with BB Squeeze

This Pine Script indicator is a comprehensive momentum and breakout scanner that combines multiple technical analysis tools to identify high-probability trading setups. Here's what it does:
Core Features:
1. Trend Identification (EMA System)
Uses two EMAs (9-period fast, 20-period slow) to determine trend direction
Colors the chart background: teal = uptrend, red = downtrend
An uptrend is confirmed when the fast EMA crosses above the slow EMA
2. Volume Analysis
Monitors volume spikes (when current volume exceeds 2x the 20-period average)
Volume spikes often indicate strong institutional interest or breakout momentum
Critical for confirming the validity of price movements
3. Momentum Indicators
MACD (12, 26, 9): Shows bullish/bearish crossovers with triangle markers
RSI (7-period): Identifies overbought (>70) and oversold (<30) conditions
VWAP: Shows the volume-weighted average price (purple line) - helps identify whether price is trading at fair value
4. Bollinger Bands & Squeeze Detection
Displays Bollinger Bands (20-period, 2 standard deviations)
BB Squeeze: Detects when volatility contracts to its lowest level in 20 bars
Squeezes often precede explosive breakout moves (like a coiled spring)
Orange squares appear at the bottom when a squeeze is detected
5. Breakout Detection
The script identifies breakouts using TWO methods:
Price breakout: Close above the recent 20-bar high
BB breakout: Close above the upper Bollinger Band
Confirmed breakout: Must have uptrend + volume spike + one of the above conditions
Shows a green "BREAKOUT" label when all conditions align
6. Live Status Label
A label in the top-right displays real-time market conditions:
Current trend (UPTREND/DOWNTREND)
Volume status (VOL SPIKE/Normal Vol)
RSI condition (HOT/COOL/Neutral)
Squeeze status (if active)
7. Alerts
Two automated alerts:
Breakout Alert: Triggers when a confirmed breakout occurs
Squeeze Alert: Triggers when Bollinger Bands enter a squeeze
Trading Use Cases:
This indicator is ideal for:
Swing traders looking for momentum setups with strong volume confirmation
Breakout traders who want to catch explosive moves after consolidation
Day traders monitoring multiple timeframes for high-probability entries
Watchlist scanning to quickly identify which stocks/cryptos are showing momentum
How to Use It:
Setup Phase: Look for BB squeeze markers (orange squares) - these signal compression
Confirmation: Wait for volume spike + uptrend + MACD bullish crossover
Entry: When "BREAKOUT" label appears with all confirmations
Validation: Price should be above VWAP and RSI not extremely overbought
The script essentially automates the process of finding stocks that are "coiling up" and ready to make a big move, then confirms when that move actually happens with volume.
Core Features:
1. Trend Identification (EMA System)
Uses two EMAs (9-period fast, 20-period slow) to determine trend direction
Colors the chart background: teal = uptrend, red = downtrend
An uptrend is confirmed when the fast EMA crosses above the slow EMA
2. Volume Analysis
Monitors volume spikes (when current volume exceeds 2x the 20-period average)
Volume spikes often indicate strong institutional interest or breakout momentum
Critical for confirming the validity of price movements
3. Momentum Indicators
MACD (12, 26, 9): Shows bullish/bearish crossovers with triangle markers
RSI (7-period): Identifies overbought (>70) and oversold (<30) conditions
VWAP: Shows the volume-weighted average price (purple line) - helps identify whether price is trading at fair value
4. Bollinger Bands & Squeeze Detection
Displays Bollinger Bands (20-period, 2 standard deviations)
BB Squeeze: Detects when volatility contracts to its lowest level in 20 bars
Squeezes often precede explosive breakout moves (like a coiled spring)
Orange squares appear at the bottom when a squeeze is detected
5. Breakout Detection
The script identifies breakouts using TWO methods:
Price breakout: Close above the recent 20-bar high
BB breakout: Close above the upper Bollinger Band
Confirmed breakout: Must have uptrend + volume spike + one of the above conditions
Shows a green "BREAKOUT" label when all conditions align
6. Live Status Label
A label in the top-right displays real-time market conditions:
Current trend (UPTREND/DOWNTREND)
Volume status (VOL SPIKE/Normal Vol)
RSI condition (HOT/COOL/Neutral)
Squeeze status (if active)
7. Alerts
Two automated alerts:
Breakout Alert: Triggers when a confirmed breakout occurs
Squeeze Alert: Triggers when Bollinger Bands enter a squeeze
Trading Use Cases:
This indicator is ideal for:
Swing traders looking for momentum setups with strong volume confirmation
Breakout traders who want to catch explosive moves after consolidation
Day traders monitoring multiple timeframes for high-probability entries
Watchlist scanning to quickly identify which stocks/cryptos are showing momentum
How to Use It:
Setup Phase: Look for BB squeeze markers (orange squares) - these signal compression
Confirmation: Wait for volume spike + uptrend + MACD bullish crossover
Entry: When "BREAKOUT" label appears with all confirmations
Validation: Price should be above VWAP and RSI not extremely overbought
The script essentially automates the process of finding stocks that are "coiling up" and ready to make a big move, then confirms when that move actually happens with volume.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。