ADX & DI Notify for TradingView
Fast DI+, DI- and ADX lines with lead shading, extreme-reading bars and seven alert conditions.
It shows which directional line leads as a background tint, marks extreme readings with solid bars and offers seven alert conditions, so TradingView can tell you when the state changes.

ADX & DI Notify is a TradingView indicator that opens in its own pane under the price chart. It draws DI+ and DI- using Wilder's directional movement method with a default length of 3, and an ADX line that is a 3-bar simple average of DX rather than Wilder's smoothing. With these short lengths the ADX reacts within a few bars and often reaches 80 to 100.
Above the ADX threshold (default 25, a dashed line) the ADX is yellow, DI+ green and DI- red; at or below it all three lines are grey. The background is tinted light green when DI+ is above DI- and light red when DI- is above DI+. When DI+ is above the extreme level (default 60, a dotted line) the bar is painted solid blue, and when DI- is above it, solid orange. A table in the top right of the pane shows the latest ADX, DI+ and DI- values, the ADX against the threshold and which line leads.
Seven alert conditions cover these changes of state, and by default they wait for the bar to close. The lines, colours and alerts describe price movement that has already happened. They are not trade recommendations and not financial advice.
What is in the download
- ADX-DI-Notify.pine: the full Pine Script v6 source code, to paste into the Pine Editor in your own TradingView account. Nothing is published on TradingView
- Buyer guide (PDF): installing it, each line, tint and table row, every input with its default, alert set-up and how to update to a new version
- Seven alert conditions: DI Alert (either DI above extreme level), DI+ above extreme level, DI- above extreme level, DI+ crossed above DI-, DI- crossed above DI+, ADX crossed above threshold, ADX crossed below threshold
What it does
Fast DI and ADX lines
DI length 3 and ADX smoothing 3 by default, both adjustable. The ADX is a simple average of DX, the gap between the DI lines as a percentage of their total.
Colour only above the threshold
The lines show their colours only while the ADX is above the threshold (default 25), so weaker periods fade to grey.
Lead tint and extreme bars
A light green or light red tint shows which DI line is higher. Solid blue (DI+) or orange (DI-) bars are drawn over the tint when a DI line is above the extreme level (default 60).
Seven alert conditions
The three extreme alerts fire on the first bar a line goes above the level, not on every bar it stays there. DI+ crossing above DI-, DI- crossing above DI+, and the ADX crossing above or below the threshold have their own conditions.
Status table
The latest ADX, DI+ and DI- values; 'Above threshold' or 'At or below threshold'; and 'DI+ above DI-', 'DI- above DI+' or 'DI lines equal'.
When you would use it
Notified instead of watching
On a paid TradingView plan, you create the 'DI Alert (either DI above extreme level)' alert on a 15-minute chart set to Once Per Bar Close, and look at the chart yourself when TradingView tells you a DI line has moved above 60.
Reading a session at a glance
You scroll back through the day. Grey lines show when the ADX was at or below 25, the tint shows which direction led, and the solid bars show the extreme readings.
Slowing it down
The default length of 3 is faster than you want on your timeframe. You raise the DI length and ADX smoothing in the settings for smoother lines and fewer extreme readings.
Who it is for
- ADX and DI users. People who already read DI+, DI- and the ADX and want the state shown as colour and sent as an alert.
- Chart users who decide for themselves. People who want to be told when a reading changes, then judge the chart themselves.
Probably not for you if
- Anyone looking for a direction forecast: the ADX measures how one-sided recent movement has been, not which way price will go next
- Anyone wanting entry prices, stops, targets or a tested strategy: it gives none, and no results are claimed
- People who do not use TradingView: the MetaTrader 5 Indicator Pack includes a MetaTrader 5 version
What you need
- Your own TradingView account. You download the .pine file from Gumroad, paste it into your Pine Editor, save it and add it to a chart; the guide gives each step
- Any TradingView plan, including the free Basic plan within its limits (2 indicators per chart, up to 5,000 bars of history). Alerts need a paid plan (Essential or higher); check tradingview.com/pricing for current limits
- Works on any symbol and timeframe, using only the chart's own symbol and timeframe
- Licensed for one buyer's personal use on their own TradingView account(s). Do not share, resell or publish the code, including on TradingView
Questions
How do the alerts work?
The indicator provides seven alert conditions; you create each alert yourself. Right-click the indicator and choose Add alert, pick ADX & DI Notify (or the name you saved it under) and a condition, and set it to Once Per Bar Close. Each alert watches one symbol, one timeframe and one condition. Alerts on a custom indicator need a paid TradingView plan (Essential or higher), and each counts towards your plan's limit.
Why does the ADX reach 80 to 100 so often?
The default lengths are 3 bars, so the lines move quickly. A standard 14-bar ADX rarely goes that high. Raise the lengths in the settings for a slower reading.
Is the shading a buy or sell signal?
No. The tint shows which DI line is higher on that bar, and a solid bar shows a DI line above the extreme level. Signals are not recommendations.
Can a reading appear and then disappear?
On the bar that is still forming, the lines, colours, background and table change with each price change; closed bars do not change. With 'Signals on bar close only' on (the default), the alert conditions wait for the bar to close.
How do I get it onto my chart?
After you buy, you download the .pine file from Gumroad. In your own TradingView account you open the Pine Editor, create a new indicator, paste the code, save it and click Add to chart; the guide gives each step. Nothing is published on TradingView, and it works on the free Basic plan within that plan's limits.
Also in Trading
RSI Volume Strength for TradingView
Price RSI and a volume-flow RSI in one 0-100 pane, with an agreement ribbon and a volume heat strip.
Gold EMA Crossover for TradingView
Three moving averages (21, 50, 200) with a B or S marker when their stacked order changes.
All-in-One Signal for TradingView
Markers where five intraday conditions agree, with an opening range, previous-day levels and a status table.
Last reviewed: