全職奶爸

ADX Indicator: Read the DMI Lines, Formula and TradingView Settings

ADX and DMI: trend strength, formula and settings

The ADX indicator measures trend strength, while the +DI and −DI lines describe directional dominance. A rising ADX can accompany a rally or a selloff. It does not mean that price is rising, and a falling ADX does not by itself identify a reversal.

The distinction matters when three lines share a small panel beneath your chart. One line rises, another crosses, and it is tempting to read the whole picture as a buy signal. Each line answers a different question. Read their labels, identify the completed bar you are evaluating, and separate that observation from your entry rule.

This guide uses the three-line Directional Movement indicator in TradingView, with DI Length 14 and ADX Smoothing 14 as a reproducible baseline. The numerical examples are hypothetical calculations. They show what the formula measures rather than the performance of a trading strategy.

What do ADX, +DI and −DI tell you?

ADX stands for Average Directional Index. It is derived from the positive and negative directional indicators, abbreviated +DI and −DI. TradingView combines the three in its built-in Directional Movement indicator, often called DMI. Another platform can offer an ADX-only display or additional lines, so the name alone does not establish which series you are looking at.

When +DI is above −DI, positive directional movement has the larger smoothed reading under the selected calculation. When −DI is above +DI, negative directional movement has the larger reading. These are comparisons of measured movement; they do not guarantee that the next candle will continue in the same direction.

The ADX line summarizes the strength of the imbalance between those directional readings after smoothing. It discards the sign of their difference. A strong downward move can therefore produce a high ADX just as a strong upward move can. The number is neither an index-point distance nor a percentage probability that a trade will succeed.

Read the price structure alongside the panel. A market can be making lower lows with −DI leading and ADX rising. That combination describes strengthening negative directional dominance in the indicator. Calling the rising ADX bullish would reverse the meaning of the information in front of you.

How to read ADX levels and a falling ADX line

Common reference levels are 20 and 25. A reading below 20 is often treated as weak directional trend strength; above 25 is often treated as stronger trend strength. The area between them is a transition zone rather than a separate market law. Readings above 40 or 50 describe a larger historical directional imbalance, not a promise of additional travel.

These thresholds are conventions to investigate for your market, timeframe and session. A setting that labels most of one instrument's opening session as strong can behave differently during its overnight session. A line crossing 25 does not demonstrate that buying or selling at that moment has a positive expectancy after costs.

Level and slope also answer different questions. ADX of 40 falling to 38 remains above a 25 threshold, while ADX of 15 rising to 18 remains below it. The first example has a higher level but a declining reading; the second has a lower level but an increasing reading. Write down whether your filter requires a level, a rising value, or both.

A declining line indicates that the newly incorporated directional imbalance is below its previous smoothed ADX value. Price can keep advancing while that happens. A reversal requires evidence from the price or your independently specified reversal rule; the declining line alone does not select a short entry.

ADX can also stay elevated during a sharp change in direction because earlier observations remain in the smoothed series. Waiting for every line to produce a tidy sequence can delay a trade substantially. That delay is part of the filter you must evaluate, rather than evidence that the chart should have supplied an earlier signal.

TradingView ADX settings: use the built-in DMI

Open Indicators, search for Directional Movement, and choose the built-in indicator. Open its settings from the indicator name beside the panel. The TradingView indicators guide explains how to organize indicators by the job each performs and separate built-ins from community scripts.

In Inputs, record DI Length 14 and ADX Smoothing 14. They control different stages. DI Length affects the directional movement calculation feeding the positive and negative readings. ADX Smoothing affects how the resulting directional imbalance is smoothed into ADX. Changing one number while leaving the other at fourteen is a different configuration from changing both.

TradingView DMI Inputs showing ADX Smoothing 14, DI Length 14 and Timeframe Chart
ADX Smoothing and DI Length are separate inputs. Open the settings image at full size.

Use Timeframe Chart to calculate on the chart's bars. A length of fourteen on a five-minute chart refers to five-minute observations, not fourteen days. Wilder-style smoothing also carries a decaying contribution from older observations; it is not simply an average that discards everything older than the latest fourteen bars.

If you select a higher calculation timeframe, review Wait for timeframe closes. The documented settings show this confirmation option. An hourly value that is still developing is different from a value confirmed after the hour closes. A lower-timeframe test should use only the higher-timeframe information actually available at the decision time.

