INVITE-ONLY SCRIPT

Advanced DMI [NexusSignals]

37
Overview
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.


istantanea

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.


istantanea

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!

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.