dudeowns

ADX and DI (Colored Candles Open-Source)

The "ADX and DI (Colored Candles Open-Source)" indicator is a technical analysis tool used in trading. It utilizes the Average Directional Index (ADX) and the Directional Movement Indicators (+DI and -DI) to assess the strength and direction of a price trend. The ADX is calculated based on a 14-period lookback and is displayed as a histogram.

The color of the ADX histogram varies depending on the ADX value and the relative positions of +DI and -DI. Green and purple colors represent bullish and bearish trends respectively, with variations in shades indicating trend strength. Yellow and red colors indicate potential trend exhaustion for bullish and bearish trends, respectively, when ADX is above 50. Gray color is used when ADX is below 10, indicating a neutral trend.

Additionally, the script plots +DI and -DI lines with a fill between them to visually represent their crossover. Horizontal dotted lines are drawn at key ADX levels (0, 10, 25, 50) for reference. The candles on the chart are also colored to match the ADX histogram, providing a clear visual representation of the market trend.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?