ATR Trailing-Stop Trend Signals with Position Tracking
Summary
This strategy uses an ATR-based trailing stop to define a changing threshold around price. Crossovers between a one-period EMA of the selected price source and that threshold generate buy or sell signals. The source can optionally be Heikin Ashi close, and the ATR period and sensitivity factor control the stop distance. The document also describes quantity limits and portfolio tracking intended to adjust orders relative to an existing position.
The source and published backtest settings show an example applied to BTC/USDT futures, but no performance statistics are reported. The code also contains separate order-entry logic in addition to the portfolio quantity simulation, so the described position-management behavior should be checked carefully before interpreting results. The text warns that trend systems can whipsaw in ranges, signals lag, and settings matter; it suggests filters, volatility-based sizing, drawdown controls, and improved stop placement. Its multi-period framing is not clearly demonstrated by the described signal logic.
Key ideas
- An ATR multiple sets the distance of a trailing stop from price.
- Crossing the stop with the selected price source creates directional signals.
- Heikin Ashi prices are available as an optional signal source.
- Portfolio quantity controls are described, though the source includes separate entry logic.
- The example provides no reported returns or evidence across multiple timeframes.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.