Using ATR to Set a Trailing Stop and Follow Price Trends
Summary
The document describes a trailing stop based on Average True Range (ATR). It calculates a volatility-scaled distance by multiplying ATR by a configurable factor. As price rises, the stop level moves upward; when price falls, the stop is held in place to preserve gains. The text also describes opening long or short positions according to price relative to the stop, though it provides little detail about signal timing or position transitions.
The listed settings use an ATR length of 10 and a factor of 3, and the published test configuration covers BTC/USDT futures over a short period. No performance statistics or backtest conclusions are supplied. The source code uses a Supertrend direction signal to switch between long and short states, so the implementation is more specific than the prose description. The document warns that a close stop can trigger frequently, a wide stop can leave losses uncontrolled, and ATR settings require tuning; it also notes that the strategy does not independently identify market trends.
Key ideas
- ATR multiplied by a configurable factor determines the trailing distance.
- The described stop rises with favorable price movement and stays fixed when price retreats.
- The prose describes entries based on price relative to the stop, while the code uses Supertrend direction.
- The published configuration gives parameters and a test period but no performance evidence.
- Stop distance and ATR period affect the balance between premature exits and delayed risk control.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.