NinjaTrader TTM Squeeze Divergence Indicator

NinjaTrader TTM Squeeze Divergence Indicator
NinjaTrader TTM Squeeze Divergence Indicator enhances the standard TTM Squeeze by adding divergence analysis. It defines squeeze conditions through Bollinger Bands and Keltner Channels, then compares momentum with price to reveal divergences. The tool detects three types (classic, hidden, exaggerated), marks squeeze states with red/green dots, and integrates momentum confirmation to help traders identify breakout conditions, momentum shifts, and trend continuation scenarios.

NinjaTrader TTM Squeeze Divergence Indicator

The NinjaTrader TTM Squeeze Divergence Indicator is based on the concept of the classic TTM Squeeze, which combines volatility and market pressure analysis. Unlike the standard version, however, this tool focuses on identifying divergences between price action and momentum, providing traders with a deeper view of market dynamics.

TTM Squeeze Divergence Indicator for NinjaTrader

The indicator’s methodology is built on two key analytical steps:

  • Defining market conditions with TTM Squeeze.
    A “squeeze” reflects a period of decreasing volatility, where the market is consolidating energy before a potential directional move. At this stage, the indicator identifies a volatility compression phase, highlighting a shift from low to high-intensity price action.
  • Comparing momentum with price.
    When price forms new highs or lows but momentum fails to confirm the move, a divergence occurs. This acts as an additional filter, helping traders evaluate whether the trend still has strength or is beginning to weaken.

 

The indicator identifies three types of divergence:

  • Classic divergence highlights trend exhaustion and potential momentum shifts.
  • Hidden divergence often appears in trending markets and is used to identify potential trend continuation scenarios.
  • Exaggerated divergence highlights local price extremes and identifies points of potential momentum exhaustion.

 

The primary purpose of the indicator is to help traders spot critical moments when price action diverges from momentum. Such discrepancies highlight potential areas where momentum may be shifting, assisting in the systematic evaluation of trend sustainability.

Compared to the standard TTM Squeeze Indicator, this version goes beyond identifying market squeezes and expansions — it incorporates divergence analysis. This makes the tool valuable not only for monitoring consolidation phases but also for evaluating the internal dynamics and sustainability of price movements.

In practice, the TTM Squeeze Divergence Indicator for NinjaTrader helps traders address a common challenge: recognizing potential momentum exhaustion and identifying inconsistent price-momentum relationships. By combining volatility analysis with divergence detection, it provides a comprehensive framework for the systematic observation of market structure.

 

How to interpret and use the TTM Squeeze Divergence Indicator?

The TTM Squeeze Divergence Indicator combines two powerful methods of technical analysis: volatility compression/expansion (the TTM Squeeze concept) and divergence detection between price and momentum. Understanding how these elements interact is essential for the consistent interpretation of market structural events.

 

The Squeeze concept

The foundation of the indicator is the TTM Squeeze setup, which measures volatility by comparing Bollinger Bands and Keltner Channels:

  • When the Bollinger Bands contract and move inside the Keltner Channels, it identifies a period of very low volatility. This condition is defined as a squeeze.
  • When the Bollinger Bands expand and move outside the Keltner Channels, the squeeze is said to be fired. This expansion marks rising volatility and is often associated with a move outside the prior consolidation range.

 

On the indicator panel, this state is visualized with small dots plotted on the zero line:

  • Red dots → There is a squeeze (Bollinger Bands inside the Keltner Channels) → low volatility, market is in consolidation.
  • Green dots → The squeeze has released (Bollinger Bands outside the Keltner Channels) → volatility expansion, breakout conditions are present.

 

Integrating Divergence Analysis

The added value of the TTM Squeeze Divergence Indicator lies in combining volatility compression events with divergence detection. These occurrences highlight phases when price action and momentum move in opposite directions, identifying points of inconsistent market momentum and potential exhaustion.

 

Trading conditions

NinjaTrader TTM Squeeze Divergence Strategy Signals

