INVITE-ONLY SCRIPT
Advanced DMI [NexusSignals]

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:

The indicator calculates and display:

Plots include:
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:
Table Settings:
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:
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!
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!
僅限邀請腳本
只有經作者批准的使用者才能訪問此腳本。您需要申請並獲得使用權限。該權限通常在付款後授予。如欲了解更多詳情,請依照以下作者的說明操作,或直接聯絡NexusSignals。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
Contact me to subscribe to the Indicator, payments are handled externally to simplify the process and ensure direct access.
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
僅限邀請腳本
只有經作者批准的使用者才能訪問此腳本。您需要申請並獲得使用權限。該權限通常在付款後授予。如欲了解更多詳情,請依照以下作者的說明操作,或直接聯絡NexusSignals。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
Contact me to subscribe to the Indicator, payments are handled externally to simplify the process and ensure direct access.
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。