2015issue C028-9
Lock lookback and chart scale before you mark a flag or pennant
Flag and pennant recognition is a construction problem. Name the chart-scale and the historical lookback first, then treat the resulting structure as a pattern-signal that can be marked, coded, or rejected.
- Construction must name the chart-scale because the same flag-detection rules can be written for daily bars and for intraday bars.
- Lookback is an explicit detector parameter. If it exceeds the bar-reference-limit, the study cannot evaluate.
- One construction adjustment is to raise the allowed lookback so the study can reference 150 bars.
- The same rules can live as a charting study, a strategy, or a spreadsheet built from price columns, keeping markup separate from a testable hypothesis.
Start with the window, not the sketch
A flag is a compact, usually sloping coil that follows a sharp directional move and can be stated as a rectangular OHLC structure rather than a freehand sketch. A pennant is a tapering coil after a sharp move, constructed from converging swing highs and lows instead of a parallel channel.
Editorial reading: recognition is a construction problem. Lock the chart-scale and the historical window first. Only then treat the resulting shape as a hypothesis that can be marked, coded, or rejected.
Name the chart-scale
Flag-detection rules can be written for daily bars and for intraday bars, so construction must name the chart-scale being used. Chart-scale is the bar interval on which the same structural rules are evaluated, from intraday bars through multi-week daily sequences.
Flags and pennants appear among common chart patterns reviewed in a currency-charting discussion, so the construction is not treated as equity-only in this material.
Set lookback against the bar-reference-limit
Construction of the detector includes an explicit parameter for how many bars the study will reference. Lookback is the count of historical bars a detector must read before it can accept or reject a flag or pennant condition.
A flag-detection study cannot evaluate when it tries to read more historical bars than the platform lookback limit allows. That cap is the bar-reference-limit. If it is smaller than the detector lookback, the construction cannot run.
One construction adjustment for that failure is to raise the allowed lookback so the study can reference 150 bars.
Separate visual markup from a testable hypothesis
The same flag rules can be stored as a charting study and as a strategy, separating visual markup from a testable hypothesis. Flag identification can be rebuilt in a spreadsheet from price columns, so the pattern is a data rule rather than a drawing on one chart.
All readings on this track · 26 readings
- 1986Constructing bounded relative-strength overlays from oscillator limits
- 1989Point-and-figure fulcrum, count, and flag as three jobs
- 1996The high, tight flag as a three-checkpoint continuation exam
- 2000Test chart patterns with confirmation, not names
- 2001Failed chart patterns as reverse breakout signals
- 2002Ascending triangle and flag: a three-checkpoint QQQ case study
- 2002Two-stage chart reading after breakouts
- 2002The second pattern after a breakout
- 2003Building flags, pennants, and triangles as continuation pauses
- 2003When trendline channels age into a wedge or a break
- 2004Bearish chart patterns need confirmation before the turn
- 2004Constructing flags, pennants, and triangles from swing pivots
- 2005Constructing flag and pennant rules from pole to exit
- 2005Fanline construction for testing trend health
- 2005When flag-and-pennant breakout scans fail a measurement audit
- 2006Testing a bear-flag target after the pause is confirmed
- 2007Homebuilder rebound as a bear-flag, trendline, and volume case study
- 2008Completed chart patterns as reward-to-risk arithmetic
- 2012Reading this file
- 2012Reading regime change: when to stop trading
- 2014Intraday flag construction with breakout and stop rules
- 2015Lock lookback and chart scale before you mark a flag or pennant
- 2017Constructing delayed buy-stops on bull flags and pennants
- 2018Copy an ABC swing as a ruler, then test flags and Fibonacci degree
- 2019Failed flags, pennants, and triangles as a completed experiment
- 2020Confirming candlestick and flag signals on a weekly chart