All indicators

DMIMTF

Dec 15, 2018

Static chart image
SignalsOscillators

The DMIMTF indicator provides a refined version of the Directional Movement Index (DMI) that automatically scales its length based on the current timeframe to provide non-repainting multi-timeframe insights. It identifies trend direction and momentum shifts by calculating the difference between positive and negative directional indicators, helping traders pinpoint potential trend reversals and continuations.

Usage

The Usage of the DMIMTF is centered around the crossover of its central axis. The indicator is displayed as a histogram that fluctuates above and below a zero line:

  • Bullish Signals: When the histogram crosses above 0 (and specifically clears the 0.3 upper boundary), it indicates bullish momentum. A "B" character is plotted at the bottom of the pane to signal a potential long entry.
  • Bearish Signals: When the histogram crosses below 0 (and specifically clears the -0.3 lower boundary), it indicates bearish momentum. An "S" character is plotted at the top of the pane to signal a potential short entry.
  • Trend Strength: The shaded area between -0.3 and 0.3 represents a neutral zone; movements outside this area often suggest a more established directional trend.

Details

Unlike standard DMI indicators that use a fixed lookback period, this script employs dynamic length logic. It calculates the len parameter based on the chart's timeframe (intraday vs. daily/weekly) and user-defined interval constraints. This ensures that the sensitivity of the Directional Index adapts to the volatility and noise levels typical of different timeframes. The indicator also utilizes a fillNaN function to ensure continuity in the visual output, preventing breaks in the histogram during data gaps.

Settings

  • Min Interval: Defines the minimum timeframe multiplier used in the dynamic length calculation.
  • Max Interval: Defines the maximum timeframe multiplier used to scale the indicator's sensitivity across higher timeframes.

FAQ

How do I interpret the "B" and "S" signals?

The "B" (Buy) signal appears when the Directional Index (DI) crosses above the zero line, while the "S" (Sell) signal appears when it crosses below. These are momentum-based signals indicating a shift in trend direction.

Does this indicator repaint?

No, the multi-timeframe logic used in this script is designed to be non-repainting, as it calculates its values based on the current bar's timeframe data rather than requesting future data from higher timeframes.

How can I access this tool?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.