Engulfing compares the bodies of two consecutive candles. It need not cover their complete high–low ranges. Distinguish a body-engulfing test from an outside bar, and state how equal boundary prices are handled: different detectors can classify the same OHLC differently. The hypothetical models below explain geometry rather than promise a reversal.

Body, range and candle direction

Let O, H, L and C denote open, high, low and close. The body lies between the smaller and larger of O and C; its length is |C − O|. The full range is H − L. A body can engulf another while its high and low remain inside the previous range, and an outside bar can have a smaller internal body.

Read direction from prices rather than preset colors: C > O is up and C < O is down. Our strict exercise excludes O = C so the directions are unambiguous; do not assume every detector uses that same doji policy. A bullish reversal interpretation needs a preceding downward context, but that context is separate from the body inequalities.

Selected strict body test
InputsTwo consecutive candles from one feed and interval.
Bullish directionsC1 < O1; C2 > O2.
Bullish boundariesO2 < C1 and C2 > O1.
Bearish directions and boundariesC1 > O1; C2 < O2; O2 > C1 and C2 < O1.
Whole-range testH2 > H1 and L2 < L1 define the separate strict outside-bar condition.
InterpretationGeometry does not establish the next move or a profitable entry.

Body engulfing without an outside bar

Use hypothetical EUR/USD with one pip = 0.0001 USD per EUR. Candle 1 has O/H/L/C = 1.1050/1.1070/1.1010/1.1030. Alternative following candle 2A has 1.1028/1.1060/1.1020/1.1052; alternative 2B has 1.1035/1.1080/1.1000/1.1045. Both alternatives follow the same candle 1; they are not consecutive candles in one series.

Body and full-range tests on independent hypothetical alternatives
Measurement12A2B
Body directionDownUpUp
Body length20 pips24 pips10 pips
High–low range60 pips40 pips80 pips
Strict body engulfingReferenceYesNo
Strict outside barReferenceNoYes

In 2A, O2 is 2 pips below C1 and C2 is 2 pips above O1, yet the whole second range stays inside the first. In 2B, H2 exceeds H1 by 10 pips and L2 is 10 pips lower, while its body stays inside the first body. These are different tests, with no automatic ranking of trading performance.

For a separate hypothetical bearish pair, set O1 = 1.2000, C1 = 1.2020, O2 = 1.2022 and C2 = 1.1998. The first up body is 20 pips and the second down body 24 pips. The second opens 2 pips above C1 and closes 2 pips below O1, passing the chosen strict boundaries. No highs, lows or future outcome are inferred from those four prices.

OHLC records extrema and endpoints, not whether the high occurred before the low, how long prices stayed there, or which bank traded. Opposite bodies do not prove a particular order-flow mechanism. A completed pattern and an intrabar observation are also different records, as the diagram shows.

Equality changes the detector result

Keep candle 1 fixed. Original 2A has O2 = 1.1028 and C2 = 1.1052, so both body edges extend beyond it. If O2 becomes 1.1030 while C2 stays 1.1052, the strict test fails at the lower equality. A detector allowing one matching edge can still mark it. If O2 = 1.1030 and C2 = 1.1050, both edges match and there is no enlargement under the selected tests.

Geometry codes are not probabilities
Both edges exceededThe read TA-Lib implementation outputs +100 for this bullish geometry.
One edge equal+80 for the matching-edge bullish case; bearish cases use negative signs.
Both edges equalThe example fails the enlargement condition and yields zero.
TrendThe TA-Lib body function does not independently test a prior trend.
TradingView settingSMA50, SMA50/SMA200 or no trend detection are separate options.
Limit100 and 80 classify geometry; neither is a success percentage.

Read TA-Lib v0.6.4 and the current template permit one matching edge and return signed 100 or 80; the body tests do not contain a prior-trend filter. TradingView documents separate trend settings, but its help page does not expose every internal size or equality test. Compare the implementation, version and settings before expecting identical markers.

An engulfing body that vanished before the close

Candle one is closed. Candle two is shown twice: when current price is 106 and after its final close at 104.

Scroll sideways to see the full diagram

An engulfing body that vanished before the closeThe first closed candle has O 105, H 107, L 101, C 103. The next follows 102, 100, 106, 104. At 106, its 102–106 body meets the chosen strict body-engulfing conditions. At close 104, its 102–104 body does not cover the previous upper boundary 105. The two green bodies are two states of one candle, not consecutive candles.Same candle 2: live and final readings100103105107Candle 1Candle 2Candle 2ClosedStill formingClosed106104Temporary: 102 < 103 and 106 > 105Final: 102 < 103, but 104 < 105A wick to 106 does not replace the close.
Assumptions: hypothetical price units, same series and timeframe. Strict bullish engulfing requires O2 < C1 and C2 > O1. Final H2 = 106 and L2 = 100 do not change the 102–104 body. No entry rule or trade outcome is specified. TradingView: changing live prices and final OHLC.
A temporary body pattern can vanish before the final close.

Entry rules, stop loss placement and profit targets

