All indicators

ATR Trailing Stop Loss

Sep 17, 2022

Static chart image
Dynamic OverlaysSupport and ResistanceSignalsTrailing-StopVolatility

The ATR Trailing Stop Loss indicator provides a comprehensive volatility-based trend tracking system that identifies dynamic support and resistance levels to assist in risk management and trend reversal detection.

Usage

The Usage of this indicator focuses on identifying trend direction and establishing exit points based on market volatility. Traders typically utilize the ATR Trailing Stop line as a dynamic stop-loss level that adjusts as price moves in the favor of the trade.

  • Trend Identification: When the price is above the trailing stop line, the trend is considered bullish (indicated by a green line). When price is below the line, the trend is considered bearish (indicated by a red line).
  • Standard Triggers: Green triangles appearing below the bar indicate a bullish reversal, while red triangles above the bar indicate a bearish reversal. These occur specifically when the closing price crosses the stop level.
  • Gold Triggers: Yellow triangles represent "Golden" signals. These occur when a candle's wick pierces the trailing stop level (similar to a Hanging Man or Shooting Star pattern) but the price closes back on the original side of the trend. These act as high-confluence entry or continuation signals.
  • Multi-timeframe Analysis: The indicator includes a timeframe input, allowing users to overlay higher-timeframe volatility levels onto their current chart for broader trend context.

Details

The script is constructed using the Average True Range (ATR) to measure market volatility over a user-defined period. The core logic involves calculating the stop level by adding or subtracting a multiple of the ATR from the price.

The indicator employs a specific logic for maintaining the trailing stop:

  1. In a bullish trend, the stop level can only move upward, following the price to lock in profits.
  2. In a bearish trend, the stop level can only move downward.
  3. A trend flip occurs only when the closing price crosses the current stop level.

The "Gold" signals are refined by price action confluence. If the directional confluence setting is enabled, a Gold Buy signal is only valid on a green (bullish) candle, and a Gold Sell signal is only valid on a red (bearish) candle. This implementation ensures that the price action supports the volatility-based trigger.

Settings

  • ATR length: Defines the lookback period used to calculate the Average True Range. Higher values result in a smoother, slower-reacting stop.
  • ATR mult.: The multiplier applied to the ATR value. A higher multiplier places the stop further from the price, reducing the frequency of "stop-outs" during minor fluctuations.
  • Gold Entry Directional Confluence: A toggle that requires Gold Buy signals to occur on bullish bars and Gold Sell signals to occur on bearish bars to filter out low-probability setups.

FAQ

What makes the "Gold" signals different from regular signals? Regular signals trigger when the price closes on the opposite side of the trailing stop. Gold signals trigger when the price tests the trailing stop level mid-bar (via the wick) but fails to close beyond it, suggesting a rejection of that level.

How does the ATR Multiplier affect my trading? A lower multiplier (e.g., 2.0) makes the indicator very sensitive to price changes, which is useful for scalping but may lead to false signals. A higher multiplier (e.g., 3.5 or 4.0) is better suited for trend following and swing trading.

How do I get access to the ATR Trailing Stop Loss? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.