Skip to content
All library documents

N-Bar Price Breakouts for Long Trend-Following Trades

Article Strategy library · Author: ChaoZhang

Summary

This strategy uses the previous N bars to set a rolling price channel. It enters a long position when the selected bullish price source crosses above the channel high, then closes that position when the bearish source crosses below the channel low. The source can use closing prices or bar highs and lows, and the example parameters set N to five. The method is a simple way to define breakout entries and exits while following upward trends.

The document provides rules and example implementation details, plus backtest settings for BTC/USDT futures on Binance over a stated period. It does not report backtest performance, so its claims about broad applicability and trend capture are not supported by results here. It also identifies likely weaknesses: false or repeated signals in choppy markets, transaction costs, parameter overfitting, and drawdowns at reversals. Suggested refinements include trend filters, stop losses, and testing parameters across instruments and timeframes; these are proposals, not evaluated improvements.

Key ideas

  • The strategy enters long when price crosses above the highest level from the previous N bars.
  • It exits the long position when price crosses below the lowest level from the previous N bars.
  • Signals can be based on closing prices or on bar highs and lows.
  • Choppy markets can generate repeated trades and costs, while reversals can cause drawdowns.
  • The document proposes trend filters, stop losses, and parameter testing as possible refinements.

Tags

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