OPEN-SOURCE SCRIPT

Consistent ATR Trailing Stop (ATR, 1m based) [nn1]

由nxlnumba1提供
This indicator implements a Consistent ATR (Average True Range) Trailing Stop that maintains uniform behavior across various chart timeframes. It's designed to provide traders with a reliable tool for setting dynamic stop-loss levels that adapt to market volatility while remaining consistent regardless of the chosen chart interval.
Key Features:

1. Consistent ATR Calculation: The indicator calculates the ATR based on 1-minute data, regardless of the current chart timeframe. This ensures that the ATR value remains consistent across different intervals (e.g., 10s, 15s, 30s, 60s), providing a stable base for the trailing stop.

2. Dynamic Trailing Stop: The trailing stop adjusts based on the ATR, moving up in uptrends and down in downtrends to protect profits while allowing room for price fluctuations.

3. Trend Detection: The indicator determines the trend based on the price's relationship to the trailing stop, switching between long and short modes as the trend changes.

4. Visual Cues: The trailing stop line changes color to indicate the current trend (green for uptrends, red for downtrends) and briefly turns yellow during trend changes. Small circles below or above the price action further highlight the current trend direction.

5. Information Display: A label shows the current ATR value and trend direction, providing at-a-glance information to the trader.

6. Trend Change Highlights: The background briefly changes color when a trend change occurs, drawing attention to potential trading opportunities or exit points.

Usage:

- ATR Length: Set the number of periods for the ATR calculation. This is based on 1-minute data, so a value of 14 represents 14 minutes of data.
- ATR Multiplier: Adjust how far the trailing stop is placed from the price. Higher values create a wider stop, allowing for more price movement before triggering.

This indicator is particularly useful for traders who:
- Use multiple timeframes in their analysis and want consistent signals across charts.
- Seek a dynamic stop-loss method that adapts to market volatility.
- Want clear visual cues for trend direction and changes.

By providing a consistent ATR-based trailing stop across different timeframes, this indicator helps traders maintain a unified approach to their trading strategy, regardless of the chart interval they are viewing.
Average True Range (ATR)Volatility Stop

開源腳本

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

想在圖表上使用此腳本?

免責聲明