Skip to content
All library documents

Trend Following with N Consecutive Up Bars

Article Strategy library · Author: ChaoZhang

Summary

This strategy counts consecutive prior bars whose close is at least their open. Once the count reaches a configurable threshold, it signals a long position; when the condition is no longer met, the described approach exits. The document also describes a take-profit and stop-loss based on fixed distances from the recorded entry price, and suggests adjusting the bar-count threshold to affect trading frequency.

The text presents the method as a simple way to follow upward moves and discusses risks such as reversals, delayed entries, broad-market declines, and applying uniform parameters across assets. Published settings identify BTC-USDT futures, with daily strategy bars and hourly base data over part of 2023, but provide no results. There are important implementation ambiguities: the code’s counter checks whether the prior bar is positive rather than whether closes rise relative to one another, and its stop and target comparisons appear to use price distances despite being labeled in pips. These details mean the stated behavior should be verified before drawing conclusions or deployment.

Key ideas

  • The signal is based on a count of consecutive prior bars that close at or above their open.
  • A configurable threshold determines when the strategy enters long.
  • The description proposes closing when the signal fails and using fixed take-profit and stop-loss distances.
  • The source does not provide evidence of profitability, and its counter may not match the title’s higher-close interpretation.
  • Market regime, threshold selection, and instrument-specific behavior are cited as risks.

Tags

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