OPEN-SOURCE SCRIPT
已更新 Squeeze Momentum Indicator [AGPro Series]

Squeeze Momentum Indicator [AGPro Series]
🔷 OVERVIEW
Squeeze Momentum Indicator [AGPro Series] is a lower-pane volatility and momentum engine built for traders who want more structure than the classic squeeze workflow usually provides.
At its core, the script studies a very specific sequence in market behavior:
volatility compression,
compression release,
directional pressure after release,
and whether that pressure is strengthening, fading, or slipping back toward balance.
Most squeeze-style indicators stop at a simple yes/no squeeze condition and a basic momentum histogram around the zero line. This script is designed to go further without becoming noisy. It keeps the familiar Bollinger Band vs Keltner Channel compression logic that many traders already understand, but it rebuilds the momentum side around a different internal model so the post-squeeze move can be judged with more nuance.
The result is a more structured answer to an important practical question:
when volatility finally expands, is the move actually carrying useful directional pressure, or is it only a shallow release that may lose energy quickly?
🔷 WHAT THIS SCRIPT DOES
This indicator combines four layers into one compact oscillator workflow:
1. Volatility compression detection
It identifies squeeze conditions using Bollinger Band and Keltner Channel relationship logic.
2. Compression depth tracking
It does not only ask whether a squeeze exists. It also tracks how tightly the Bollinger envelope sits inside the Keltner envelope, which helps frame how compressed the market really is.
3. ATR-normalized momentum pressure
Instead of using the classic legacy-style squeeze momentum formula, this script blends:
- displacement from equilibrium
- directional velocity of that equilibrium
- path efficiency of recent price travel
This creates a momentum engine that is designed to evaluate the quality of directional pressure after release, not just whether a histogram is above or below zero.
4. Adaptive expansion / fade context
The script builds dynamic balance and burst zones around momentum, then classifies whether price is:
- compressing
- releasing with bullish pressure
- releasing with bearish pressure
- continuing directionally
- fading after an elevated move
- rotating back toward balance
This makes the tool especially useful for traders who want squeeze timing, but do not want to treat every release as equally meaningful.
🔷 WHAT MAKES THIS DIFFERENT FROM MOST SQUEEZE INDICATORS
The squeeze concept is widely known, but many public versions still revolve around the same structure:
a binary compression state and a very simple momentum histogram.
This script is intentionally different in several ways:
• It treats squeeze as a volatility gate, not as the full identity of the indicator.
• It uses an original blended momentum model rather than reusing the standard linear-regression style momentum formula associated with many older versions.
• It adds adaptive momentum zones so the oscillator can distinguish between ordinary movement and higher-energy expansion.
• It marks not only burst phases, but also momentum fade phases, which helps separate continuation pressure from cooling pressure.
• It includes restrained release labels, release boxes, and a compact information panel so the visual output stays premium and readable instead of overloaded.
In short, this script is not trying to be another cosmetic variation of an old squeeze formula.
Its objective is narrower and more analytical:
measure the quality of post-compression directional pressure in a clean lower-pane environment.
🔷 HOW THIS SCRIPT IS DIFFERENT FROM OTHER AGPRO TOOLS
This part matters because originality and role separation inside a script catalog are important.
Within the AGPro Series, this indicator is intentionally separate from nearby concepts:
• AG Pro Bollinger Bands Squeeze Map
That script is an on-chart volatility regime map built to show how compression and release behave directly on price.
This script is different.
It is a dedicated lower-pane momentum-quality engine focused on what happens after compression begins to resolve.
• AG Pro ROC Momentum Shift Map
That script studies momentum regime transitions through ROC behavior.
It is a broader momentum-state classifier.
This script is narrower by design and specifically anchored to squeeze-release behavior.
• AG Pro Structural Momentum Oscillator
That script evaluates momentum through internal price structure and bar behavior.
This script does not try to read momentum that way.
Its purpose is to organize volatility compression and post-compression expansion into a squeeze-specific workflow.
That distinction is central to this release:
this is not a re-labeled overlap script.
It is a purpose-built squeeze momentum tool with its own logic, its own visual model, and its own analytical role.
🔷 HOW THE ENGINE WORKS
The script begins with a standard compression framework:
- Bollinger Bands define the volatility envelope.
- Keltner Channels define the containment envelope.
- When the Bollinger structure contracts inside the Keltner structure, squeeze conditions are present.
From there, the script moves into a separate momentum model.
Instead of relying on one traditional oscillator formula, the engine blends three components:
1. Displacement from equilibrium
Measures how far price has moved from its equilibrium anchor relative to ATR.
2. Equilibrium velocity
Measures whether that equilibrium is moving directionally and how quickly.
3. Path efficiency
Measures how efficiently price has traveled over the selected lookback instead of simply how far it moved.
Those three components are blended into a normalized momentum-pressure read, then smoothed for cleaner interpretation.
The script then builds two adaptive internal thresholds:
- a balance band
- a burst band
These dynamic bands help classify whether momentum is:
- quiet / balanced
- directional but ordinary
- strong enough to qualify as a burst
- elevated but beginning to fade
This adaptive structure matters because a fixed threshold often reads very differently across symbols, volatility regimes, and timeframes.
🔷 VISUAL DESIGN
The visual design is built around premium clarity rather than signal overload.
The pane includes:
• A momentum histogram with four directional states
- bullish expansion strengthening
- bullish pressure fading
- bearish expansion strengthening
- bearish pressure fading
• Adaptive upper and lower momentum zones
These show where momentum is operating in balance versus expansion territory.
• Squeeze markers on the zero line
These quickly show whether volatility is still compressed or has just released.
• Optional release boxes
These create rectangular burst zones that make active expansion phases easier to scan visually.
• Restrained release / fade labels
Labels are intentionally filtered and spaced so the chart remains informative without looking crowded.
• AG Pro information panel
The panel summarizes squeeze state, phase, bias, momentum, energy, and current signal context.
The goal is to keep the script visually rich, but still clean enough for repeated real-world use.
🔷 HOW TO READ IT
A practical way to interpret the script:
• Squeeze ON
Volatility is compressed.
This is preparation, not directional confirmation.
• Bull Burst / Bear Burst
Compression has released and momentum has cleared the adaptive balance zone with directional pressure.
This is the main transition event in the workflow.
• Bull Drive / Bear Drive
The market is still carrying directional pressure after release.
• Bull Fade / Bear Fade
Momentum remains elevated, but acceleration is cooling.
This does not automatically mean reversal.
It means the move is no longer improving in quality.
• Balance
The market is not in an active burst condition and momentum is closer to neutral internal behavior.
This makes the script useful not only for timing expansion, but also for judging whether that expansion is still healthy or beginning to lose structure.
🔷 WHO THIS MAY BE USEFUL FOR
This script may be useful for traders who want to:
- track volatility compression and release in a dedicated oscillator pane
- filter squeeze releases by actual momentum quality
- distinguish stronger directional expansion from weaker post-release drift
- pair volatility timing with structure, trend, VWAP, or support/resistance analysis
- reduce overreaction to every simple zero-line shift
- organize post-squeeze behavior more cleanly in discretionary workflows
It is especially suitable for users who like the squeeze concept, but want more context than a traditional dot-plus-histogram implementation.
🔷 KEY INPUTS
Core settings include:
- BB Length
- BB StdDev
- KC Length
- KC ATR Multiplier
- True Range toggle for Keltner construction
Momentum settings include:
- Equilibrium Length
- Velocity Length
- Momentum Smoothing
- Adaptive Band Length
- Burst Band Multiplier
Visual and workflow settings include:
- Adaptive momentum zones
- Signal line
- Histogram width
- Release boxes
- Release box persistence
- Label spacing
- Label size
- Panel position
- Theme
- Panel font size
This gives users enough control to adapt the script to different symbols and timeframes without turning the interface into a settings overload.
🔷 LIMITATIONS AND TRANSPARENCY
This indicator is a chart-analysis tool.
It is not a guarantee of breakout continuation, not a prediction engine, and not a substitute for trade planning or risk management.
A few important points should be kept in mind:
- A squeeze can resolve in either direction.
- A valid release can still fail.
- Strong momentum can cool without immediately reversing.
- Some instruments will produce noisier momentum behavior than others.
- Settings may need adjustment depending on timeframe, volatility regime, and instrument structure.
The script is best treated as a decision-support layer for reading volatility expansion and momentum quality more clearly.
It is not presented as a standalone trading system.
🔷 IN ONE SENTENCE
Squeeze Momentum Indicator [AGPro Series] is designed to show not only when volatility is ready to move, but whether the actual post-squeeze move is carrying enough directional pressure, quality, and persistence to deserve attention.
🔷 OVERVIEW
Squeeze Momentum Indicator [AGPro Series] is a lower-pane volatility and momentum engine built for traders who want more structure than the classic squeeze workflow usually provides.
At its core, the script studies a very specific sequence in market behavior:
volatility compression,
compression release,
directional pressure after release,
and whether that pressure is strengthening, fading, or slipping back toward balance.
Most squeeze-style indicators stop at a simple yes/no squeeze condition and a basic momentum histogram around the zero line. This script is designed to go further without becoming noisy. It keeps the familiar Bollinger Band vs Keltner Channel compression logic that many traders already understand, but it rebuilds the momentum side around a different internal model so the post-squeeze move can be judged with more nuance.
The result is a more structured answer to an important practical question:
when volatility finally expands, is the move actually carrying useful directional pressure, or is it only a shallow release that may lose energy quickly?
🔷 WHAT THIS SCRIPT DOES
This indicator combines four layers into one compact oscillator workflow:
1. Volatility compression detection
It identifies squeeze conditions using Bollinger Band and Keltner Channel relationship logic.
2. Compression depth tracking
It does not only ask whether a squeeze exists. It also tracks how tightly the Bollinger envelope sits inside the Keltner envelope, which helps frame how compressed the market really is.
3. ATR-normalized momentum pressure
Instead of using the classic legacy-style squeeze momentum formula, this script blends:
- displacement from equilibrium
- directional velocity of that equilibrium
- path efficiency of recent price travel
This creates a momentum engine that is designed to evaluate the quality of directional pressure after release, not just whether a histogram is above or below zero.
4. Adaptive expansion / fade context
The script builds dynamic balance and burst zones around momentum, then classifies whether price is:
- compressing
- releasing with bullish pressure
- releasing with bearish pressure
- continuing directionally
- fading after an elevated move
- rotating back toward balance
This makes the tool especially useful for traders who want squeeze timing, but do not want to treat every release as equally meaningful.
🔷 WHAT MAKES THIS DIFFERENT FROM MOST SQUEEZE INDICATORS
The squeeze concept is widely known, but many public versions still revolve around the same structure:
a binary compression state and a very simple momentum histogram.
This script is intentionally different in several ways:
• It treats squeeze as a volatility gate, not as the full identity of the indicator.
• It uses an original blended momentum model rather than reusing the standard linear-regression style momentum formula associated with many older versions.
• It adds adaptive momentum zones so the oscillator can distinguish between ordinary movement and higher-energy expansion.
• It marks not only burst phases, but also momentum fade phases, which helps separate continuation pressure from cooling pressure.
• It includes restrained release labels, release boxes, and a compact information panel so the visual output stays premium and readable instead of overloaded.
In short, this script is not trying to be another cosmetic variation of an old squeeze formula.
Its objective is narrower and more analytical:
measure the quality of post-compression directional pressure in a clean lower-pane environment.
🔷 HOW THIS SCRIPT IS DIFFERENT FROM OTHER AGPRO TOOLS
This part matters because originality and role separation inside a script catalog are important.
Within the AGPro Series, this indicator is intentionally separate from nearby concepts:
• AG Pro Bollinger Bands Squeeze Map
That script is an on-chart volatility regime map built to show how compression and release behave directly on price.
This script is different.
It is a dedicated lower-pane momentum-quality engine focused on what happens after compression begins to resolve.
• AG Pro ROC Momentum Shift Map
That script studies momentum regime transitions through ROC behavior.
It is a broader momentum-state classifier.
This script is narrower by design and specifically anchored to squeeze-release behavior.
• AG Pro Structural Momentum Oscillator
That script evaluates momentum through internal price structure and bar behavior.
This script does not try to read momentum that way.
Its purpose is to organize volatility compression and post-compression expansion into a squeeze-specific workflow.
That distinction is central to this release:
this is not a re-labeled overlap script.
It is a purpose-built squeeze momentum tool with its own logic, its own visual model, and its own analytical role.
🔷 HOW THE ENGINE WORKS
The script begins with a standard compression framework:
- Bollinger Bands define the volatility envelope.
- Keltner Channels define the containment envelope.
- When the Bollinger structure contracts inside the Keltner structure, squeeze conditions are present.
From there, the script moves into a separate momentum model.
Instead of relying on one traditional oscillator formula, the engine blends three components:
1. Displacement from equilibrium
Measures how far price has moved from its equilibrium anchor relative to ATR.
2. Equilibrium velocity
Measures whether that equilibrium is moving directionally and how quickly.
3. Path efficiency
Measures how efficiently price has traveled over the selected lookback instead of simply how far it moved.
Those three components are blended into a normalized momentum-pressure read, then smoothed for cleaner interpretation.
The script then builds two adaptive internal thresholds:
- a balance band
- a burst band
These dynamic bands help classify whether momentum is:
- quiet / balanced
- directional but ordinary
- strong enough to qualify as a burst
- elevated but beginning to fade
This adaptive structure matters because a fixed threshold often reads very differently across symbols, volatility regimes, and timeframes.
🔷 VISUAL DESIGN
The visual design is built around premium clarity rather than signal overload.
The pane includes:
• A momentum histogram with four directional states
- bullish expansion strengthening
- bullish pressure fading
- bearish expansion strengthening
- bearish pressure fading
• Adaptive upper and lower momentum zones
These show where momentum is operating in balance versus expansion territory.
• Squeeze markers on the zero line
These quickly show whether volatility is still compressed or has just released.
• Optional release boxes
These create rectangular burst zones that make active expansion phases easier to scan visually.
• Restrained release / fade labels
Labels are intentionally filtered and spaced so the chart remains informative without looking crowded.
• AG Pro information panel
The panel summarizes squeeze state, phase, bias, momentum, energy, and current signal context.
The goal is to keep the script visually rich, but still clean enough for repeated real-world use.
🔷 HOW TO READ IT
A practical way to interpret the script:
• Squeeze ON
Volatility is compressed.
This is preparation, not directional confirmation.
• Bull Burst / Bear Burst
Compression has released and momentum has cleared the adaptive balance zone with directional pressure.
This is the main transition event in the workflow.
• Bull Drive / Bear Drive
The market is still carrying directional pressure after release.
• Bull Fade / Bear Fade
Momentum remains elevated, but acceleration is cooling.
This does not automatically mean reversal.
It means the move is no longer improving in quality.
• Balance
The market is not in an active burst condition and momentum is closer to neutral internal behavior.
This makes the script useful not only for timing expansion, but also for judging whether that expansion is still healthy or beginning to lose structure.
🔷 WHO THIS MAY BE USEFUL FOR
This script may be useful for traders who want to:
- track volatility compression and release in a dedicated oscillator pane
- filter squeeze releases by actual momentum quality
- distinguish stronger directional expansion from weaker post-release drift
- pair volatility timing with structure, trend, VWAP, or support/resistance analysis
- reduce overreaction to every simple zero-line shift
- organize post-squeeze behavior more cleanly in discretionary workflows
It is especially suitable for users who like the squeeze concept, but want more context than a traditional dot-plus-histogram implementation.
🔷 KEY INPUTS
Core settings include:
- BB Length
- BB StdDev
- KC Length
- KC ATR Multiplier
- True Range toggle for Keltner construction
Momentum settings include:
- Equilibrium Length
- Velocity Length
- Momentum Smoothing
- Adaptive Band Length
- Burst Band Multiplier
Visual and workflow settings include:
- Adaptive momentum zones
- Signal line
- Histogram width
- Release boxes
- Release box persistence
- Label spacing
- Label size
- Panel position
- Theme
- Panel font size
This gives users enough control to adapt the script to different symbols and timeframes without turning the interface into a settings overload.
🔷 LIMITATIONS AND TRANSPARENCY
This indicator is a chart-analysis tool.
It is not a guarantee of breakout continuation, not a prediction engine, and not a substitute for trade planning or risk management.
A few important points should be kept in mind:
- A squeeze can resolve in either direction.
- A valid release can still fail.
- Strong momentum can cool without immediately reversing.
- Some instruments will produce noisier momentum behavior than others.
- Settings may need adjustment depending on timeframe, volatility regime, and instrument structure.
The script is best treated as a decision-support layer for reading volatility expansion and momentum quality more clearly.
It is not presented as a standalone trading system.
🔷 IN ONE SENTENCE
Squeeze Momentum Indicator [AGPro Series] is designed to show not only when volatility is ready to move, but whether the actual post-squeeze move is carrying enough directional pressure, quality, and persistence to deserve attention.
發行說明
UPDATE NOTES - V2.1This micro update focuses on screenshot-based visual cleanup after comparing the original public chart with the first V2 draft.
The core purpose of the script remains unchanged.
This release keeps the new Expansion Quality, Failure Risk, and Action logic, but tightens the default presentation so the lower pane looks closer to the cleaner original version.
------------------------
What Changed
------------------------
* Reduced default label density.
The default label cooldown was increased and the maximum visible object count was lowered.
* Disabled compression labels by default.
Squeeze Watch and Deep Coil labels are still available in settings, but the default view no longer repeats them across the pane.
* Disabled the momentum state band by default.
The panel still shows the action state, while the chart keeps a cleaner oscillator look.
* Tightened failed-release behavior.
Failed-release labels now require a more mature and meaningful release context instead of appearing too often after ordinary squeeze transitions.
* Shortened corridor and event text.
Release labels now use compact score text such as Bull Q72 or Bear Q68, and corridor text uses a shorter centered Q value.
------------------------
Visual Improvements
------------------------
* Reduced overlap between labels, histogram bars, and corridor text.
* Removed the overly busy repeated Failed Release appearance from the default view.
* Preserved a moderate number of meaningful labels so the chart does not look empty.
* Kept the clean AGPro panel and the original lower-pane squeeze momentum identity.
------------------------
Behavior Notes
------------------------
This is a visual and state-filter refinement.
The V2 decision layer remains intact, but the default chart presentation is now more restrained and premium.
Alerts remain available for READY state, squeeze start, bullish release, bearish release, failed release / invalidation, and action-state shift.
發行說明
Update Notes - Version 2.0- Rebuilt the presentation layer for a cleaner and more premium lower-pane workflow
- Added a refined state engine with clearer phase names such as Active Coil, Deep Coil, Bull Release, Bear Release, Expansion, Continuation, and Cooling
- Added Release Quality scoring to better separate strong post-squeeze expansion from weaker releases
- Added Compression Grade logic to classify the depth of squeeze conditions more clearly
- Upgraded the AG Pro panel with better workflow context, including State, Bias, Setup/Quality, Compression, Momentum, Energy, and Status
- Improved label logic to keep event markers more selective and visually balanced
- Updated bull and bear labels to use AGPro brand colors for stronger visual consistency
- Added more refined cooling signals to help identify when elevated momentum begins to lose thrust
- Improved adaptive momentum zone presentation for a cleaner and more editorial look
- Refined signal-line and marker styling to reduce visual noise while preserving context
- Improved overall readability and default visual balance for a stronger out-of-the-box experience
- Optimized the script structure for a cleaner and more professional final build
發行說明
🔧 UPDATE NOTES - v2.1This update focuses on readability, label consistency, and adding a transparent follow-through proof metric.
The core purpose of the script remains unchanged.
This release improves how the existing logic is presented, organized, and interpreted on the chart.
This script continues to function as an analytical and visualization tool.
It does not attempt to predict price direction or provide guaranteed outcomes.
------------------------
What Changed
------------------------
• Label size now follows the Label Size setting directly
All on-chart labels — Bull Release, Bear Release, Bull Cooling, and Bear Cooling —
now respect the chosen Label Size value with no hidden per-type downgrades.
Cooling labels previously rendered one step smaller than the setting; they now
match the rest of the on-chart text exactly.
• Added a confirmed-bar Follow-Through proof row
The panel now reports how often directional releases actually follow through.
A release counts as follow-through when momentum expands a further step beyond
its release reading; it fails when momentum fizzles back to the balance band
first. Rails are frozen at the release. Tests that do neither inside the window
time out and remain uncounted, so the rate reflects only resolved outcomes.
• High-contrast label ink
Every on-chart badge now uses a luminance-based ink rule, so text stays legible
on both the bright bullish, bearish, and neutral fills regardless of theme.
• Opaque release and cooling badges
Cooling labels are now fully opaque like release labels, removing the faded
look and improving first-glance readability against the histogram.
• Hardened ATR normalization
The momentum normalizer is now floored against the current true range and the
symbol's minimum tick, keeping the engine stable on illiquid or low-volatility
symbols.
------------------------
Visual Improvements
------------------------
• Improved chart readability by adjusting label contrast and opacity
• Reduced visual clutter to enhance first-glance interpretation
• Refined visual hierarchy so the new Follow-Through row stands out clearly
• Adjusted label rendering to keep text crisp above and below the histogram
------------------------
Interface & Usability
------------------------
• Optimized panel layout for clearer information flow
• Improved label readability for better chart interaction
• Adjusted default visual settings for a more balanced appearance
• Enhanced overall user experience without changing core logic
------------------------
Behavior Notes
------------------------
This update does not change the core squeeze or momentum logic of the script.
The Follow-Through metric is purely observational. It measures the historical
behavior of directional releases on confirmed bars and does not alter signals,
states, or scores.
Users should interpret outputs the same way as before, but with improved visual
structure and an added context metric.
------------------------
Limitations Reminder
------------------------
The script remains a rule-based analytical tool.
Market conditions such as volatility, liquidity, and timeframe differences may
affect how signals appear and how the Follow-Through rate develops.
Outputs should always be interpreted within broader market context.
------------------------
Risk Reminder
------------------------
This script is for educational and analytical purposes only.
It does not provide financial advice or guaranteed trading outcomes.
Users remain responsible for their own decisions.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
Public-free scripts + invite-only AGPro workflows for market analysis, liquidity context, risk planning and execution review.
Rules-based. No hype. No guesswork.
Library & access: agprolabs.com/
Telegram: t.me/agprolabs
Rules-based. No hype. No guesswork.
Library & access: agprolabs.com/
Telegram: t.me/agprolabs
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
Public-free scripts + invite-only AGPro workflows for market analysis, liquidity context, risk planning and execution review.
Rules-based. No hype. No guesswork.
Library & access: agprolabs.com/
Telegram: t.me/agprolabs
Rules-based. No hype. No guesswork.
Library & access: agprolabs.com/
Telegram: t.me/agprolabs
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。