Why candle size alone can be misleading
A wide candle may reflect sustained directional movement or a volatile struggle between buyers and sellers. The real-body-to-range ratio distinguishes these two structures without relying on the instrument's nominal price. It is a descriptive measure, not a standalone prediction.
Calculation and interpretation
For a completed candle with open O, high H, low L and close C, range = H − L, real body = |C − O|, and body ratio = 100 × |C − O| / (H − L). If H = L, treat the ratio as undefined and skip the observation. Upper shadow = H − max(O,C); lower shadow = min(O,C) − L. The three components sum to the range for valid OHLC data.
Direction must be evaluated separately: C > O indicates a bullish body; C < O indicates a bearish body. A large ratio describes the distance between open and close, not whether price moved monotonically within the bar.

Worked example: identical ranges, different bodies
| Hypothetical candle | O/H/L/C | Body | Ratio | Upper/lower shadows |
|---|---|---|---|---|
| A | 101/110/100/109 | 8 | 80% | 1/1 |
| B | 104/110/100/106 | 2 | 20% | 4/4 |
Both candles have a range of 10 and close above their open. A shows a larger net upward displacement. B closes nearer the middle of its range, with substantial shadows. Neither proves what the next candle will do.
Using body ratio to evaluate breakouts
Suppose a previously established resistance level is 108. Candle A closes at 109, one unit above resistance; B closes at 106, below resistance. An illustrative filter could require a completed close above 108, a bullish body and a ratio of at least 60%. A qualifies and B does not. The 60% threshold is a hypothesis to test, not a universal rule.
Consider the next completed candle: a close back below 108 would weaken the breakout hypothesis. A retest holding above 108 could provide additional evidence, but requiring it may delay entry or miss a move. Use only information available at the decision time.
Risk and execution example
Assume a hypothetical next-bar fill at 109.5, protective stop at 107.5 and a risk budget of $100 for an instrument worth $1 per price unit per share. With $0.20 estimated round-trip friction per share, planned risk is $2.20 per share, allowing floor(100/2.20) = 45 shares. A gap or slippage may produce a larger loss; the stop is not a guaranteed execution price. The example is not a recommendation.
Common mistakes and validation
- Do not confuse a high body ratio with high absolute volatility. A 0.1-unit candle can have a 100% ratio.
- Do not use an unfinished candle as if its final high, low and close were known.
- Do not infer the sequence of intrabar highs and lows from OHLC alone.
- Test the filter against an otherwise identical breakout baseline, with and without a minimum range relative to ATR. Compare trade count, net expectancy, drawdown and sensitivity to costs.
- Evaluate nearby thresholds such as 50%, 60% and 70% on training data, then freeze the selected rule for chronological out-of-sample evaluation. Avoid selecting thresholds using the test period.
Session gaps, illiquid quotes and different bar construction methods can change the ratio's interpretation. No backtest has been performed for these illustrative rules. Technical analysis involves risk and does not guarantee future results.
For implementing a configurable candle-quality filter or combining it with your existing breakout logic, contact PatternSmart through Custom Trading Software Development Services.