NinjaTrader SMT Divergence Indicator

smt divergence indicator for ninjatrader
NinjaTrader SMT Divergence Indicator detects divergences between a primary and a correlated asset using the Smart Money Technique. Supports both standard and inverted SMT signals and includes adjustable parameters for divergence strength, bar distance, and swing sensitivity.

NinjaTrader SMT Divergence Indicator

The NinjaTrader SMT Divergence Indicator is designed for analyzing divergences between the price movements of a primary asset and a correlated instrument using the Smart Money Technique (SMT).

smt divergence indicator for ninjatrader8 ict

The concept of SMT Divergence involves comparing the behavior of two interconnected assets with fundamental or technical correlation to identify situations where these assets, typically moving in sync, begin to exhibit opposing price movements. These divergences may serve as indicators of a potential change in market structure—if one asset forms a new high or low while the other does not, a divergence occurs, signaling a weakening of the current trend and a potential reversal. Such divergences often reflect the actions of major market participants, such as institutional investors or hedge funds, which may influence price movements preceding reversals or trend continuations, and serve as a significant signal for analyzing market dynamics.

 

How to trade using SMT Divergence Indicator?

The NinjaTrader SMT Divergence Indicator is designed to identify SMT divergences, which may signal potential trend reversals or continuations. It detects instances where the price movement of a primary asset diverges from that of a correlated instrument, highlighting potential trading opportunities.

The indicator comprises two main components: the primary chart, displaying the price movement of the main asset, and a secondary window, showing the price movement of the correlated instrument. The primary chart serves as the foundation for analyzing the main asset’s price behavior, while the secondary window facilitates comparison with the correlated instrument. This dual-chart setup simplifies the process of observing and comparing the behavior of both assets, making the analysis more structured and visually accessible.

The indicator automatically detects both standard SMT divergences and inverted SMT divergences, expanding its applicability to a broader range of market conditions.

standard inverted smt divergence ninjatrader indicator

In standard SMT scenarios, divergence occurs when one asset makes a new high or low that is not confirmed by the other.

Inverted SMT divergence describes the opposite scenario: the correlated asset updates an extreme (high or low), while the primary or leading asset fails to confirm it. By detecting both types of divergence, the indicator captures a wider range of intermarket dynamics and enables more comprehensive market structure analysis.

On the charts, classic SMT divergences are marked with a solid line, while inverted SMT divergences are indicated with a dashed line, providing clear visual differentiation.

To improve signal quality, the indicator includes customizable filters. These allow adjustment of the minimum bar distance between divergence points to avoid overly short divergences and the setting of a minimum price difference between the extreme points of a divergence. These filters help eliminate weaker signals, enabling traders to tailor the indicator to specific market conditions or trading preferences.

 

Important:

The indicator identifies SMT divergences based on fractal extremes. This means that a signal is generated only after a local high or low has been confirmed according to fractal logic—when the extreme point is flanked on both sides by at least two bars with lower highs (for a peak) or higher lows (for a trough). The number of bars used to define these fractal formations is controlled by the Swing Strength parameter, allowing traders to adjust the sensitivity of the divergence detection.

This approach helps filter out noise and reduce false signals, but it also introduces a natural delay in signal appearance. The divergence is not detected at the moment the price touches an extreme, but only once the fractal structure is fully formed. This characteristic should be taken into account when interpreting signals and integrating the indicator into a trading strategy.

 

NinjaTrader SMT Divergence Indicator input parameters

The indicator has the following parameters:

ninjatrader smt divergence indicator settings

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.

Correlated Instrument – Specifies the instrument to be used for comparison against the primary chart. SMT divergences are calculated by analyzing the relative price behavior between the main asset and this correlated symbol.

Allowed SMT Type – Determines which types of SMT divergence are displayed on the chart. The available options include standard SMT divergence, where the leading asset makes a new high or low and the correlated asset does not; inverted SMT divergence, where the secondary asset makes the move while the primary one does not; or both types simultaneously.

SMT Min Bar Distance – Sets the minimum number of bars that must exist between the two extreme points that form a divergence. This helps filter out signals that occur too close together in time and may not represent meaningful market shifts.

SMT Strength Calculation Type – Defines the method used to evaluate the required price difference between the two swing points forming the divergence. The strength can be measured either in ticks or in percent (%), allowing the trader to choose the preferred format for filtering divergences based on their magnitude.

SMT Min Strength – Sets the minimum value (in ticks or percent, depending on the selected calculation type) required to confirm a divergence.

 

Custom Programming

mt4 custom programming
We can upgrade the presented indicator to suit your needs – add new functions, change the algorithm for calculating signals, or combine it with your other indicator, turning it into a single powerful tool for your trading strategy.

We can also turn the indicator into an Automated Trading Strategy with an extended set of custom functions (stop loss, take profit, trailing stop, risk management parameters, trading time limit, and others).

Request a free consultation from our team of professional programmers and find out the cost and timing of your project development.

 

Exposed Signal Plots for Algorithmic Strategy Builders (BloodHound, SharkIndicators & More)

Signal Plot Name
Signal Plot Values Description
  Secondary Open Value  
  Secondary High Value  
  Secondary Low Value  
  Secondary Close Value  
  Short > 0 SELL Signal
  Long > 0 BUY Signal

 

Disclaimer 

Nordman Algorithms is not liable for any risk that you face using the software. Please, use the software on your own responsibility. The software is coded in accordance with a common known concept and Nordman Algorithms does not guarantee accuracy or trading performance of the software signals.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing one’s financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 – Hypothetical or Simulated performance results that have certain inherent limitations. Unlike the results shown in an actual performance record, these results do not represent actual trading. Also, because these trades have not actually been executed, these results may have under-or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated or hypothetical trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to these being shown.

NinjaTrader® is a registered trademark of NinjaTrader Group, LLC. No NinjaTrader company has any affiliation with the owner, developer, or provider of the products or services described herein, or any interest, ownership or otherwise, in any such product or service, or endorses, recommends or approves any such product or service.

See other indicators on a single subscription
NinjaTrader FootPrint OrderFlow Indicator
NinjaTrader Anchored VWAP Indicator
NinjaTrader Fair Value Gap (FVG) Indicator