OPEN-SOURCE SCRIPT

Pivot Squeeze Indicator

344
The Pivot Squeeze Indicator is an oscillator that identifies when markets are "squeezed" between recent pivot highs and lows, then signals when they're ready to make their next big move.

How it Works
The indicator calculates the percentage distance between the current price and the most recent pivot high vs. pivot low. When this distance gets compressed (small), the market is "squeezed" and building energy. When it expands rapidly, you get your breakout signal.
The indicator adapts to current market volatility using four different modes:
- ATR-Based
- Bollinger Bands
- Keltner Channels
- Fixed %

What to Look For
🟠 Orange Background = Squeeze Zone

Market is compressed between recent pivots
Low volatility, building pressure

🟢 Green Breakout = Bullish Signal

Price breaking out above recent highs
Momentum shifting upward
Time to look for long opportunities

🔴 Red Breakout = Bearish Signal

Price breaking down below recent lows
Momentum shifting downward
Time to look for short opportunities

Using Histogram Colors:

Green bars = Bullish territory (closer to recent highs)
Red bars = Bearish territory (closer to recent lows)
Orange bars = Squeeze conditions (compressed between pivots)

Using MA Line:
When Histogram bars cross below or above MA Line in opposite direction, it might be good time to exit.

Default Settings: ATR-based thresholds with 14-period lookback - works great out of the box, but feel free to experiment with the different threshold modes to find what works best for your trading style! Recommended to use with other indicators to confirm signals

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.