OPEN-SOURCE SCRIPT

ADX with Trend Coloring

The ADX indicator helps identify the strength of a trend, while the DI+ and DI- values indicate the direction. In this script, the ADX's color reflects the dominant trend: green for long (DI+ is stronger and above its high limit) and red for short (DI- is stronger and above its high limit). DI+ and DI- are categorized into three levels based on user-defined thresholds. These levels indicate weak, moderate, or strong trend activity, providing insights into potential trade setups by aligning the ADX strength with the directional indicators.

The code has been updated to include two user-defined limits for both DI+ and DI-, allowing for three distinct ranges (e.g., 0-15, 15-30, 30-100) with corresponding colors.

The script now adjusts the ADX color dynamically to reflect the trend, based on whether DI+ or DI- is stronger. It uses green for long trends and red for short trends.
Average Directional Index (ADX)

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明