Skip to content
All library documents

Five-Day High-Low Channel Breakouts with Stop and Profit Exits

Article Strategy library · Author: ChaoZhang

Summary

This channel breakout method ranks the highs and lows from the prior five daily bars, using the highest and second-highest highs and lowest and second-lowest lows as reference levels. A long signal is triggered when price clears the highest high by a configurable percentage; a short signal uses a corresponding move below the lowest low. The second-ranked level serves as a stop reference, while a percentage move beyond the entry threshold can trigger a profit exit. The published implementation also restricts entries by time of day and closes positions at a specified hour.

The document includes a BTC perpetual-futures backtest configuration covering roughly one month on four-hour bars with fifteen-minute base data, but it reports no performance statistics. Its own discussion warns that ranging markets can produce repeated false breakouts and recommends additional confirmation and parameter tuning. The source code's use of higher-timeframe data and lookahead settings also means the backtest should be checked for potential timing bias before drawing conclusions about tradability.

Key ideas

  • The channel is built by ranking highs and lows from the previous five daily bars.
  • Long and short entries occur after price moves a configured percentage beyond the outer channel levels.
  • The next ranked high or low provides a stop reference, and a percentage profit threshold defines an exit.
  • The published example includes time-of-day entry restrictions and a scheduled position close.
  • A short BTC futures backtest setup is specified, but no returns or other performance results are given.

Tags

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