TrendAlert Entries with ATR and Structure-Based Stops
Summary
This strategy uses the sign of a TrendAlert input to choose long or short entries when no position is open. It calculates ATR over a configurable lookback and places stops using either the recent low or high structure, or the close, with an ATR offset. A take-profit target is derived from the entry-to-stop distance and a configurable multiplier; the strategy exits when price reaches either level.
The document describes the rules and provides an example configuration and source, along with a BTC/USDT futures backtest window spanning roughly a year. It reports no performance statistics, so the settings do not establish profitability or robustness. The overview calls the stop trailing, but the shown exit is set at entry using the then-current stop value, rather than visibly updated through the trade. The code also contains a fixed ETHUSD alert string for short entries despite exposing a currency input, and its alert fields concatenate stop and target values without an apparent separator. These implementation details need review before live use.
Key ideas
- TrendAlert above zero triggers a long entry, while a value below zero triggers a short entry when flat.
- ATR and a recent high or low define the initial stop, with a setting to use the close instead of structure.
- The target distance is based on the entry-to-stop distance multiplied by a configurable limit factor.
- The supplied backtest settings identify a BTC/USDT futures test period but include no reported performance results.
- The source has alert and stop-update details that warrant validation before deployment.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.