OPEN-SOURCE SCRIPT
Mis à jour

Squeeze Momentum Oscillator

20
Title: Squeeze Momentum Oscillator

Description: This indicator is a panel-based oscillator designed to visualize the relationship between market volatility and momentum. Based on the classic TTM Squeeze concept, it helps traders identify periods of consolidation ("The Squeeze") and the subsequent release of energy ("The Breakout").

Originality & Enhancements: Standard squeeze oscillators only show when a squeeze fires (turning from red to green). This enhanced version adds a specific Breakout Validation layer. It changes the center-line dot color to Fuchsia or Blue only if the squeeze release is confirmed by the slope of the 20-period Moving Average, filtering out weak or false fires.

How It Works:

1. The Center Line (Volatility State): The dots along the zero line tell you the current volatility condition:

🔴 Red Dot: Squeeze ON. Bollinger Bands are inside Keltner Channels. Volatility is compressed. The market is charging up.

🟣 Fuchsia Dot: Bullish Breakout. The squeeze has fired upward, and the underlying trend (20 SMA slope) is positive.

🔵 Blue Dot: Bearish Breakout. The squeeze has fired downward, and the underlying trend (20 SMA slope) is negative.

🟢 Green Dot: Squeeze OFF. Normal volatility conditions.

2. The Histogram (Momentum): The bars indicate the strength and direction of the price movement using Linear Regression logic:

Cyan/Green: Bullish momentum. (Darker = weakening).

Red/Maroon: Bearish momentum. (Darker = weakening).

Visual Guide:

Setup: Wait for a series of Red Dots.

Trigger: Look for the first Fuchsia (Bullish) or Blue (Bearish) dot accompanied by an expanding Histogram in the same direction.

Settings:

Feature Toggle: You can turn the "Breakout Colors" (Fuchsia/Blue) on or off if you prefer the classic look.

Sensitivity: Fully customizable lengths and multipliers for Bollinger Bands and Keltner Channels.

Credits: Based on the foundational TTM Squeeze oscillator logic. Linear regression momentum calculation adapted from standard open-source methods. Breakout validation logic added for enhanced reliability.
Notes de version
Title: Squeeze Momentum Oscillator

Description: This indicator is a panel-based oscillator designed to visualize the relationship between market volatility and momentum. Based on the classic TTM Squeeze concept, it helps traders identify periods of consolidation ("The Squeeze") and the subsequent release of energy ("The Breakout").

Originality & Enhancements: Standard squeeze oscillators only show when a squeeze fires (turning from red to green). This enhanced version adds a specific Breakout Validation layer. It changes the center-line dot color to Fuchsia or Blue only if the squeeze release is confirmed by the slope of the 20-period Moving Average, filtering out weak or false fires.

How It Works:

1. The Center Line (Volatility State): The dots along the zero line tell you the current volatility condition:

🔴 Red Dot: Squeeze ON. Bollinger Bands are inside Keltner Channels. Volatility is compressed. The market is charging up.

🟣 Fuchsia Dot: Bullish Breakout. The squeeze has fired upward, and the underlying trend (20 SMA slope) is positive.

🔵 Blue Dot: Bearish Breakout. The squeeze has fired downward, and the underlying trend (20 SMA slope) is negative.

🟢 Green Dot: Squeeze OFF. Normal volatility conditions.

2. The Histogram (Momentum): The bars indicate the strength and direction of the price movement using Linear Regression logic:

Cyan/Green: Bullish momentum. (Darker = weakening).

Red/Maroon: Bearish momentum. (Darker = weakening).

Visual Guide:

Setup: Wait for a series of Red Dots.

Trigger: Look for the first Fuchsia (Bullish) or Blue (Bearish) dot accompanied by an expanding Histogram in the same direction.

Settings:

Feature Toggle: You can turn the "Breakout Colors" (Fuchsia/Blue) on or off if you prefer the classic look.

Sensitivity: Fully customizable lengths and multipliers for Bollinger Bands and Keltner Channels.

Credits: Based on the foundational TTM Squeeze oscillator logic. Linear regression momentum calculation adapted from standard open-source methods. Breakout validation logic added for enhanced reliability.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.