Engulfing Candlestick Pattern
Category: Candlestick patterns · Updated November 2026
The TAAPI.IO Engulfing API tells you, candle by candle, whether a candle's body swallowed the body of the candle before it in the opposite direction. That is the classic sign of control changing hands. It works on crypto pairs and US stocks. Send an exchange, symbol and timeframe and get a positive number for a bullish engulfing, a negative number for a bearish one and 0 for anything else, with no candles to download and no pattern logic to maintain.
What one request returns
- One value per candle:
100or80for a bullish engulfing,-100or-80for a bearish one,0otherwise. Read the sign; the size only says whether the two bodies share an edge (see the rule). - The candle's timestamp, so you can match each value to its candle. The value belongs to the second, engulfing candle.
- No context: the API checks the two bodies only. It does not look at trend, wicks, volume or body size, so you add those yourself.
The default returns the newest candle, which is usually still forming. Add backtrack=1 for the last closed candle, or results to get a series.
On crypto, most signals are ±80, not ±100. Crypto trades around the clock, so a candle usually opens exactly at the previous close, and the bodies share that edge. Across five crypto markets we checked, 74% of engulfings were ±80; on US stocks, which gap overnight, only 14% were. Code that tests value == 100 misses most crypto signals. Test value > 0 and value < 0.
Example: BTCUSDT, May to July 2026
Request: BTCUSDT on daily Binance candles with results=300, made on 12 November 2026. In the 49 days charted below the API flagged 11 engulfings, 6 bullish and 5 bearish: more than one a week. Some of them called the next move well. Others were noise.
| Candle (UTC) | value | Previous body | Engulfing body | Volume vs 20-day avg | Next |
|---|---|---|---|---|---|
| 26 May 2026 | -80 | 257, up | 1,392, down | 1.29× | −19.6% in 10 days |
| 30 May 2026 | 80 | 157, down | 424, up | 0.54× | −13.2% in 4 days |
| 7 Jun 2026 | 80 | 172, down | 2,447, up | 1.37× | +6.3% to the 15 Jun high |
How to interpret this: On 26 May Bitcoin had bounced for three days from 75,540 and pushed up to 78,080, just under the 78,200 high of 21 May. Sellers stepped in at that level: the day opened at 77,322 and closed at 75,930, swallowing the previous day's small up-body on 29% more volume than usual and closing below the previous day's low. That is a lower high rejected at resistance, and it marked the top of the bounce. Ten days later price was at 61,056.
On 7 June the opposite happened at the bottom. After a 17% fall in eight days, 6 June was a doji (see the Doji page). 7 June opened at 60,885, at the doji's close, and closed at 63,332: a body 14 times the previous one, on 37% more volume than usual, closing 1,802 above the doji's high. Buyers took control from sellers who had run out of supply, and price reached 67,292 by 15 June.
value is positive (bullish engulfing), red ones where it is negative (bearish). Hollow candles closed higher than they opened, filled ones lower. The dashed red lines are resistance: the 78,000 area and the 2 June breakdown level near 66,760. The green line is the 6 June doji's high. Every flag here is ±80 except 13 June, which is 100 only because that candle opened one cent below the previous close.Why 7 June worked and 30 May didn't
Both were bullish engulfings in a falling market, both swallowed a small red body, and both get the same 80 from the API. The numbers around them were very different.
| 30 May engulfing | 7 June engulfing | |
|---|---|---|
| Change over the 8 days before | −5.4% | −17.1% |
| RSI(14) of the candle before | 35.4 | 15.5, deeply oversold |
| Engulfing body vs ATR(14) | 0.22 ATR, a small candle | 0.95 ATR, a full-size candle |
| Volume vs 20-day average | 0.54×, a quiet Saturday | 1.37× |
| Close vs the previous candle's high | 630 below it | 1,802 above it |
| What followed | −13.2% in 4 days | +6.3% to the 15 June high |
30 May meets the rule, but only just in spirit. The candle it engulfed had a body of 157 on a day with a typical range near 1,900, so swallowing it took a move of 424: a fifth of a normal day. It happened on half the usual volume and still closed under the previous day's high. Nobody took control; it was a quiet weekend candle that happened to close green. On 1 June the decline resumed and on 2 June Bitcoin lost 6.5%.
7 June came after a selling climax. Volume had swelled from 24,000 to 55,000 BTC a day into 5 June, and the doji on 6 June showed sellers stalling. Then a full-size candle on heavy volume closed above everything the previous day had done. That is what "control changing hands" looks like on a chart.
Turned into filters on top of the API's value:
- A move into it: price was falling over the 3 candles before a bullish engulfing, or rising before a bearish one.
- Volume: the engulfing candle's volume is at least 1.2× its 20-candle average.
- A decisive close: above the previous candle's high for bullish, below its low for bearish. The rule itself only compares bodies.
30 May fails the last two. 26 May and 7 June pass all three. So did 17 August, which was followed by a 19% rise in five days.
But don't expect too much from any filter. We tested the raw signal on 380 engulfings across BTC, ETH, SOL, XRP, AAPL, SPY and TSLA, on timeframes from 1 hour to 1 day. Five candles later, price had moved in the signalled direction 47.6% of the time, no better than a coin flip. The three filters cut that to 50 signals, and those went the right way 48% of the time. On BTC daily 6 of 8 worked, but on ETH daily only 3 of 8. An engulfing is a trigger for a setup you already have, such as a level, a trend or an oversold reading. It is not an edge on its own.
Examples chosen for illustration; many engulfings are followed by nothing in particular. Not financial advice.
| Spec | Value |
|---|---|
| Endpoint | GET https://v2.taapi.io/indicator/engulfing |
| Outputs | value (100, 80, 0, -80 or -100) and timestamp |
| Rule | Opposite colours, and the second real body covers the first; ±80 when the bodies share an edge |
| Markets | Binance, Binance Futures, Bybit, Gate.io, Kraken and US stocks |
| Timeframes | 1m to 1w |
| Delivery | REST, bulk and WebSocket |
Get Engulfing with one API call
This request returns Engulfing for BTCUSDT on 1-hour Binance candles. Add your API key to run it here.
curl -G https://v2.taapi.io/indicator/engulfing \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h"
import requests
resp = requests.get(
'https://v2.taapi.io/indicator/engulfing',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={'exchange': 'binance', 'symbol': 'BTCUSDT', 'timeframe': '1h'},
)
print(resp.json())const params = new URLSearchParams({"exchange": "binance", "symbol": "BTCUSDT", "timeframe": "1h"});
const res = await fetch(`https://v2.taapi.io/indicator/engulfing?${params}`, {
headers: { Authorization: 'Bearer YOUR_API_KEY' },
});
console.log(await res.json());Engulfing API response
The request above with results=10 added, from the live API on 12 November 2026 at 11:59 UTC. The candle at 04:00 UTC (1794456000) was a bearish engulfing. It scored -100 and not -80 only because it opened at 73,807.46, one cent above the previous close. The last element, 11:00 UTC, was the candle still forming.
{
"value": [0, 0, -100, 0, 0, 0, 0, 0, 0, 0],
"timestamp": [1794448800, 1794452400, 1794456000, 1794459600, 1794463200, 1794466800, 1794470400, 1794474000, 1794477600, 1794481200]
}| Field | Type | Description |
|---|---|---|
value | integer[] | 100 or 80 for a bullish engulfing, -100 or -80 for a bearish one, 0 for none. Oldest first |
timestamp | integer[] | Unix time of each candle's open, in seconds, matching the candles endpoint |
Without results you still get arrays, each with one element.
Engulfing API parameters
Engulfing has no settings of its own: it compares two bodies, with no thresholds to tune.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
exchange | string | Yes | — | binance, binancefutures, bybit, gateio, kraken or stocks |
symbol | string | Yes | — | Pair or ticker, e.g. BTCUSDT or AAPL |
timeframe | string | Yes | — | 1m 5m 15m 1h 4h 1d 1w |
results | integer | No | 1 | Number of values to return, or max |
backtrack | integer | No | 0 | Candles to skip from the most recent. 1 makes the last element the last closed candle |
What is an Engulfing pattern?
An engulfing is a two-candle pattern. The first candle moves one way with a modest body; the second opens near where the first closed and then moves the other way so far that its body covers the whole body of the first. A bullish engulfing is a red candle followed by a bigger green one: sellers had the first candle, then buyers erased all of it and more. A bearish engulfing is the mirror image: a green candle swallowed by a bigger red one.
Why it matters
The pattern shows control changing hands within one candle. That is meaningful when there was control to lose. After a clear move down, a bullish engulfing says the sellers who drove it have been overpowered. After a clear move up, a bearish engulfing says the same about the buyers. It is strongest when:
- It follows a clear trend or a sharp move. In a sideways market engulfings are common and mean little.
- It forms at support or resistance, like 26 May under 78,000 or 16 June under the 2 June breakdown above. The level gives the reversal a reason and a clear place for a stop.
- Volume is above average. A big body on thin volume, like 30 May, is easy to make and easy to undo.
- The engulfing body is large compared with recent candles, not just compared with a tiny previous body, and it closes beyond the previous candle's high or low.
How the API decides
| Step | Rule |
|---|---|
| Colour | A candle is bullish when close ≥ open and bearish when close < open. A candle with close equal to open counts as bullish |
| Bullish engulfing | Previous candle bearish, current candle bullish, current close ≥ previous open and current open ≤ previous close, with at least one of the two strictly beyond |
| Bearish engulfing | Previous candle bullish, current candle bearish, current open ≥ previous close and current close ≤ previous open, with at least one of the two strictly beyond |
±100 | The current body extends past the previous body at both ends |
±80 | The bodies match exactly at one end: current open = previous close, or current close = previous open |
0 | Anything else, including two bodies that match at both ends |
Only real bodies count. Wicks are ignored, so a candle can engulf the previous body while staying inside its high and low, like 30 May. There is no minimum size: a one-cent body can be engulfed. And because a candle with close equal to open counts as bullish, a flat candle can be the first half of a bearish engulfing but never of a bullish one. We checked the live output against this rule on 2,400 candles across BTC, ETH, SOL and XRP on Binance and Bybit, and AAPL, SPY and TSLA, on timeframes from 1 hour to 1 day, with no differences.
How to read Engulfing in your code
| Signal | Meaning | Condition |
|---|---|---|
| Bullish engulfing | A green body covered the previous red body | value > 0 |
| Bearish engulfing | A red body covered the previous green body | value < 0 |
| None | No engulfing on this candle | value equals 0 |
| Stronger setup | Control changed hands after a real move | Non-zero, after a move the other way, on above-average volume, closing beyond the previous high or low |
Mind the newest candle. Without backtrack, the last value belongs to the candle that is still forming. Its open is fixed but its close is just the latest price, so an engulfing can appear and disappear several times before the candle closes. Use backtrack=1 to read only closed candles.
Limitations: Engulfings are frequent. The API flagged 17% of the 2,400 candles we checked, about one in six. The pattern looks at two candles and knows nothing about trend, levels or volume, and on its own it predicted the next five candles no better than chance in our sample. On crypto, 100 versus 80 often comes down to a one-cent difference between an open and the previous close, so don't read it as a strength score. Each value needs the candle before it. Nothing on this page is financial advice.
Detect a filtered Engulfing with Python
This checks the last closed candle for an engulfing and then applies the three filters from the example: a move into the signal, above-average volume and a close beyond the previous candle's range. backtrack=1 on both requests keeps the forming candle out, and the two responses line up candle for candle.
curl -G https://v2.taapi.io/indicator/engulfing \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1d" \ --data-urlencode "backtrack=1"
import requests
API = 'https://v2.taapi.io'
HEADERS = {'Authorization': 'Bearer YOUR_API_KEY'}
market = {'exchange': 'binance', 'symbol': 'BTCUSDT', 'timeframe': '1d', 'backtrack': 1}
# The last closed candle: positive = bullish, negative = bearish, 0 = none
signal = requests.get(f'{API}/indicator/engulfing', headers=HEADERS,
params=market).json()['value'][-1]
# The same candle plus the 21 before it, oldest first
candles = requests.get(f'{API}/candles', headers=HEADERS,
params={**market, 'results': 22}).json()
if signal == 0:
print('No engulfing on the last closed candle')
else:
side = 1 if signal > 0 else -1
cur, prev = candles[-1], candles[-2]
avg_volume = sum(c['volume'] for c in candles[-21:-1]) / 20
# Price moved against the signal over the 3 candles before it
move_into_it = (prev['close'] - candles[-5]['close']) * side < 0
heavy_volume = cur['volume'] > 1.2 * avg_volume
decisive = cur['close'] > prev['high'] if side > 0 else cur['close'] < prev['low']
name = 'Bullish' if side > 0 else 'Bearish'
if move_into_it and heavy_volume and decisive:
print(f'{name} engulfing with all three filters')
else:
print(f'{name} engulfing, but weak:',
f'move={move_into_it} volume={heavy_volume} close={decisive}')Want a level instead of a volume filter? Request support and resistance in the same bulk call and only act on a bullish engulfing whose low is near a support level, or a bearish one whose high is near resistance.
Get historical Engulfing values
Add results to return a series for backtesting or charting. The last element is the most recent candle. Fetch the same number of candles to draw them: the timestamps match.
curl -G https://v2.taapi.io/indicator/engulfing \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h" \ --data-urlencode "results=100"
Get Engulfing for multiple symbols
Combine Engulfing with other indicators in one request. Each exchange, symbol and timeframe combination is one construct: Basic allows 1 per request, Pro 3 and Expert 10.
curl -X POST https://v2.taapi.io/bulk \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"constructs": [
{
"id": "btc_1h",
"exchange": "binance",
"symbol": "BTCUSDT",
"timeframe": "1h",
"indicators": [
{
"id": "engulfing",
"indicator": "engulfing"
},
{
"id": "rsi",
"indicator": "rsi"
}
]
}
]
}'Stream Engulfing in real time
Subscribe over WebSocket to receive new values every 5 seconds while the candle is forming. Streaming supports 1m, 5m, 15m and 1h, and uses interval where REST uses timeframe. Streamed values are for the forming candle, so they can flip until it closes.
{
"type": "subscribe",
"id": "engulfing",
"exchange": "binance",
"symbol": "BTCUSDT",
"interval": "1m",
"indicator": "engulfing"
}Engulfing API FAQ
What does the Engulfing API return?
Two arrays: value, positive for a bullish engulfing, negative for a bearish one and 0 for none, and timestamp, the open time of each candle. The value belongs to the second, engulfing candle. Results are JSON.
What is the difference between 100 and 80?
±100 means the engulfing body extends past the previous body at both ends. ±80 means the two bodies match exactly at one end, usually because the candle opened at the previous close. Crypto candles almost always do, so most crypto engulfings are ±80. It is not a strength score: check the sign, not the exact number.
Do the wicks have to be engulfed too?
No. Only the real bodies, from open to close, are compared. If you want the stricter version, check in your code that the engulfing candle also closes above the previous high (bullish) or below the previous low (bearish), as in the Python example.
Does the API check for a prior trend?
No. It flags the two-candle shape wherever it appears, including in sideways markets where it means little. Add a trend, level or momentum check yourself, for example with EMA, RSI or support and resistance.
Why did an engulfing disappear?
It was on the candle that was still forming. Until the candle closes its close keeps moving, and so does the result. Add backtrack=1 to check only closed candles.
Can I get Engulfing for US stocks?
Yes. Use exchange=stocks with a ticker such as AAPL. US stocks are included on the Pro plan and above. Stocks gap between sessions, so more of their engulfings score ±100.
Related indicators
- Three Outside Up/Down: an engulfing confirmed by a third candle
- Harami Pattern: the reverse shape, a small body inside the previous one
- Piercing Pattern
- Dark Cloud Cover
- Doji
See the full list of indicators, or start for free.