Recognizing geometry is not a complete strategy. Record instrument, interval, quote type and feed, candle time boundaries, detector version, equality policy, trend filter and raw OHLC. The selected signal must be available before an order is evaluated. Evaluate all qualifying observations, including those with no later reversal.

  1. After-close market order. A complete candle can be used for recognition, but a historical next open is not a guaranteed executable price.
  2. Stop entry beyond an extreme. Specify side, trigger, buffer and cancellation. An additional price condition does not guarantee continuation.
  3. Limit entry on a pullback. Specify price and expiry and retain unfilled observations. A preferred price can remain unfilled; no universal “best” choice follows from the pattern.

A strategy may choose a stop beyond an extreme, but neither a fixed 5–10-pip buffer nor the body test guarantees its suitability. Size and costs must be defined separately. An ordinary stop can execute away from its level; a stopped position alone does not prove that somebody deliberately hunted it.

Price levels, Fibonacci measurements or trailing rules can be hypotheses for an exit. State the exact rule before testing instead of assuming a normal 2:1 or 3:1 payoff. Moving a stop to the entry price does not ensure financial break-even after costs or slippage. Scaling out requires explicit allocation and changes the distribution of outcomes.

A separate hypothetical price-distance calculation

Illustrative GBP/USD geometry and planned levels
First O/C1.2710/1.2740: up body 30 pips.
Second O/C1.2745/1.2620: down body 125 pips, strict engulfing.
Assumed short fill1.2618, not a promised next-open price.
Chosen stop level1.2760: adverse distance 142 pips.
Chosen target 11.2510: favorable distance 108 pips; 108/142 ≈ 0.7606.
Chosen target 21.2400: favorable distance 218 pips; 218/142 ≈ 1.5352.
Equal-half allocationOnly if both targets fill as assumed: gross average 163 pips, ratio about 1.1479 before costs.

These prices are invented for arithmetic; no Tuesday, Wednesday, seven-day gain, repeated resistance test or RSI history is supplied. With an assumed GBP10,000 position, one pip is USD1, so the planned adverse distance corresponds to USD142 before costs. It is not a maximum loss or EUR amount. Another account currency requires a stated conversion; partial fills and fees can change the outcome.

Time boundaries can change geometry on the same samples

Exchange-traded futures report traded contracts, whereas OTC tick volume counts quote-feed activity. Tick volume is not monetary turnover. Its relationship with traded volume depends on the feed, instrument, session and sample; a universal correlation of 0.9 is not established here.

Take hypothetical samples at 12:59, 13:00, 13:01, 13:02 and 13:03 with prices 101, 102, 100, 99 and 103. Two-minute windows include their left boundary and exclude the right. For [13:00,13:02) then [13:02,13:04), first and last samples give O/C = 102/100 then 99/103: strict bullish engulfing. For [12:59,13:01) then [13:01,13:03), they give 101/102 then 100/99: no bearish engulfing because 100 is not above 102.

These are different two-bar intervals within the same sample stream, not a complete market tick history. Merely changing the displayed timezone need not rebuild bars; an aggregation-boundary change is required for this model. Compare actual time boundaries and sample completeness as well as prices. A chosen volume threshold is an additional hypothesis, not proof of bank participation or a universal performance filter.

Practical takeaway: Evaluate an engulfing rule after the required candle closes; a temporary reading during formation is not its final state.

The most common mistakes in trading the engulfing

Detector differences can be explained without a profit story. Check geometry, equality, availability and data boundaries first, then assess a separately stated strategy on consistent inputs.

  • Body versus range. Compare O/C for engulfing and H/L for a separately defined outside-bar test.
  • Closed versus live. A current body can pass and then fail by the close; record which state the rule requires.
  • Equality and precision. A displayed 1.1030 may hide more digits. Use the raw input precision and fixed boundary policy.
  • Settings and evidence. A trend or volume filter can change counts, but its name or a “strong” marker does not establish net efficacy. Preserve all qualifying observations.

Summary — what to do in practice

A body-engulfing classification and an outside bar test different price intervals. Our exercise excludes doji and requires opposite directions with both body edges exceeded strictly. One-edge equality can be accepted by another detector. A prior-trend condition is separately specified; its absence does not erase the raw body inequalities.

The read TA-Lib output ±100 or ±80 is a geometry code, not a probability. TradingView’s trend settings demonstrate why two tools can mark different populations without changing the underlying candles. No universal best timeframe or equity-to-FX success percentage is established by these definitions.

Record recognition time and keep a temporary body distinct from final OHLC. The diagram’s two green drawings are states of one candle, not two events. Maximum 106 does not replace final close 104 when the previous upper body edge is 105.

For a trading claim, define entry, cancellation, exits, size, costs and execution separately. Evaluate the complete qualifying sample and unused data rather than retrospectively choose the most attractive location. Definitions document recognition; they do not guarantee a future reversal or limit actual loss.

Related reading: Japanese candlesticks — the basics compares the OHLC components; pin bar reversal — a single-candle shape discusses another geometry; how to draw support and resistance helps specify a context condition before evaluating results.