Read the three candles in time order
Label the bars 1, 2 and 3, with O, H, L and C for open, high, low and close. TA-Lib's detector uses strict comparisons for the third body's engulfment. The table makes that convention explicit; body-size settings and the prior trend still need their own definitions.
- This is a body-gap definition. Overlapping shadows do not automatically reject it; requiring L2 > H1 would impose a different, stricter gap test.
- "Long" and "small" are relative measurements, not fixed dollar amounts. State the lookback and cutoff before comparing detector results.
- The bearish interpretation requires a preceding advance. Geometry found inside a sideways range does not establish an uptrend reversal.
| Bar or relation | Test | Meaning |
|---|---|---|
| Candle 1 | C1 > O1; long body | A bullish candle follows the prior rise. |
| Candle 2 | C2 < O2; small body | The first crow is bearish. |
| Initial body gap | C2 > C1 | The entire second body is above the first body. |
| Candle 3 | C3 < O3 | The second crow is also bearish. |
| Engulfment | O3 > O2 and C3 < C2 | The third body extends beyond both ends of the second body. |
| Remaining gap | C3 > C1 | The third close has not entered the first body. |