GET/indicator/engulfing

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: 100 or 80 for a bullish engulfing, -100 or -80 for a bearish one, 0 otherwise. 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)valuePrevious bodyEngulfing bodyVolume vs 20-day avgNext
26 May 2026-80257, up1,392, down1.29×−19.6% in 10 days
30 May 202680157, down424, up0.54×−13.2% in 4 days
7 Jun 202680172, down2,447, up1.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.

BTCUSDT daily candles from 18 May to 5 July 2026 with the bullish and bearish engulfings the API flagged Bitcoin fell from about 78,000 to 59,100 between late May and 5 June 2026, bounced to 67,292 on 15 June, then fell back to about 58,000 and recovered to 63,650 by 5 July. The API flagged bullish engulfings on 20 May, 30 May, 7 June, 11 June, 13 June and 29 June, and bearish engulfings on 22 May, 26 May, 16 June, 21 June and 23 June. The 26 May bearish engulfing formed under resistance at 78,000 on above-average volume and was followed by a 19.6 percent fall in ten days. The 30 May bullish engulfing formed on low weekend volume and closed under the previous high; price fell 13 percent in the next four days. The 7 June bullish engulfing swallowed the 6 June doji on high volume and closed above its high; price rose to 67,292 by 15 June. The 16 June bearish engulfing formed under the 2 June breakdown level and price fell 9 percent by 25 June. 60,000 63,000 66,000 69,000 72,000 75,000 78,000 18 May 25 May 1 Jun 8 Jun 15 Jun 22 Jun 29 Jun 26 May bearish engulfing under 78,000 resistance, 1.29× volume → −19.6% in 10 days 30 May bullish engulfing failed: 0.54× volume, close under the prior high → −13% in 4 days 7 Jun bullish engulfing worked: engulfed the 6 Jun doji on 1.37× volume, closed above its high → 67,292 by 15 Jun 16 Jun bearish engulfing under the 2 Jun breakdown level → −9% by 25 Jun BTCUSDT · daily candles · Binance · 18 May – 5 Jul 2026 · green = value > 0, red = value < 0
Green bands and triangles mark candles where 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 engulfing7 June engulfing
Change over the 8 days before−5.4%−17.1%
RSI(14) of the candle before35.415.5, deeply oversold
Engulfing body vs ATR(14)0.22 ATR, a small candle0.95 ATR, a full-size candle
Volume vs 20-day average0.54×, a quiet Saturday1.37×
Close vs the previous candle's high630 below it1,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.

SpecValue
EndpointGET https://v2.taapi.io/indicator/engulfing
Outputsvalue (100, 80, 0, -80 or -100) and timestamp
RuleOpposite colours, and the second real body covers the first; ±80 when the bodies share an edge
MarketsBinance, Binance Futures, Bybit, Gate.io, Kraken and US stocks
Timeframes1m to 1w
DeliveryREST, 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"

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.

200 OK
{
  "value": [0, 0, -100, 0, 0, 0, 0, 0, 0, 0],
  "timestamp": [1794448800, 1794452400, 1794456000, 1794459600, 1794463200, 1794466800, 1794470400, 1794474000, 1794477600, 1794481200]
}
FieldTypeDescription
valueinteger[]100 or 80 for a bullish engulfing, -100 or -80 for a bearish one, 0 for none. Oldest first
timestampinteger[]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.

NameTypeRequiredDefaultDescription
exchangestringYes—binance, binancefutures, bybit, gateio, kraken or stocks
symbolstringYes—Pair or ticker, e.g. BTCUSDT or AAPL
timeframestringYes—1m 5m 15m 1h 4h 1d 1w
resultsintegerNo1Number of values to return, or max
backtrackintegerNo0Candles 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

StepRule
ColourA candle is bullish when close ≥ open and bearish when close < open. A candle with close equal to open counts as bullish
Bullish engulfingPrevious candle bearish, current candle bullish, current close ≥ previous open and current open ≤ previous close, with at least one of the two strictly beyond
Bearish engulfingPrevious candle bullish, current candle bearish, current open ≥ previous close and current close ≤ previous open, with at least one of the two strictly beyond
±100The current body extends past the previous body at both ends
±80The bodies match exactly at one end: current open = previous close, or current close = previous open
0Anything 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

SignalMeaningCondition
Bullish engulfingA green body covered the previous red bodyvalue > 0
Bearish engulfingA red body covered the previous green bodyvalue < 0
NoneNo engulfing on this candlevalue equals 0
Stronger setupControl changed hands after a real moveNon-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"

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.

POST/bulk
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.

WSSwss://v2.taapi.io/streaming
{
  "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.

See the full list of indicators, or start for free.