OPEN-SOURCE SCRIPT

ATR Trend Color

277
📌 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.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.