OPEN-SOURCE SCRIPT

Volatility Squeeze & Momentum

380
This indicator flags low-volatility "squeeze" phases and pairs them with a momentum histogram, so that volatility expansions can be read together with direction. The squeeze concept was popularized by John Carter (TTM Squeeze); this script is an original open-source implementation of that public idea.

How it works

A squeeze is on when both Bollinger Bands (default 20, 2.0) sit inside the Keltner Channels (default 20, 1.5 x average true range) — a sign that recent volatility is unusually compressed. The zero line shows the state: orange dots while the squeeze is on, gray otherwise. Momentum is a linear-regression estimate of price relative to a midline (average of the Donchian midpoint and the SMA), shown as a four-color histogram: rising/falling shades above and below zero.

Three alert conditions are included: squeeze release, release with positive momentum, and release with negative momentum.

Notes and limitations

A squeeze marks compression, not direction — releases can resolve either way, and momentum at the moment of release is context, not a guarantee. All parameters are configurable; defaults follow common usage.

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.