Dynamic Moving-Average Bands for Trend Entries and Exits
Summary
This strategy builds two price levels as fixed percentages above and below a simple moving average. A move above the upper level signals an upward trend, while a move below the lower level signals a downward trend. The described entry orders are placed at the opposing band, and positions are closed when price returns to the moving average. The source allows long and short trading to be toggled and includes position sizing based on a share of equity.
The document explains that moving averages can smooth price noise but may react slowly, miss short moves, or give misleading signals during sharp or unusual conditions. It suggests testing band distances, adding trend-strength or trailing-stop rules, and checking performance across instruments. Published backtest settings specify BTC-USDT futures over roughly a year, but no return, risk, or trade statistics are supplied. The prose describes trend-cross entries, while the code submits limit orders at the opposite band when flat; this distinction matters because the actual fills may differ from the narrative, and the claimed profitability is not supported by reported evidence.
Key ideas
- The strategy offsets a moving average with upper and lower percentage bands to define price triggers.
- Crossing above the upper band signals an upward condition, while crossing below the lower band signals a downward condition.
- The source places limit entries at the opposite band and closes positions at the moving average.
- The moving average can filter noise but may lag or produce poor signals in unusual or choppy markets.
- The published backtest settings include no performance results, and the code's order placement differs from the narrative description.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.