The Directional Indicators — known as DI+ and DI− — form the foundation of one of the most widely used trend-measurement tools in algorithmic trading. Understanding the Directional Indicators helps systematic traders separate trending markets from ranging ones before committing capital to a directional strategy.
What Are the Directional Indicators (DI+ and DI−)?
The Directional Indicators are a pair of trend-strength tools that measure upward and downward price pressure separately. DI+ (the Positive Directional Indicator) tracks bullish momentum. DI− (the Negative Directional Indicator) tracks bearish momentum. Together, they show which directional force dominates the market at any given time. Developed by J. Welles Wilder as part of his Directional Movement System, the DI lines work alongside the ADX (Average Directional Index) to give a complete picture of trend direction and strength.
How Are the Directional Indicators Calculated?
The calculation starts by measuring directional movement across each price bar. If today’s high exceeds yesterday’s high by more than today’s low falls below yesterday’s low, that qualifies as positive directional movement. The reverse produces negative directional movement.
Arrow Algo smooths these values over a chosen period — typically 14 bars — using a technique similar to the one behind ATR (Average True Range, a measure of market volatility). The smoothed positive directional movement divides by the smoothed ATR to produce DI+. The smoothed negative directional movement divides by the smoothed ATR to produce DI−. Both lines then plot on a 0–100 scale.
How Do You Read Directional Indicator Signals?
The relationship between DI+ and DI− tells traders which side of the market has control.
When DI+ sits above DI−, buyers dominate. Trend-following systems treat this as a bullish environment. When DI− sits above DI+, sellers dominate and the market leans bearish.
The crossover moment carries particular weight. A DI+ crossing above DI− signals a potential shift toward upward momentum. A DI− crossing above DI+ flags a shift toward downward pressure. Traders often combine these crossover signals with the ADX reading to filter out weak or sideways markets — the ADX measures the strength of a trend regardless of direction, with readings above 25 generally indicating a trend worth trading.
High separation between the two lines indicates strong directional conviction. When DI+ and DI− trade close together, the market lacks clear direction and trend-following strategies perform poorly.
What Are the Best Directional Indicator Trading Strategies?
Trend Entry on DI Crossover with ADX Confirmation
Wait for DI+ to cross above DI−. Check that the ADX reads above 20 to confirm a trend is forming. Enter long on the next bar. Exit when DI− crosses back above DI+ or when ADX begins to fall sharply. This filter prevents entering on weak or false crossovers during sideways markets.
Trend Direction Filter
Use the relative position of DI+ and DI− as a regime filter rather than a direct entry signal. Allow long trades only when DI+ sits above DI−. Allow short trades only when DI− sits above DI+. Apply this filter to any existing entry system — RSI, momentum, breakout — to keep your strategy aligned with the dominant trend direction.
DI Divergence for Trend Exhaustion
When price makes a higher high but DI+ makes a lower high, the upward trend is losing momentum. This divergence — where price and the indicator move in opposite directions — often precedes a reversal or consolidation. Systematic traders use this condition to tighten stops or reduce position size rather than adding to a position.
What Are Common Directional Indicator Mistakes to Avoid?
Trading crossovers in ranging markets. DI crossovers generate noise when the market moves sideways. Always check ADX before acting on a crossover signal. If ADX reads below 20, the crossover likely reflects chop rather than a genuine trend shift.
Ignoring the ADX companion. The DI lines tell you direction, but not strength. A DI+ crossover in a weak ADX environment carries far less weight than the same crossover when ADX trends above 25.
Using too short a period. On periods shorter than 10 bars, the DI lines become hypersensitive and produce excessive crossovers. The standard 14-period setting exists for a reason — it balances responsiveness with reliability.
Treating DI alone as a complete system. The Directional Indicators describe the market environment. They work best as a filter or confirmation layer rather than a standalone entry trigger.
How to Build Directional Indicator Strategies in Arrow Algo?
Arrow Algo includes DI+ and DI− as native indicator blocks. You drag them onto your strategy canvas and connect them to logic blocks without writing a single line of code.
Set your period in the DI block settings — 14 is the default starting point. Connect a comparison block to check whether DI+ sits above DI−. Feed that output into a condition block that enables or disables entry signals from other parts of your strategy.
For a crossover-based entry, use Arrow Algo’s crossover detection block to trigger when DI+ crosses above DI−. Chain an ADX filter block — also available as a native indicator — to confirm trend strength before the entry fires. Arrow Algo evaluates all conditions on each new bar and executes automatically when every condition is met.
You can backtest this setup across any supported exchange — Binance, Coinbase, HyperLiquid — using live historical data direct from the exchange. No need to source or clean datasets. The visual builder lets you iterate quickly: adjust the period, swap the filter, and re-run the backtest to compare results.
What Are the Key Takeaways?
- DI+ and DI− measure upward and downward directional pressure on a 0–100 scale.
- When DI+ sits above DI−, the trend favours buyers. When DI− leads, sellers are in control.
- Crossover signals are most reliable when the ADX confirms trend strength above 20–25.
- Use the DI lines as a trend direction filter to keep other entry signals aligned with the dominant move.
- Arrow Algo includes DI+, DI−, and ADX as drag-and-drop blocks — combine them visually without any code.
Disclaimer: The information provided in this article is for educational purposes only and does not constitute financial advice. Trading involves significant risk and you should only trade with capital you can afford to lose. Past performance is not indicative of future results. Always conduct your own research before making any trading decisions.
Ready to build your own automated trading strategies without writing a single line of code? Start for free at Arrow Algo and join thousands of traders who’ve made the switch to systematic trading.