In Style, keep all three line labels readable and give each line a distinct appearance. In the settings image, ADX is pink, +DI blue and −DI orange. Colors are editable, so “the green line crossed the red line” is not a portable rule. Record the indicator names and values instead.

ADX formula: calculate directional movement first

For a Wilder-style calculation, start with two adjacent bars. Define UpMove as current high minus previous high. Define DownMove as previous low minus current low. Compare those two changes before deciding which directional movement survives.

+DM = UpMove when UpMove > DownMove and UpMove > 0; otherwise 0.
−DM = DownMove when DownMove > UpMove and DownMove > 0; otherwise 0.

An outside bar can extend both the previous high and the previous low. The calculation retains only the larger positive directional extension. If the positive extensions are equal, neither strict greater-than comparison passes and both directional movements are zero. An inside bar also supplies zero for both because neither side extends in the required direction.

Previous high / lowCurrent high / lowUpMove / DownMove+DM / −DM
105 / 100108 / 1013 / −13 / 0
105 / 100104 / 97−1 / 30 / 3
105 / 100108 / 963 / 40 / 4
105 / 100108 / 973 / 30 / 0
105 / 100104 / 101−1 / −10 / 0

Next calculate True Range: the largest of high minus low, the absolute distance from high to previous close, and the absolute distance from low to previous close. For current high 108, low 96 and previous close 102, those distances are 12, 6 and 6. True Range is 12.

Smooth +DM, −DM and True Range consistently over the chosen DI length. Then calculate +DI = 100 × smoothed +DM ÷ smoothed TR and −DI = 100 × smoothed −DM ÷ smoothed TR. Using consistently scaled smoothed sums or means produces the same ratios. Mixing a sum in the numerator with a mean in the denominator does not.

The StockCharts ADX calculation details Wilder's smoothing sequence. Keep its initialization distinct from later updates when reproducing a value. Short histories, different seeds, different feeds and alternative smoothing can all change the displayed result.

The same DI gap can produce a different DX

Once the two directional readings are available, calculate the Directional Index, or DX. For a positive sum of the two readings:

DX = 100 × |+DI − −DI| ÷ (+DI + −DI).

The absolute numerator removes direction, and the denominator scales the difference. Consider two independent hypothetical snapshots. With +DI 40 and −DI 20, the absolute gap is 20 and the sum is 60. DX is approximately 33.33. With +DI 25 and −DI 5, the gap is still 20 but the sum is 30. DX is approximately 66.67.

Identical DI gaps can produce different DXIndependent hypothetical snapshots: DI40and20 havegap20,sum60,DX33.33; DI25and5 havegap20,sum30,DX66.67. These are arithmetic snapshots, not a consecutive market path.Identical DI gaps can produce different DXHYPOTHETICAL · DX = 100 × absolute gap ÷ DI sum+DI 40 · −DI 20 → gap 20 · sum 60DX = 100 × 20 ÷ 60 = 33.33+DI 25 · −DI 5 → gap 20 · sum 30DX = 100 × 20 ÷ 30 = 66.67The gap is identical; the denominator changes the ratio.

Looking only at the distance between the plotted DI lines misses half the ratio. The identical gap produces a different DX because it represents a different fraction of the combined directional readings. These snapshots explain the arithmetic; they are not presented as consecutive bars from a market chart.

Swapping +DI and −DI leaves DX unchanged. Readings of 20 and 40 produce the same DX as 40 and 20, even though the leading direction is reversed. This symmetry is why ADX cannot identify bullish or bearish direction on its own.

If both directional readings are zero, their sum is zero and the displayed ratio is mathematically undefined. Charting implementations must handle that situation and the initial warmup. When matching two platforms, check those conventions instead of treating a temporary blank or carried value as a new market signal.

Why ADX can rise while the DI lines move closer

ADX smooths the DX series. Under a fourteen-period Wilder-style update, new ADX = (previous ADX × 13 + current DX) ÷ 14. The initial value uses an average of the first complete set of eligible DX observations; later values use the recurrence.

With previous ADX 20 and current DX 60, the next value is (20 × 13 + 60) ÷ 14, or approximately 22.86. With previous ADX 50 and current DX 30, the next value is approximately 48.57. The current DX is not the same number as the smoothed ADX.

