Moving Average Trend Signals Confirmed by Consecutive Price Moves
Summary
The document describes a trend strategy that compares closing price with a long-period simple moving average, then counts consecutive bars on either side of that average. Its prose says to trade in the direction of a move once the count reaches the confirmation threshold, aiming to avoid reacting to brief crossings. The listed parameters specify a 520-day average and 27 confirmation bars. The published backtest settings identify a BTC futures market and a short date range, but no results are supplied.
There is a material mismatch between the prose and source: the code opens a long after the price has remained below the average for the confirmation count, and opens a short after it has remained above. This is opposite to the described directional logic. The code also uses consecutive bars rather than explicitly measuring rising or falling closes, so the count confirms position relative to the average, not persistent price gains or losses. A long average may lag turning points, while sideways markets can still generate misleading signals; the document offers no evidence that the approach is profitable.
Key ideas
- The prose describes using a long-period simple moving average to define a broad market direction.
- Consecutive bars on one side of the average are intended to confirm a signal.
- The source code enters long below the average and short above it, opposite to the prose.
- The listed test setup has no reported outcomes, and the method may lag or misfire in ranging markets.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.