OPEN-SOURCE SCRIPT
ZENFlow ADX | Trend Strength & Directional Pressure

ZENFlow ADX
ZENFlow ADX is an open-source ADX / DI trend-strength indicator designed to help traders read directional pressure, trend development, and possible trend-ending conditions.
This script is based on the classic ADX and Directional Movement concept, using +DI, -DI, ADX smoothing, and threshold levels to classify market conditions.
The goal of this indicator is not to predict price direction, but to make trend strength and directional pressure easier to read.
Core Logic
The indicator calculates:
• +DI
Directional strength from upward price movement.
• -DI
Directional strength from downward price movement.
• ADX
A smoothed measure of trend strength based on the difference between +DI and -DI.
• Range / Trend Thresholds
User-defined levels are used to separate lower-strength range conditions from stronger trend conditions.
How It Works
The ADX line changes color based on directional pressure and whether trend strength is increasing or decreasing.
• White ADX
The market is below the range threshold. Trend strength is not clear.
• Dark Green ADX
Bullish directional pressure is dominant and ADX is rising.
• Light Green ADX
Bullish directional pressure remains dominant, but ADX is not rising.
• Dark Red ADX
Bearish directional pressure is dominant and ADX is rising.
• Light Red ADX
Bearish directional pressure remains dominant, but ADX is not rising.
The area between +DI and -DI is also filled to make the dominant side easier to see visually.
Signal Markers
The script includes visual markers for:
• Bullish Trend
A bullish directional condition begins.
• Bearish Trend
A bearish directional condition begins.
• Strong Bullish Trend
Bullish directional pressure is dominant and above the trend threshold.
• Strong Bearish Trend
Bearish directional pressure is dominant and above the trend threshold.
• End Trend
A possible trend-ending condition appears when DI lines cross or ADX falls back into the range zone.
How to Use
Use the ADX line to check whether the market has enough trend strength.
Use +DI and -DI to identify which side has stronger directional pressure.
Use the color of the ADX line to see whether trend strength is increasing or fading.
Use signal markers as context alerts, not as automatic entry or exit instructions.
Combine this indicator with price structure, support/resistance, volatility, and risk management.
Suggested Interpretation
A stronger bullish trend condition appears when:
• ADX is above the trend threshold
• +DI is above -DI
• +DI is also above the trend level
• ADX is rising
A stronger bearish trend condition appears when:
• ADX is above the trend threshold
• -DI is above +DI
• -DI is also above the trend level
• ADX is rising
A lower-quality or range condition may appear when:
• ADX is below the range threshold
• +DI and -DI cross frequently
• ADX is flat or falling
• Directional pressure is unclear
Inputs
• ADX Smoothing
Controls the smoothing length of the ADX line.
• DI Length
Controls the calculation length for +DI and -DI.
• Level Range
Defines the ADX level used to identify lower-strength range conditions.
• Level Trend
Defines the DI level used to classify stronger directional pressure.
Alerts
The script includes alert conditions for:
• Any Alert
• Buy Weak Alert
• Sell Weak Alert
• Buy Strong Alert
• Sell Strong Alert
• Buy Close Alert
• Sell Close Alert
These alerts are intended to notify users when a condition appears. They should not be treated as standalone trading signals.
Limitations
This indicator does not predict future price movement.
It does not guarantee profitable trades.
It does not replace risk management.
It can produce false signals in choppy, low-volume, or highly volatile markets.
ADX and DI are lagging indicators and should be interpreted with market context.
This script is intended for educational and analytical use only.
It is not financial advice.
ZENFlow ADX is an open-source ADX / DI trend-strength indicator designed to help traders read directional pressure, trend development, and possible trend-ending conditions.
This script is based on the classic ADX and Directional Movement concept, using +DI, -DI, ADX smoothing, and threshold levels to classify market conditions.
The goal of this indicator is not to predict price direction, but to make trend strength and directional pressure easier to read.
Core Logic
The indicator calculates:
• +DI
Directional strength from upward price movement.
• -DI
Directional strength from downward price movement.
• ADX
A smoothed measure of trend strength based on the difference between +DI and -DI.
• Range / Trend Thresholds
User-defined levels are used to separate lower-strength range conditions from stronger trend conditions.
How It Works
The ADX line changes color based on directional pressure and whether trend strength is increasing or decreasing.
• White ADX
The market is below the range threshold. Trend strength is not clear.
• Dark Green ADX
Bullish directional pressure is dominant and ADX is rising.
• Light Green ADX
Bullish directional pressure remains dominant, but ADX is not rising.
• Dark Red ADX
Bearish directional pressure is dominant and ADX is rising.
• Light Red ADX
Bearish directional pressure remains dominant, but ADX is not rising.
The area between +DI and -DI is also filled to make the dominant side easier to see visually.
Signal Markers
The script includes visual markers for:
• Bullish Trend
A bullish directional condition begins.
• Bearish Trend
A bearish directional condition begins.
• Strong Bullish Trend
Bullish directional pressure is dominant and above the trend threshold.
• Strong Bearish Trend
Bearish directional pressure is dominant and above the trend threshold.
• End Trend
A possible trend-ending condition appears when DI lines cross or ADX falls back into the range zone.
How to Use
Use the ADX line to check whether the market has enough trend strength.
Use +DI and -DI to identify which side has stronger directional pressure.
Use the color of the ADX line to see whether trend strength is increasing or fading.
Use signal markers as context alerts, not as automatic entry or exit instructions.
Combine this indicator with price structure, support/resistance, volatility, and risk management.
Suggested Interpretation
A stronger bullish trend condition appears when:
• ADX is above the trend threshold
• +DI is above -DI
• +DI is also above the trend level
• ADX is rising
A stronger bearish trend condition appears when:
• ADX is above the trend threshold
• -DI is above +DI
• -DI is also above the trend level
• ADX is rising
A lower-quality or range condition may appear when:
• ADX is below the range threshold
• +DI and -DI cross frequently
• ADX is flat or falling
• Directional pressure is unclear
Inputs
• ADX Smoothing
Controls the smoothing length of the ADX line.
• DI Length
Controls the calculation length for +DI and -DI.
• Level Range
Defines the ADX level used to identify lower-strength range conditions.
• Level Trend
Defines the DI level used to classify stronger directional pressure.
Alerts
The script includes alert conditions for:
• Any Alert
• Buy Weak Alert
• Sell Weak Alert
• Buy Strong Alert
• Sell Strong Alert
• Buy Close Alert
• Sell Close Alert
These alerts are intended to notify users when a condition appears. They should not be treated as standalone trading signals.
Limitations
This indicator does not predict future price movement.
It does not guarantee profitable trades.
It does not replace risk management.
It can produce false signals in choppy, low-volume, or highly volatile markets.
ADX and DI are lagging indicators and should be interpreted with market context.
This script is intended for educational and analytical use only.
It is not financial advice.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
ZenflowTrader | Read the market...Trade the flow.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
ZenflowTrader | Read the market...Trade the flow.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.