ADX compares current DX with its prior valueHypothetical Wilder14updates: previousADX20andcurrentDX60 produce22.86;rising. PreviousADX50andcurrentDX30 produce48.57;falling. Direction is a separate DI comparison.ADX compares current DX with its prior valueHYPOTHETICAL · New ADX = (13 × previous ADX + DX) ÷ 14Previous ADX 20 · Current DX 60New ADX 22.86 → rises because 60 > 20Previous ADX 50 · Current DX 30New ADX 48.57 → falls because 30 < 50ADX slope does not choose a bullish or bearish direction.

Subtracting previous ADX from the update gives change in ADX = (current DX − previous ADX) ÷ 14. ADX rises when current DX is above previous ADX, falls when it is below, and stays unchanged when they are equal. This comparison explains the slope more precisely than saying that the line rises whenever the DI gap widens.

Even the absolute gap can narrow while the ratio increases. A separate hypothetical snapshot with DI readings 45 and 15 has a gap of 30 and DX 50. Readings of 25 and 5 have a smaller gap of 20 but DX approximately 66.67. The denominator changed too. An additional smoothing step then compares that new DX with the previous ADX.

This is also why the height of ADX should not be read as the current speed of price in points per minute. It is a smoothed, normalized directional calculation. Two markets with very different point movements can display similar ADX readings without offering equivalent risk or trading opportunities.

A DI crossover needs an entry and an invalidation rule

A positive DI crossover occurs when +DI moves above −DI after being at or below it on the previous comparison. Merely remaining above is a directional state, not another fresh crossover on every candle. A negative crossover mirrors that relationship.

A test could require a completed positive crossover and ADX above 25. That describes a candidate signal condition, but it still leaves the entry order, protective stop, exit and position eligibility unspecified. If the signal depends on the completed close, its final readings were unavailable earlier inside that same candle.

Repeated crosses can appear in a sideways market. Adding an ADX threshold may remove some signals while also delaying or excluding profitable ones. Compare both outcomes. A filter that makes a few selected screenshots look cleaner has not yet demonstrated that it improves a complete sequence of trades.

Choose the failure condition before entry. A structural stop below the signal low, a fixed distance and a later opposing close are different rules. A close-based exit can wait while an intrabar protective stop acts earlier. The number 25 supplies none of those execution details.

Using ADX as a day-trading filter

Start with an entry definition that can be checked without ADX. For example, a completed close beyond a previous price range is a different condition from directional strength. The Donchian Channels guide explains why a close-based breakout compares against a prior completed boundary rather than the inclusive channel that updates with the current high.

Then define the filter separately: the ADX length pair, observation timeframe, minimum level and whether its slope must be positive. A hypothetical experiment might compare the same breakout rule with no ADX filter and with ADX above 25 at the completed signal bar. Keep the stop, execution, session and exit unchanged so the comparison actually isolates the filter.

Count rejected breakouts, including those that would have won. A filter can increase the percentage of winning trades while removing enough large winners to reduce net profit. Evaluate net expectancy, drawdown, trade count and losing streaks together rather than selecting the most attractive percentage.

On a one-minute chart, fourteen bars describe a different observation sequence from fourteen bars on a five-minute chart. The opening minutes, overnight trading and a scheduled announcement can also produce very different conditions. There is no universally established best ADX setting for one-minute or five-minute trading.

Record the symbol, feed, session and whether the calculation uses standard candles. If you change chart type or data aggregation, you change the inputs. A discrepancy between two saved observations is easier to diagnose when those details accompany the three indicator values and the exact timestamp.

ADX, ATR and RSI answer different questions

ADX describes normalized directional strength. ATR describes recent true range in the instrument's price units. A large volatile bar can extend both sides, and alternating movements can keep ranges large without maintaining the same directional dominance. High volatility and a strong directional trend are related possibilities, not interchangeable definitions.

The ATR indicator guide works through gap-aware True Range, tick rounding and converting a proposed stop distance into money risk. Although True Range participates in the DMI calculation, an ADX value of 30 does not mean a thirty-point stop is appropriate.

RSI summarizes the balance of smoothed gains and losses in closing prices. Its familiar overbought and oversold references answer a different question from ADX's strength scale. A high RSI can persist during a rising trend while ADX is also high. The RSI indicator guide explains that calculation and the limitations of treating an extreme as a reversal entry.

Combining indicators is useful only when each supplies a distinct, testable condition. Requiring several transformations of the same price history to agree does not make them independent evidence. Add a condition because a defined comparison supports its role, rather than because another colored line appears to confirm the trade.

