OPEN-SOURCE SCRIPT
Volatility Squeeze & Momentum

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.
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の精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。