Dual ATR Trailing Stops with EMA Trend Filtering and Sequence Exits
Summary
This strategy uses separate ATR-based trailing-stop engines to generate long and short crossover signals. A long-term exponential moving average filters direction: long signals require price above the average, while short signals require price below it. The two engines use independently configurable sensitivities and ATR lengths, and repeated signals can add positions through pyramiding. Exits occur after a configurable run of consecutive comparisons in which the close is higher or lower than a reference-bar close.
The script also builds platform-specific webhook alert messages, adjusts order quantities according to broad instrument categories, and displays a statistics table with trade and return measures. These are implementation and reporting features, not evidence of profitability. No actual test outcomes or market-by-market validation are supplied. Performance depends on the chosen settings, chart timeframe, slippage and execution assumptions, and the exit sequence logic; the displayed statistics are backtest calculations rather than a guarantee of live results.
Key ideas
- Separate ATR trailing stops produce long and short crossover signals with independently configurable parameters.
- A long-term EMA filters entries according to the prevailing price direction.
- Consecutive price comparisons against a reference bar determine when positions exit.
- Repeated signals can pyramid positions, and the script constructs webhook alerts for external execution platforms.
- The built-in performance table reports backtest measures but does not provide evidence of future profitability.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.