ATR Trend Tracking with a Volatility-Scaled Trailing Stop
Summary
The described system estimates directional bias from price comparisons with calculated buy and sell reference averages, then uses an ATR-based trailing stop to track exits. The prose specifies a 14-period ATR and a default multiplier of four; the code updates a trailing stop using the ATR and changes its position state when price crosses the stop. Long entries use a calculated limit price, and the strategy closes the long when the state turns bearish. An optional short mode is available, as is a separate stop-loss setting based on either ATR or a percentage.
The document presents no measured returns or detailed performance analysis, despite including backtest settings for BTC/USDT futures over a stated date range. Its claims about profit potential are not supported with reported results. It warns of whipsaws in ranging markets, losses during trend changes, and sensitivity to parameter selection, and suggests testing filters and sizing rules. The script and prose do not align perfectly: the code uses separate stop calculations and configurable settings that make the stated trailing-stop description incomplete.
Key ideas
- ATR scales the trailing-stop distance to current volatility.
- The strategy state changes when price crosses the trailing stop, generating directional signals.
- Long entries use a calculated limit price, while short trading is optional.
- The code includes a separate optional stop based on ATR or a percentage.
- The supplied backtest configuration is not accompanied by reported performance metrics.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.