Price Channel Breakout Strategy with Long and Short Entries
Summary
This strategy uses a rolling price channel to define potential breakout levels. It calculates the channel ceiling from the highest high and the floor from the lowest low over a configurable lookback, set to 21 bars by default. It then submits stop entries at those levels for both long and short positions once enough history is available. The chart also marks gaps between adjacent bars and shades the channel for visual context.
The accompanying description recommends moderate return expectations, deliberate stock selection, portfolio diversification, and regular execution of a simple system. However, the code does not implement explicit position closing based on the separately defined close conditions, and the document supplies no strategy report, performance statistics, or test assumptions beyond its stated initial capital, commission, and sizing settings. It therefore illustrates a basic channel breakout framework, not evidence that the rules are profitable or suitable for a particular market.
Key ideas
- The channel boundaries use the rolling highest high and lowest low across a configurable lookback.
- Stop entries are placed at the channel boundaries to capture moves through recent extremes.
- The script includes both long and short entries and marks gaps between adjacent bars.
- The author recommends modest expectations, stock selection, diversification, and consistent execution.
- No performance evidence is included, and explicit exits are not implemented in the shown strategy logic.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.