Candle Anatomy¶
Indicators · Price Action
Break each bar into its parts as series: body (|close−open|), upper wick, lower wick, and range (high−low) — all in price units. Compose ANY candlestick pattern with comparisons (e.g. 'lower wick ≥ 2×body AND body ≤ 0.3×range' = a hammer) instead of a baked-in threshold.
Candle Anatomy breaks each bar into its measurable parts as series: the body (|close − open|), the upper wick, the lower wick, and the total range (high − low) — all in price units. Instead of giving you a fixed "hammer" or "doji" flag, it hands you the raw dimensions so you can compose any candlestick pattern yourself with comparisons.
How it works¶
From the bars input it computes, each bar: body = the open-to-close distance; upper wick = high minus the body top; lower wick = the body bottom minus low; range = high minus low. Four series out, all in the instrument's price units. Because they're plain numbers, you build patterns by comparing them (with GreaterThan, Divide, etc.) rather than trusting a baked-in threshold. Lookahead-free.
When to use it¶
Use it whenever you want candlestick logic on your terms: define a hammer as "lower wick ≥ 2 × body AND body ≤ 0.3 × range," a doji as "body ≤ 0.1 × range," a strong close as "body ≥ 0.7 × range." It's the flexible foundation under price-action systems, and it lets you tune pattern strictness instead of accepting someone else's definition.
Example¶
Hammer detector: from Candle Anatomy, take lower_wick and body, require lower_wick ≥ 2 × body (via Multiply + GreaterEqual) and body ≤ 0.3 × range, then And them — your own hammer signal, feedable into the Tester.
Tips & gotchas¶
- Everything is in price units — normalise by dividing by
rangeor an ATR to make thresholds instrument-agnostic. - Four outputs — body, upper wick, lower wick, range.
- Compose patterns with comparisons; pair with Engulfing for the two-bar shapes it doesn't cover.
Related blocks¶
Inputs¶
| Socket | Type | What to wire in |
|---|---|---|
| Bars | bars |
Price bars. |
Outputs¶
| Output | Type | Plots as | Description |
|---|---|---|---|
| Body | series |
Line · sub-pane | |close − open| (candle body size). |
| Upper wick | series |
Line · sub-pane | high − max(open, close). |
| Lower wick | series |
Line · sub-pane | min(open, close) − low. |
| Range | series |
Line · sub-pane | high − low (full bar range). |
Reference auto-generated from the block catalog · category Indicators.