Skip to main content
Track Candlestick patterns
44 / 54
Library

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.
Entries in this reading1 entry

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.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
44 of 54 in the Candlestick patterns track
20157-7 pp.Next on Candlestick patternsConstructing a breakout relative-strength index from two-day range candlesSpecify the oscillator input as a daily breakout candlestick rather than leaving the bar identity unspecified.
All readings on this track · 54 readings
  1. 1990Constructing three-session rally and reaction volume signals
  2. 1991Constructing candlestick real bodies and multi-session patterns
  3. 1991Treat a candlestick reversal as incomplete until %D confirms it
  4. 1991Filtering candlestick signals with stochastic percent-D
  5. 1991Constructing compressed candlestick summaries
  6. 1993Intraday candlestick confirmation with oscillators
  7. 1993Candlestick hypotheses from a 1993 reading list
  8. 1994License candlestick signals with oscillators and weekly vetoes
  9. 1995Real-body support, resistance, and close-through breakouts
  10. 1997Weekly reversal as a three-part hypothesis
  11. 1998Turning fear levels into testable rules with a psychological matrix
  12. 2000Evaluating three-bar reversal reliability
  13. 2000Prior-day candles, open confirmation, and same-session stops
  14. 2000Intraday candlestick volume confirmation for daytrading
  15. 2001Count the key reversal up before coding a mechanical exit
  16. 2001Rising and falling three continuation candle construction
  17. 2002Treat a moving average as a contested fence
  18. 2003Candlestick signals need support and a risk-reward screen
  19. 2003Constructing one-day reversal tops and bottoms
  20. 2003Chart sentiment as a regime filter for hourly stochastic entries
  21. 2004Confirming index reversals with candlesticks, stochastics and averages
  22. 2004The harami inner close as a reversal barometer
  23. 2004Constructing a true-range volume power-shift filter
  24. 2005Weighing reversal clusters against moving-average support
  25. 2005Candlestick exits confirmed by overbought stochastics
  26. 2005Confirming piercing patterns with stochastics and moving averages
  27. 2006Candlestick cluster exits confirmed by overbought stochastics
  28. 2007Three black crows become a trade hypothesis only after regime, trend and nearby levels
  29. 2008Asymmetrical RSI lookbacks for divergence and candle confirmation
  30. 2008A permission checklist for the end of a trend
  31. 2010Mechanical entries still need confirmation gates
  32. 2010Crude oil as a case study in candlestick session reading
  33. 2010Gold weekly candles and the thousand resistance breakout
  34. 2010A three-layer gold chart drill from waves to candle confirmation
  35. 2011Why entry scans fail without trend filters
  36. 2011Price-zone oscillator trend-regime rules
  37. 2011A candlestick checklist before commodity entries
  38. 2013Step candle construction at price turning points
  39. 2013Two-bar step-candle construction
  40. 2014Small-range bars as a timed volume-climax hypothesis
  41. 2014Constructing volume-scaled candlestick charts
  42. 2015Weekly range midpoints as support and resistance
  43. 2015Constructing weekly body-midpoint pattern codes
  44. 2015Evaluating encoded candlestick sequence hypotheses
  45. 2015Constructing a breakout relative-strength index from two-day range candles
  46. 2016A three-gate classroom on hourly sterling
  47. 2016Fibonacci retracement as a pre-commitment stop map
  48. 2017Nine-zone filter for decade-level breakouts
  49. 2017Constructing pin-bar and inside-bar setups
  50. 2017Two-bar soldier and crow rules become a system only after filters and exits
  51. 2017Confirm a one-white-soldier or one-black-crow before entry
  52. 2018Session control from marubozu and engulfing geometry
  53. 2019Volume, acceleration, and candle filters on a completed double bottom
  54. 2019Sector-filtered candlestick scans and predrawn stops
All 100 readings tagged Candlestick patterns
Also on Candlestick patterns5 readings