OPEN-SOURCE SCRIPT
ATR Trend Color

📌 ATR Trend Color — Visually clean trend-following tool based on adaptive ATR trailing stop
► Description
ATR Trend Color is a simple yet powerful indicator designed to visually identify and follow the market trend using an adaptive ATR-based trailing stop. Its main advantage lies in clarity — it uses just a single line that dynamically changes color based on trend direction:
✅ Blue line indicates price is above the trailing stop (bullish trend).
🔻 Black line indicates price is below the trailing stop (bearish trend).
This clean display allows for instant trend recognition and potential exit or reversal zones.
► How it works
The indicator uses the Average True Range (ATR) to calculate a dynamic trailing stop level. ATR measures volatility and adjusts the trailing line to match current market conditions:
When the price rises, the line moves up and acts as dynamic support.
When the price drops, the line moves down and acts as resistance.
This behavior makes it ideal for trend following and volatility-adjusted stop-loss placement.
► Key Features:
✅ Clean chart with just one ATR trailing line
✅ Dynamic color changes in real-time
✅ Great for trend confirmation and management
✅ Customizable ATR period and multiplier
✅ Step line with diamonds for high visual clarity
► How to use
Add the indicator to your chart.
Adjust ATR period and multiplier to your strategy (default: ATR 7 / multiplier 3.1).
Follow the line color:
Blue: Bullish trend — may signal to stay in long positions.
Black: Bearish trend — may suggest exit or short entries.
► Originality
Unlike typical ATR trailing stop indicators that display two lines or static colors, ATR Trend Color simplifies visualization by using a single smart line with real-time visual feedback on trend direction.
Additionally, it uses the “Step line with diamonds” display mode to enhance readability in fast or noisy markets.
► Description
ATR Trend Color is a simple yet powerful indicator designed to visually identify and follow the market trend using an adaptive ATR-based trailing stop. Its main advantage lies in clarity — it uses just a single line that dynamically changes color based on trend direction:
✅ Blue line indicates price is above the trailing stop (bullish trend).
🔻 Black line indicates price is below the trailing stop (bearish trend).
This clean display allows for instant trend recognition and potential exit or reversal zones.
► How it works
The indicator uses the Average True Range (ATR) to calculate a dynamic trailing stop level. ATR measures volatility and adjusts the trailing line to match current market conditions:
When the price rises, the line moves up and acts as dynamic support.
When the price drops, the line moves down and acts as resistance.
This behavior makes it ideal for trend following and volatility-adjusted stop-loss placement.
► Key Features:
✅ Clean chart with just one ATR trailing line
✅ Dynamic color changes in real-time
✅ Great for trend confirmation and management
✅ Customizable ATR period and multiplier
✅ Step line with diamonds for high visual clarity
► How to use
Add the indicator to your chart.
Adjust ATR period and multiplier to your strategy (default: ATR 7 / multiplier 3.1).
Follow the line color:
Blue: Bullish trend — may signal to stay in long positions.
Black: Bearish trend — may suggest exit or short entries.
► Originality
Unlike typical ATR trailing stop indicators that display two lines or static colors, ATR Trend Color simplifies visualization by using a single smart line with real-time visual feedback on trend direction.
Additionally, it uses the “Step line with diamonds” display mode to enhance readability in fast or noisy markets.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。