Moving Average Envelopes for Staggered Breakout Entries
Summary
This strategy places a baseline moving average inside percentage envelopes and stages entries at several distances from that average. It supports multiple moving average types and can enable long and short positions. The code places limit orders near the lower envelopes for longs and upper envelopes for shorts, allocating equity across enabled envelope levels; exits are set at the baseline average.
The accompanying explanation frames the method as trend tracking and suggests it is better suited to trending instruments, while warning that ranging markets can produce whipsaws. Wider or narrower envelopes affect signal frequency and exposure to missed moves or slippage. The published settings describe a short BTC/USDT futures test period, but no returns, risk statistics, or comparison are supplied. There is also a mismatch in the prose: it describes entering after price breaks beyond envelopes and closing when price falls back below the average, whereas the code uses limit entries and a baseline limit exit for both directions. Treat the actual order logic as the more precise description.
Key ideas
- A configurable moving average defines a baseline, with percentage bands above and below it.
- Limit entries are staged across enabled lower bands for longs and upper bands for shorts.
- The code allocates equity across envelope levels and places exits at the baseline average.
- Ranging conditions may cause repeated adverse entries, while envelope width changes trading behavior.
- The published test settings provide no performance results, and the prose does not fully match the coded order logic.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.