Dual Moving Average Crossover with a Start-Time Limiter
Summary
This example uses fast and slow moving averages, with published periods of 14 and 21, to determine long and short direction. A crossover changes the position, and an option can invert the signal direction. A configurable timestamp gate prevents the strategy logic from running until a chosen start time. The parameters also include fixed profit and loss distances and trailing-stop settings. The published backtest settings cover a short BTC-USDT futures interval, but no outcome statistics are included.
The document frames the crossover as a way to follow trends and the time gate as a way to control when signals become active. It warns that crossovers can trade frequently, that a late start time may skip opportunities, and that inversion can misdirect trades. Its source uses exponential averages, while the narrative calls them moving averages more generally. The time gate controls signal execution; it does not establish that conditions are favorable, and the example supplies no evidence that the strategy is profitable. Suggested additions include stop management, cross-asset signals, and parameter testing.
Key ideas
- The example uses 14-period and 21-period moving averages to set long or short direction.
- A configurable timestamp gate delays strategy execution until the chosen start time.
- An input can invert the direction of the crossover signals.
- The source includes fixed profit and loss settings and trailing-stop parameters.
- The supplied backtest settings have no accompanying performance results.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.