Skip to content
All library documents

ZZ Price Channel Breakouts with Stop Entries and Time Filters

Article Strategy library · Author: ChaoZhang

Summary

This strategy derives upper and lower reference levels from recent highs and lows of the average of open, high, low, and close. It tracks changes in those channel extremes to establish levels that act as stop-entry triggers: a buy stop is placed at the upper level and a sell stop at the lower level, if both levels are available. Long and short trades can be enabled separately, while position quantity is tied to equity and a configurable capital percentage. The published example uses BTC/USDT futures and provides a date range and bar intervals, but includes no backtest performance statistics.

The accompanying explanation presents the method as a way to capture directional moves beyond a channel and describes the channel levels as stop-loss references. It also identifies repeated whipsaws, false breakouts, and parameter sensitivity as limitations. The code cancels pending orders and closes positions after the configured end timestamp; despite the prose, it does not show a recurring daily close before each session ends. Channel breakouts can fail in range-bound markets, and the document does not establish that the settings are profitable.

Key ideas

  • Recent OHLC averages define the rolling high and low used to calculate channel levels.
  • Stop entries seek long positions above the upper level and short positions below the lower level.
  • Position size is calculated from equity and the selected capital percentage.
  • The code limits trading to a configured date window and closes positions after its end.
  • Whipsaws and false breakouts are risks, and no performance evidence is reported.

Tags

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