OPEN-SOURCE SCRIPT

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

Par 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

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité