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精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明