2015issue C057
Evaluating encoded candlestick sequence hypotheses
An encoded candlestick is a compressed body-shadow code. It becomes a testable signal only after you fix a sequence length, a sample-size floor, and an out-of-sample decay check.
- An encoded candlestick is a body-shadow code built from standard-deviation bins, and that step is already lossy compression of the original OHLC bar.
- Isolated weekly S&P 500 candles were judged to have no useful value for the next week's index move, so the archive pointed away from a single-bar hypothesis.
- A sequence hypothesis of two to four bars is distinct enough to test, but the sample-size conflict means a few thousand weekly observations cannot settle rare codes.
- Some three-candle sequences on later daily and hourly windows came in about half as large as the discovery window, so out-of-sample decay belongs in the design.
A candlestick is a compressed code
An encoded candlestick is a short label that replaces one bar's body and two shadows with size bins instead of a named pattern. In the archive workflow, each weekly bar was reduced to a three-letter body-shadow code that separately described its real body, its upper shadow, and its lower shadow.
Those three parts were placed into five standard-deviation bins running from two steps above a typical reading to two steps below. A standard-deviation bin is a discrete size class that places each candle part on a scale from unusually large to unusually small.
The candle-to-code step was already described as lossy compression, the information discarded when OHLC geometry is reduced to a short code. Extra statistical reduction can discard still more of the original bar structure.
A single-bar hypothesis is not a next-week forecast
Isolated weekly S&P 500 candles covering the years from 1962 to 2014 were judged to have no useful value for forecasting the following week's index move. Next-week percentage changes were judged weak as forecasts because their scatter was usually wider than the gap between the average change and zero.
Single candles were described as carrying almost no next-bar information. A single-bar hypothesis is the claim that one isolated candle, by itself, changes the odds of the next bar. The archive did not treat that claim as a usable forecast.
Sequence length and the sample-size conflict
Pairs or longer runs were the suggested unit for a testable hypothesis. A sequence hypothesis is the claim that two or more consecutive encoded candles form a repeatable condition worth testing. Two-to-four-bar sequences make codes distinct enough to test.
That same lengthening demands tens or hundreds of thousands of sequence observations, so uniqueness and sample size compete. That tension is the sample-size conflict: longer sequences create more distinct codes, yet those codes need huge archives before they appear often enough.
A weekly sample of 2751 observations was treated as too small to treat rare encoded signatures as statistically settled. The main exceptions to the weak next-week pattern were codes that appeared only once or only a few times, including several two-occurrence codes and one five-occurrence code.
Out-of-sample decay is part of the test
Ten years of daily bars across S&P names and two years of hourly bars, both scanned as three-candle sequences, were reported to leave some later-window results about half as large as the discovery-window results. Out-of-sample decay is how much a sequence's discovery-window result shrinks when the same rule is retested on later bars.
Editorial reading: an encoded sequence is only a candidate signal after you specify a sequence length, a sample-size floor, and an out-of-sample decay check. Until those three choices are written down, the body-shadow code remains a compressed label, not a finished rule.
All readings on this track · 54 readings
- 1990Constructing three-session rally and reaction volume signals
- 1991Constructing candlestick real bodies and multi-session patterns
- 1991Treat a candlestick reversal as incomplete until %D confirms it
- 1991Filtering candlestick signals with stochastic percent-D
- 1991Constructing compressed candlestick summaries
- 1993Intraday candlestick confirmation with oscillators
- 1993Candlestick hypotheses from a 1993 reading list
- 1994License candlestick signals with oscillators and weekly vetoes
- 1995Real-body support, resistance, and close-through breakouts
- 1997Weekly reversal as a three-part hypothesis
- 1998Turning fear levels into testable rules with a psychological matrix
- 2000Evaluating three-bar reversal reliability
- 2000Prior-day candles, open confirmation, and same-session stops
- 2000Intraday candlestick volume confirmation for daytrading
- 2001Count the key reversal up before coding a mechanical exit
- 2001Rising and falling three continuation candle construction
- 2002Treat a moving average as a contested fence
- 2003Candlestick signals need support and a risk-reward screen
- 2003Constructing one-day reversal tops and bottoms
- 2003Chart sentiment as a regime filter for hourly stochastic entries
- 2004Confirming index reversals with candlesticks, stochastics and averages
- 2004The harami inner close as a reversal barometer
- 2004Constructing a true-range volume power-shift filter
- 2005Weighing reversal clusters against moving-average support
- 2005Candlestick exits confirmed by overbought stochastics
- 2005Confirming piercing patterns with stochastics and moving averages
- 2006Candlestick cluster exits confirmed by overbought stochastics
- 2007Three black crows become a trade hypothesis only after regime, trend and nearby levels
- 2008Asymmetrical RSI lookbacks for divergence and candle confirmation
- 2008A permission checklist for the end of a trend
- 2010Mechanical entries still need confirmation gates
- 2010Crude oil as a case study in candlestick session reading
- 2010Gold weekly candles and the thousand resistance breakout
- 2010A three-layer gold chart drill from waves to candle confirmation
- 2011Why entry scans fail without trend filters
- 2011Price-zone oscillator trend-regime rules
- 2011A candlestick checklist before commodity entries
- 2013Step candle construction at price turning points
- 2013Two-bar step-candle construction
- 2014Small-range bars as a timed volume-climax hypothesis
- 2014Constructing volume-scaled candlestick charts
- 2015Weekly range midpoints as support and resistance
- 2015Constructing weekly body-midpoint pattern codes
- 2015Evaluating encoded candlestick sequence hypotheses
- 2015Constructing a breakout relative-strength index from two-day range candles
- 2016A three-gate classroom on hourly sterling
- 2016Fibonacci retracement as a pre-commitment stop map
- 2017Nine-zone filter for decade-level breakouts
- 2017Constructing pin-bar and inside-bar setups
- 2017Two-bar soldier and crow rules become a system only after filters and exits
- 2017Confirm a one-white-soldier or one-black-crow before entry
- 2018Session control from marubozu and engulfing geometry
- 2019Volume, acceleration, and candle filters on a completed double bottom
- 2019Sector-filtered candlestick scans and predrawn stops