Confirming Price Momentum Direction with Consecutive Bars
Summary
This simple trend-following strategy calculates momentum as the current close minus the close from a configurable number of bars earlier. Positive momentum indicates upward movement and negative momentum indicates downward movement. It counts consecutive bars with each sign and enters long or short when the count reaches a confirmation threshold. The stated defaults are a momentum length of 14 bars and one confirmation bar.
The document presents the method as an accessible way to follow persistent price direction, but gives no measured results. Published backtest settings identify BTC/USDT futures and a brief January 2024 interval; the source’s date-range inputs are present but its range check is hard-coded as true. The approach can generate repeated trades in sideways markets, has no explicit exit or stop-loss logic in the supplied strategy, and may not handle abrupt market events. The notes recommend controlling trade frequency and testing filters and parameters across instruments and conditions.
Key ideas
- Momentum is measured as the difference between the current close and a lagged close.
- Consecutive positive or negative readings trigger long or short entries after a configurable confirmation count.
- The described default momentum lookback is 14 bars, with one confirmation bar.
- The supplied code contains no explicit exit or stop-loss rule and hard-codes its backtest range condition as true.
- Sideways price action can cause overtrading, and no performance results are provided.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.