D06 / Territory 6 of 49
Price Action and Candlesticks
Convert OHLC structure into testable events.
Published work
Released builds
in this territory.
Every card below is included in the current governed release with its article, sources, Python, TypeScript, and available labs.
Search the released libraryCandle Foundations
5 buildsPrice Action and Candlesticks / Candle Foundations
Candle Anatomy
Decomposes one candle into body, upper and lower shadow, and direction.Price Action and Candlesticks / Candle Foundations
Scale-Aware Body Classification
Classifies a candle body as long, short or doji **relative to recent bodies** rather than against a fixed threshold.Price Action and Candlesticks / Candle Foundations
Shadow-to-Body Ratio
Decomposes one OHLC candle and reports raw and tick-stabilized shadow-to-body ratios without hiding the zero-body case.Price Action and Candlesticks / Candle Foundations
Gap Classification
Classifies full-range, body, or opening gaps in either direction using an explicit tick-scaled minimum distance.Price Action and Candlesticks / Candle Foundations
Trend-Context Filter
Classifies prior closes as an uptrend, downtrend, or sideways context from normalized net movement and path efficiency.Single-Candle Patterns
13 buildsPrice Action and Candlesticks / Single-Candle Patterns
Doji
Evaluates one candle against the repository's explicit doji geometry and scale convention.Price Action and Candlesticks / Single-Candle Patterns
Dragonfly Doji
Evaluates one candle against the repository's explicit dragonfly-doji geometry and scale convention.Price Action and Candlesticks / Single-Candle Patterns
Gravestone Doji
Evaluates one candle against the repository's explicit gravestone-doji geometry and scale convention.Price Action and Candlesticks / Single-Candle Patterns
Marubozu
Evaluates one candle against the repository's explicit marubozu geometry and scale convention.Price Action and Candlesticks / Single-Candle Patterns
Spinning Top
Evaluates one candle against the repository's explicit spinning-top geometry and scale convention.Price Action and Candlesticks / Single-Candle Patterns
Hammer
Evaluates one candle against explicit hammer geometry, scale, and downtrend context conventions.Price Action and Candlesticks / Single-Candle Patterns
Hanging Man
Evaluates one candle against explicit hanging-man geometry, scale, and uptrend context conventions.Price Action and Candlesticks / Single-Candle Patterns
Inverted Hammer
Evaluates one candle against explicit inverted-hammer geometry, scale, and downtrend context conventions.Price Action and Candlesticks / Single-Candle Patterns
Shooting Star
Evaluates one candle against explicit shooting-star geometry, scale, and uptrend context conventions.Price Action and Candlesticks / Single-Candle Patterns
Long-Legged Doji
Marks each bar whose body is a small fraction of its high-low span while both shadows are long, and reports how much slack the tightest of those three tests had.Price Action and Candlesticks / Single-Candle Patterns
Four-Price Doji
Marks each bar whose entire range and whose open-to-close distance both sit within a tick tolerance, the degenerate candle where all four prices are effectively the same.Price Action and Candlesticks / Single-Candle Patterns
High-Wave Candle
Marks each bar with a small body relative to its high-low span whose two shadows are both a multiple of that body, the long-tailed indecision candle.Price Action and Candlesticks / Single-Candle Patterns
Belt Hold
Marks each bar that opens at one extreme of its own range within a tick and closes at least 60 percent of the span away, and reports that body share and which side it favoured.Two-Candle Patterns
12 buildsPrice Action and Candlesticks / Two-Candle Patterns
Bullish Engulfing
Evaluates two candles against explicit bullish-engulfing geometry, scale, and downtrend context conventions.Price Action and Candlesticks / Two-Candle Patterns
Bearish Engulfing
Evaluates two candles against explicit bearish-engulfing geometry, scale, and uptrend context conventions.Price Action and Candlesticks / Two-Candle Patterns
Bullish Harami
Evaluates two candles against explicit bullish-harami containment, scale, and downtrend context conventions.Price Action and Candlesticks / Two-Candle Patterns
Bearish Harami
Evaluates two candles against explicit bearish-harami containment, scale, and uptrend context conventions.Price Action and Candlesticks / Two-Candle Patterns
Piercing Line
Evaluates two candles against explicit piercing-line gap, midpoint, scale, and downtrend conventions.Price Action and Candlesticks / Two-Candle Patterns
Dark Cloud Cover
Evaluates two candles against explicit dark-cloud gap, midpoint, scale, and uptrend conventions.Price Action and Candlesticks / Two-Candle Patterns
Tweezer Top
Evaluates two candles against explicit tweezer-top tolerance, rejection, scale, and uptrend conventions.Price Action and Candlesticks / Two-Candle Patterns
Tweezer Bottom
Evaluates two candles against explicit tweezer-bottom tolerance, rejection, scale, and downtrend conventions.Price Action and Candlesticks / Two-Candle Patterns
Harami Cross
Scans consecutive pairs of bars for a doji whose body sits inside the previous bar's body, and reports the pattern's direction from the colour of that earlier bar.Price Action and Candlesticks / Two-Candle Patterns
Kicking Pattern
Scans consecutive pairs of bars for two near-marubozu candles of opposite colour separated by a clean gap, with no overlap between the two ranges.Price Action and Candlesticks / Two-Candle Patterns
Matching Low
Scans consecutive pairs of bars for two down candles whose closes land within a tick of each other, marking a repeated closing floor.Price Action and Candlesticks / Two-Candle Patterns
Rising/Falling Window
Scans consecutive pairs of bars for a price gap, where the second bar's range clears the first bar's entirely in either direction.Multi-Candle Patterns
13 buildsPrice Action and Candlesticks / Multi-Candle Patterns
Morning Star
Evaluates exactly three candles against explicit morning-star gap, penetration, scale, and downtrend conventions.Price Action and Candlesticks / Multi-Candle Patterns
Evening Star
Evaluates exactly three candles against explicit evening-star gap, penetration, scale, and uptrend conventions.Price Action and Candlesticks / Multi-Candle Patterns
Three White Soldiers
Evaluates exactly three candles against explicit white-soldiers body, close, shadow, scale, and downtrend conventions.Price Action and Candlesticks / Multi-Candle Patterns
Three Black Crows
Evaluates exactly three candles against explicit black-crows body, close, shadow, scale, and uptrend conventions.Price Action and Candlesticks / Multi-Candle Patterns
Three Inside Up/Down
Evaluates exactly three candles against explicit inside-pair containment, confirmation, scale, and trend-context conventions.Price Action and Candlesticks / Multi-Candle Patterns
Three Outside Up/Down
Evaluates exactly three candles against explicit outside-pair engulfing, confirmation, scale, and trend-context conventions.Price Action and Candlesticks / Multi-Candle Patterns
Abandoned Baby
Evaluates exactly three candles against explicit abandoned-baby isolation, doji, penetration, scale, and context conventions.Price Action and Candlesticks / Multi-Candle Patterns
Morning Doji Star
Scans three-bar windows for a down candle, then a doji, then an up candle that closes above the midpoint of the first candle's body.Price Action and Candlesticks / Multi-Candle Patterns
Evening Doji Star
Scans three-bar windows for an up candle, then a doji, then a down candle that closes below the midpoint of the first candle's body.Price Action and Candlesticks / Multi-Candle Patterns
Three-Line Strike
Scans four-bar windows for three same-colour candles followed by one opposite candle whose body swallows the run from the first candle's body edge to the third's.Price Action and Candlesticks / Multi-Candle Patterns
Rising/Falling Three Methods
Scans five-bar windows for a long candle, three bars whose ranges stay inside it, and a fifth candle of the same colour that closes beyond the first one's close.Price Action and Candlesticks / Multi-Candle Patterns
Upside Gap Two Crows
Scans three-bar windows for an up candle, a gapped-up down candle, and a second down candle that opens higher still yet closes back inside the first candle's body.Price Action and Candlesticks / Multi-Candle Patterns
Mat Hold
Scans five-bar windows for an up candle, a gap above its close, three bars that hold above the first candle's body floor, and a fifth up candle closing above every high in the window so far.Candlestick Scanning and Context
9 buildsPrice Action and Candlesticks / Candlestick Scanning and Context
Unified Candlestick Pattern Registry
construct a deterministic, versioned registry that rejects duplicate identities and ambiguous detector metadata.Price Action and Candlesticks / Candlestick Scanning and Context
Candlestick Pattern Occurrence Contract
normalize detector hits into reproducible occurrences with stable identity, causal timestamps, version, geometry score, and reason codes.Price Action and Candlesticks / Candlestick Scanning and Context
Market-Wide Candlestick Pattern Scanner
dispatch a frozen registry across injected detector candidates and emit only causal occurrence records with explicit rejection reasons.Price Action and Candlesticks / Candlestick Scanning and Context
Contextual Candlestick Confidence Score
combine available, direction-aligned evidence with explicit weights and a minimum evidence-coverage gate.Price Action and Candlesticks / Candlestick Scanning and Context
Support/Resistance Pattern Context
select the nearest causally confirmed directional level and turn ATR-normalized distance into a transparent [0,1] context feature.Price Action and Candlesticks / Candlestick Scanning and Context
Trend, Volatility, and Volume Pattern Context
derive three separately auditable context features from prior closes, ranges, and volumes plus the current closed bar.Price Action and Candlesticks / Candlestick Scanning and Context
Overlapping-Pattern Conflict Resolver
form connected overlap components and choose one reproducible winner using declared precedence and stable tie-breaks.Price Action and Candlesticks / Candlestick Scanning and Context
Candlestick Confirmation and Invalidation State Machine
advance directional candidates through closed-bar transitions with ordered levels, finite expiry, and complete reason-coded history.Price Action and Candlesticks / Candlestick Scanning and Context
Candlestick Scanner Ranking and Deduplication
calculate a traceable composite rank, keep deterministic order, and deduplicate only within an explicit identity key and bar window.Territory coverage
What this domain
is mapped to cover.
The published builds above are the released slice of this map. Every subject below belongs to this territory's charter.