Test the settings before changing the trade risk

Use 14/14 as a declared starting configuration, then investigate a small set of alternatives one input at a time. Comparing DI Length 7 and ADX Smoothing 14 with 14/14 isolates a different change from replacing both lengths with 7. Shorter smoothing reacts faster; that response also makes brief changes more visible.

Keep parameter selection separate from evaluation on new observations. Include commissions, spread, adverse fills and the times when your rules permit trading. Record how many opportunities remain after filtering. A result based on a handful of retained trades is much less informative than a complete comparison with an adequate sample and known limitations.

Choose the invalidation price and calculate the entry-to-stop distance before selecting quantity. The position sizing calculator guide converts distance, value per unit and assumed costs into a quantity within a chosen risk budget. A minimum-size trade that exceeds the budget can produce a valid decision to skip.

For a prop firm evaluation, also compare the planned exposure with the applicable loss rules and remaining allowance. A high ADX does not expand that allowance or make a stop fill guaranteed. Multiple failed attempts can consume a session's room even when each setup satisfies the indicator filter.

A useful record includes the completed signal bar's ADX, +DI, −DI, both lengths, timeframe, confirmation setting, prior price reference, planned entry, actual fill, stop, quantity and net result. Keep the values for rejected signals too. That record lets you distinguish a calculation mismatch, an entry that never qualified and a qualifying trade that simply lost.

Compare HDP discounts

Lucid 30% · Tradeify 30% · TPT 50%.

See current offers ↗

Eligible partner plans only.

ADX and DMI FAQ

What does the ADX indicator tell you?

ADX measures smoothed directional trend strength. It does not identify whether the leading direction is upward or downward. Read +DI, −DI and the price structure separately.

What are the three lines in an ADX indicator?

In TradingView's built-in Directional Movement indicator they are ADX, +DI and −DI. Other platforms can offer an ADX-only display or extra lines, so check the indicator labels.

Does rising ADX mean the price is rising?

No. ADX discards the sign of the difference between the directional readings. It can rise during a strong selloff with −DI above +DI, or during a rally with +DI leading.

Does falling ADX signal a reversal?

A falling ADX means current DX is below the previous smoothed ADX under the stated update. Price can continue in its existing direction. A reversal requires a separately defined price or trading condition.

Is ADX above 25 a buy signal?

No. Twenty-five is a common strength-filter threshold, not a directional entry. A complete rule also specifies direction, trigger timing, entry, invalidation, exit and risk.

What are the default TradingView DMI settings?

The documented Inputs show ADX Smoothing 14 and DI Length 14. Timeframe Chart uses the chart's observations. Record both lengths and any higher-timeframe confirmation setting.

How do I add ADX and DI lines in TradingView?

Open Indicators, search for Directional Movement, and select the built-in indicator. Open its settings, then use Inputs for the lengths and Style to check the visibility and labels of all three lines.

What is the ADX formula?

Calculate eligible positive and negative directional movement, smooth them and True Range, and form +DI and −DI. DX is 100 times their absolute difference divided by their positive sum. ADX smooths the resulting DX values.

Why can the same DI gap produce different strength readings?

DX divides the absolute gap by the sum of the DI readings. A gap of 20 gives DX 33.33 with readings 40 and 20, but 66.67 with readings 25 and 5. ADX then adds smoothing.

Why can ADX rise when the DI lines get closer?

The absolute gap alone does not determine the normalized DX ratio. ADX rises when current DX exceeds previous ADX under Wilder's update, even if the visible gap has narrowed.

What are the best ADX settings for day trading?

There is no universal optimum. Record a baseline such as 14/14 and test a small set of alternatives on the intended symbol, session and timeframe, with fixed entry and exit rules and realistic costs.

Is ADX better than RSI?

They measure different features. ADX describes directional strength; RSI describes the balance of smoothed closing gains and losses. Compare their contribution within a specific tested rule rather than ranking them universally.

Can ADX determine my stop-loss distance?

ADX is a normalized strength reading, not a price distance. Define the setup's invalidation or a tested volatility-based stop, then calculate money risk and quantity from that executable distance.

Do ADX values change before the candle closes?

Developing highs and lows can change directional movement and the indicator values. A higher calculation timeframe has its own confirmation timing. A completed-bar strategy must use information available at its specified decision time.