Skip to content
All library documents

Dynamic Price Channels with Two-Bar Reversal Entries

Article Strategy library · Author: ChaoZhang

Summary

This short-term strategy uses rolling price extremes and a volatility-like distance from a channel midpoint to describe market conditions. In the supplied script, the midpoint is based on the highest and lowest closes over a lookback window, while bands are offset by a moving average of the absolute distance from that midpoint. A trend state is set when price moves beyond the bands. In an uptrend, two consecutive bearish bars can trigger a long entry; in a downtrend, two consecutive bullish bars can trigger a short entry. A counter-trend option and a take-profit percentage are also described.

The article presents the method as simple and adaptable, and lists a BTC futures backtest configuration, but reports no performance statistics or conclusions from that test. Its prose does not fully match the source: the band calculation and entry/exit conditions are more specific in code than in the explanation. The suggested counter-trend behavior and risk controls therefore need careful verification before use; false breakouts and frequent trading are acknowledged risks.

Key ideas

  • The script builds channel bands from rolling close extremes and the average distance of price from their midpoint.
  • Price movement beyond the bands establishes an uptrend or downtrend state.
  • Two consecutive bars against the trend can trigger an entry in the trend direction.
  • A counter-trend setting and percentage-based profit condition are included.
  • The document provides backtest settings but no reported performance results.

Tags

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