For a valid trade setup, three conditions should align:

  1. Identified divergence — classic, hidden, or exaggerated, depending on market context.
  2. Squeeze condition (green dots) — analysis is prioritized during the volatility expansion phase (when the squeeze has fired). This confirms the shift from a period of market compression to directional momentum.
  3. Momentum direction confirmation — for a BUY setup, the momentum histogram must be rising, and for a SELL setup, it must be declining.

 

When all three factors coincide, the indicator identifies a structured confluence that confirms alignment between volatility expansion, divergence detection, and momentum analysis. This multi-layered approach highlights periods of high-probability structural shifts.

Important:

The indicator identifies divergences based on fractal extremes. This means that a structural marker is plotted only after a local high or low has been confirmed according to fractal logic—when the extreme point is flanked by the required price action on both sides. The number of bars used to define these fractal formations is controlled by the Swing Strength parameter, allowing for precise adjustment of the detection criteria.

This approach helps filter market noise, but it also introduces a methodological lag in marker appearance. The divergence is not identified at the moment the price touches an extreme, but only once the fractal structure is fully validated. This characteristic is a core part of the analytical logic and should be considered when integrating the indicator into a broader market observation framework.

 

NinjaTrader TTM Squeeze Divergence Indicator input parameters

The indicator has the following parameters:

NinjaTrader TTM Squeeze Divergence Indicator Settings Parameters

Alerts – Configure various types of alerts.

Swing Strength – Defines the number of bars the indicator considers when identifying local highs and lows based on fractal logic. A higher value increases the strictness of the swing definition, as the extreme must be surrounded by more bars with lower highs (for a top) or higher lows (for a bottom). This parameter directly influences the sensitivity of divergence detection.

Max Signal Wait Bars – Defines the maximum bars the indicator waits after divergence detection for all confluence conditions to align (volatility status + momentum direction).

Base Period – Number of bars used to calculate Bollinger Bands and Keltner Channel.

Bollinger Bands Std. Deviation – Standard deviation multiplier applied to Bollinger Bands.

Keltner Channel Multiplier – Multiplier applied to Keltner Channel for squeeze detection.

Divergences Settings – Configuration for enabling/disabling specific divergence types (classic, hidden, exaggerated) and customizing their visual style (line color, type, and size).

Show Swing Points – Enables or disables the display of Swing Points on the chart.

Swing Label Font Size – Adjusts the font size for Swing Point labels.

 

Custom Programming

mt4 custom programming

We can customize this indicator to your needs — adding functions, modifying logic, or integrating it with other tools for your workflow.

We also convert indicators into Automated Trading Strategies with advanced functions (trailing stops, risk management, filters) tailored to your trading style strictly according to your specifications.

Request a free consultation to discuss the technical scope and timeline of your project.

 

We Value Your Feedback

We are committed to the ongoing development and refinement of our indicators. If you’ve spotted a bug, feel that something essential is missing, or have ideas that could make the indicator even better, just send us a message. Your feedback helps us improve and deliver tools that truly meet traders’ needs.

 

Exposed Analytical Plots for Strategy Builder Integration

The indicator provides a set of exposed analytical plot outputs designed for structured integration with third-party strategy builders and automation tools such as BloodHound and BlackBird (SharkIndicators), as well as other algorithmic trading environments.

Analytical Plot Name Output Values Description
  Momentum Value  
  SqueezeOn Value  
  SqueezeOff Value  
  Bearish > 0 Bearish directional detection condition.
  Bearish Hidden > 0 Bearish directional detection condition.
  Bearish Exaggerated > 0 Bearish directional detection condition.
  Bullish > 0 Bullish directional detection condition.
  Bullish Hidden > 0 Bullish directional detection condition.
  Bullish Exaggerated > 0 Bullish directional detection condition.

Plot output names and descriptions are technical identifiers intended solely for software integration purposes and do not constitute trading advice, signals, or recommendations.

See other indicators on a single subscription
NinjaTrader SMT Divergence Indicator
NinjaTrader Divergence Indicator
NinjaTrader TTM Squeeze Indicator