Moving Average Price Confirmation with Consecutive Bars and Candle Filters
Summary
This short-term strategy compares closing price with a simple moving average and requires the condition to persist for a specified number of bars before entering. The example uses a 50-period average and two confirming bars. Entry filters also check the current and prior candle direction, while positions close when price crosses back to the opposite side of the average. Although the title and overview describe a dual moving-average crossover, the detailed rules and supplied code instead compare price with one moving average.
The document explains that confirmation and candle filters aim to reduce weak signals, and it identifies fixed stops as a possible risk-control approach, though the provided code does not show a stop order. It warns that ranging markets can cause repeated false signals and that fixed parameters and exits may not adapt to changing volatility. A BTC-USDT futures backtest configuration is included, but no results are reported. Suggested refinements include volatility-aware parameters, volume or indicator filters, and dynamic sizing; these remain proposals rather than tested findings.
Key ideas
- The example enters after price stays above or below a 50-period simple moving average for two bars.
- Candle direction checks add confirmation to the price-versus-average condition.
- Positions close when price moves to the other side of the average.
- The supplied rules use one moving average, despite the document's dual-crossover framing.
- Ranging markets can create whipsaws, and no measured backtest performance is provided.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.