Advanced DMI [NexusSignals]

The Advanced DMI [NexusSignals] is a enhanced version of the classic Directional Movement Index (DMI) and Average Directional Index (ADX) indicator, designed to provide traders with deeper insights into trend strength, direction, and momentum. It combines visual plots, a customizable data table, and multiple alert conditions to help identify bullish/bearish trends, consolidations, and potential reversals. This indicator is ideal for trend-following strategies, scalping, or swing trading across various timeframes and assets.
Key enhancements include:
- A trend strength metric that quantifies bullish/bearish dominance.
- A dynamic table displaying real-time and historical DMI/ADX values, with color-coded signals and buy/sell pressure percentages.
- Visual fills and arrows for quick trend interpretation.
- Built-in alerts for key crossovers, threshold breaches, and consolidation phases.
The indicator calculates and display:
- +DI (Plus Directional Indicator): Measures upward price movement strength.
- -DI (Minus Directional Indicator): Measures downward price movement strength.
- ADX: Gauges overall trend strength (higher values indicate stronger trends).
- Trend Strength: A normalized score computed as ((+DI - -DI) / (+DI + -DI)) * ADX, ranging from negative (bearish) to positive (bullish). This helps quantify trend bias.
- Buy/Sell %: Candle body analysis showing the percentage of buyer (close above low) vs. seller (high above close) control in the current bar.
Plots include:
- Strength Histogram: Color-coded columns (green for bullish, red for bearish) to visualize trend intensity.
- ADX Line: White line showing trend strength, with arrows indicating rising/falling.
- +DI and -DI Lines: Green (+DI) and red (-DI) lines with conditional fills above the 15 threshold for strong trends.
- Horizontal threshold lines at 15 (consolidation threshold) and 25 (strong trend threshold).
The table (optional) summarizes data for the current candle, previous candle, and two candles ago, including arrows for directional changes and color highlights for quick scans.
Inputs
General Settings:
- DMI Length (default: 14): Period for +DI/-DI calculation.
- ADX Smoothing (default: 14): Smoothing period for ADX.
- ADX Consolidation Threshold (default: 15): Below this, suggests sideways market.
- ADX Stronger Trend Threshold (default: 25): Above this, indicates a robust trend.
- Threshold for Strong Bullish/Bearish DMI Strength (defaults: 10 / -10): Levels for strength alerts.
Table Settings:
- Show Table? (default: true): Toggle the data table on/off.
- Table Text Color, Header Color, Text Size, Position: Customize appearance and placement (e.g., middle_right).
How It Works
Interpretation
Bullish Signals: +DI > -DI, rising +DI (↑ arrow), Strength > 0 (green histogram), Buy% > Sell%. Look for ADX > 25 for confirmed uptrends.
Bearish Signals: -DI > +DI, rising -DI (↑ arrow), Strength < 0 (red histogram), Sell% > Buy%. ADX rising above thresholds strengthens the downtrend.
Consolidation: Both +DI and -DI < 20, ADX ≤ 15 (blue fill possible). Use this to avoid choppy markets.
Crossovers: +DI crossing above -DI suggests bullish reversal; opposite for bearish.
Fills: Areas above 15 highlight dominant trends (green for bullish, maroon for bearish).
Combine with price action or other indicators like RSI for better accuracy. Works on any timeframe, but test on historical data for your strategy.
Alerts
The indicator includes 12 built-in alert conditions for automation:
- Strength crossing above/below 0 or bullish/bearish thresholds.
- +DI/-DI crossovers (bullish/bearish).
- ADX crossing above strong threshold.
- +DI/-DI crossing above 25 or below 15.
- Consolidation detection (low ADX with flat DI lines).
Set up alerts in TradingView by selecting the condition from the dropdown.
Usage Tips
Enable the table for quick multi-candle analysis without scrolling the chart.
Customize colors and positions to fit your workspace.
Backtest on your favorite assets (e.g., stocks, forex, crypto) to optimize thresholds.
For faster loading on large datasets, the script is optimized to update the table only on the last bar.
This indicator is provided by NexusSignals for educational and trading purposes. Always use risk management and verify signals. Feedback welcome!
Script sob convite
Somente usuários aprovados pelo autor podem acessar este script. Você precisará solicitar e obter permissão para usá-lo. Normalmente, essa permissão é concedida após o pagamento. Para obter mais detalhes, siga as instruções do autor abaixo ou entre em contato diretamente com NexusSignals.
O TradingView NÃO recomenda pagar ou usar um script ao não ser que você confie totalmente no seu autor e compreende como isso funciona. Você pode também encontrar alternativas gratuitas e de código aberto em nossa comunidade de scripts.
Instruções do autor
Aviso legal
Script sob convite
Somente usuários aprovados pelo autor podem acessar este script. Você precisará solicitar e obter permissão para usá-lo. Normalmente, essa permissão é concedida após o pagamento. Para obter mais detalhes, siga as instruções do autor abaixo ou entre em contato diretamente com NexusSignals.
O TradingView NÃO recomenda pagar ou usar um script ao não ser que você confie totalmente no seu autor e compreende como isso funciona. Você pode também encontrar alternativas gratuitas e de código aberto em nossa comunidade de scripts.