Technical Analysis Foundations · Illustrated reference
Candlesticks: construction and context
Anatomy, comparisons and the information a candle cannot preserve.
In this reference
A candle is a compact record, not a narrative
A candlestick encodes four eligible prices within one interval: open, high, low and close. Its body spans open to close. Its upper wick extends from the top of the body to the high; its lower wick extends from the low to the bottom of the body. In our illustrations, green marks C ≥ O and red marks C < O. Color conventions vary, and some platforms compare the close with the previous close instead.
Body = |C − O| Upper wick = H − max(O,C) Lower wick = min(O,C) − L Range = H − L
For O=100, H=108, L=96, C=105, the body is 5, upper wick 3, lower wick 4 and total range 12. The body occupies 5/12, or 41.67%, of the range. The range includes all three nonnegative parts. If H=L, do not divide by the range; report a flat bar rather than an invented ratio.
Build the candle from its measurements
The upper wick is 108 − 105 = 3; the lower wick is 100 − 96 = 4. The parts sum to 12.
Read every stage
- Locate high and low. The eligible prices span 96 to 108: a range of 12.
- Place open and close. Open 100 and close 105 create a body of 5, or 41.67% of the range.
- Measure the remaining wicks. The upper wick is 108 − 105 = 3; the lower wick is 100 − 96 = 4. The parts sum to 12.
A close above the open does not necessarily mean a gain from the previous session. If yesterday closed at 110, today opened at 100 and closed at 105, the candle is green under our convention but the close-to-close return is −4.55%. Always identify the comparison being made.
Shape atlas: geometry before names
A doji has an open and close close together under a stated tolerance. Exact equality is too restrictive for many datasets. A small body in a wide range differs from a small body in an almost motionless bar. A hammer-like shape has a long lower wick and a body near the high. An inverted-hammer-like shape has a long upper wick and a body near the low. These describe geometry; context supplies the conventional interpretation.
The same long-lower-wick shape is commonly called a hammer after a decline and a hanging man after an advance. The same long-upper-wick shape may be called an inverted hammer after a decline or a shooting star after an advance. A name therefore embeds a context choice. Define that preceding move before selecting examples, rather than assigning the name that best fits the subsequent outcome.
There is no universal numeric cutoff shared by every implementation. An illustrative rule might require the lower wick to be at least twice the body and the upper wick no larger than the body. That is a reproducible local convention, not a claim that every candle satisfying it has the same implications. Near-zero bodies need a range-based alternative to avoid enormous wick/body ratios.
Engulfing, inside and outside structures
A body-engulfing comparison asks whether the second body contains the first body. A range-outside comparison asks whether the second high and low extend beyond the first high and low. They are different tests. A candle may engulf the prior body without exceeding both prior extrema. A color reversal is an additional condition under some engulfing definitions, not a consequence of containment alone.
Strict inside bar: H₂ < H₁ and L₂ > L₁ Strict outside bar: H₂ > H₁ and L₂ < L₁ Body containment: min(O₂,C₂) ≤ min(O₁,C₁) and max(O₂,C₂) ≥ max(O₁,C₁)
Choose how ties are handled. Replacing strict inequalities with inclusive ones changes the sample. For example, first bar O100 H106 L98 C104 and second bar O104 H105 L99 C101 form an inside range, despite the second candle’s red body. First bar O100 C102 and second bar O103 C99 form an opposite-color body engulfment, but their high/low values are still needed to establish an outside range.
Multi-candle names compress additional conditions about direction, bodies, gaps and closes. Write those conditions down rather than judging by resemblance alone. On continuously trading instruments, a definition requiring session gaps can select very different structures from the same definition on regular-session equity data.
The intrabar path is missing
O100 H108 L96 C105 is consistent with both 100 → 108 → 96 → 105 and 100 → 96 → 108 → 105. If a hypothetical upper exit at 107 and lower exit at 97 are both active from the open, their first-touch order differs between these paths. The candle alone cannot resolve which occurred first.
Animated explanation · synthetic observations
The information a candle leaves behind
Both paths collapse into the same candle. OHLC retains the extremes but discards their order.
Both continuous paths have identical OHLC. Their first stop/target touches differ. Aggregation cannot reconstruct their order. The complete reference is shown when motion is unavailable. Playback is optional.
This is not a reason to assume the favorable path. A research system can use finer observations, report bounds, or explicitly document an assumed intrabar model. Finer OHLC may still leave ambiguity within its own intervals. Actual fills additionally depend on gaps, order activation, liquidity, spread, venue and queue position.
A wick establishes that eligible prices extended beyond the body. It does not prove a deliberate stop hunt, institutional accumulation or an exact quantity of rejected supply. Those stories require additional evidence beyond four prices.
Context makes the comparison meaningful
Compare a candle with the instrument’s recent ranges, its session and its location relative to a previously known level. A range of 2 is large in a market whose recent ranges are 0.5 and small in one whose recent ranges are 8. An apparent rejection inside a broad range need not mean the same thing as an interaction with a level fixed before the candle began.
Completion matters. A long lower wick at midday can become a long red body by the close if price returns toward the low. Waiting for completion removes that particular provisional ambiguity, but introduces delay. A following candle can supply an additional stated observation; it cannot retroactively make the earlier shape a guaranteed signal.
Volume can describe the amount traded, but a large candle with high volume does not uniquely identify who was informed or whether the move will continue. Match the volume comparison to the same elapsed session. See volume and price.
Failure and identification errors
A hammer-like candle can be followed by a lower low. A bearish engulfment can be followed by an advance. An inside bar can remain inside for several more intervals. Those are legitimate outcomes, not reasons to remove the case from a sample after the fact. If “failure” means a later close below the lower wick, specify the observation horizon and treatment of intervening gaps before looking at outcomes.
Common errors include mixing body containment with range containment, naming a shape before the interval finishes, using a different trend definition for each example, and treating adjusted and unadjusted prices as one series. Pixel dimensions also mislead: axis scaling changes apparent wick length, while the underlying numerical ratios remain checkable.
Use candle terminology to communicate a precise observation. Use a separate test to investigate predictive value. Continue with gaps and session boundaries or aggregation across timeframes.