Skip to content
All library documents

Adaptive Trailing Stops with ATR, Percent, Swing, and Parabolic SAR Methods

Article TradingView scripts

Summary

This indicator manages a user-defined long or short trade from a selected chart time and price. It offers four stop approaches: an offset based on ATR, a percentage of price, recent swing highs or lows, or Parabolic SAR. For ATR and percentage modes, the offset is calculated from the chosen settings; the swing method uses a lookback window, while SAR has adjustable start, step, and maximum parameters. The stop ratchets in the favorable direction and the script marks stop triggers on the chart.

The document describes implementation and alert behavior rather than reporting a tested trading edge. It includes alert templates for crypto and forex symbols, plus manual long and short stop alerts. Its inputs include quantity and market or broker fields for those templates. Users must choose the trade start correctly; the script rejects a start price within that candle’s range. No performance results or guidance on selecting parameters are provided, and alert connectivity may require additional setup.

Key ideas

  • The indicator starts a long or short trailing stop from a user-selected time and price.
  • ATR, percentage, swing-point, and Parabolic SAR modes determine how the stop is calculated.
  • The stop moves only in the favorable direction and signals when price reaches it.
  • Crypto and forex alerts are formatted as integration templates, while manual stop alerts are also available.
  • The document provides no backtest evidence or recommended parameter settings.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.