Skip to content
All library documents

Directional Momentum from Consecutive Rising and Falling Bars

Article Strategy library · Author: ChaoZhang

Summary

This rules-based strategy counts consecutive rises or falls in closing prices. Separate thresholds govern long entries, long exits, short entries, and short exits, allowing the trader to adjust how quickly positions open and close. The supplied defaults call for two rising bars to enter long and one falling bar to exit; the short rules use the inverse pattern. Trading is enabled only after a configurable start date.

The document frames the method as short-term stock momentum, but its published backtest settings name BTC/USDT futures, and it provides no performance results. The script itself applies the bar-count rules without the volume, trend, or stop-loss filters discussed as possible enhancements in the prose. Frequent signals can raise transaction costs and slippage, and results may be highly sensitive to thresholds. The notes recommend testing across parameter choices, managing losses, considering volume and broader trend conditions, and avoiding prolonged sideways markets. These suggestions are proposed safeguards, not demonstrated improvements.

Key ideas

  • Entries and exits depend on configurable counts of consecutive rising or falling closes.
  • Long and short positions use separate thresholds for opening and closing trades.
  • The provided defaults use two bars for entries and one bar for exits.
  • The source does not implement the suggested volume filters or stop-loss rules.
  • The document reports backtest settings but gives no performance evidence, and those settings specify futures despite the stock-focused description.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.