Indicators›Chart patterns›Inverse Cup and Handle
GET/indicator/cupandhandleinverse

Inverse Cup and Handle

Category: Chart patterns · Updated November 2026


The TAAPI.IO Inverse Cup and Handle API finds the bearish Inverse Cup and Handle: a rounded top where price rises from a floor, peaks and falls back to the same floor, bounces a little (the handle), and then closes below that floor. It works on crypto pairs and US stocks. Send an exchange, symbol and timeframe, with no candles to download and no pattern logic to maintain.

What one request returns

  • The shape: the left and right rims (l1_*, l2_*), the cup top (hmax_*), the handle top (handle_high_*) and every swing in between (cup_pivot_*), so you can draw the pattern.
  • The neckline: neckline_level, the floor that has to break.
  • The breakout and target: the candle that closed below the neckline, its close, and projection_price, the neckline minus the height of the cup.
  • The status: forming, confirmed or invalidated, with a status_reason that says why.

The default returns the most recent pattern. Add results=max to get every pattern found in the candles, oldest first.

Example: ETHUSDT on 12 November 2026

Request: ETHUSDT on 4-hour Binance candles with the default settings. Taken at 09:10 UTC.

PointPriceTime (UTC)What it is
Left rim2,318.0015 Oct 00:00Swing low where the dome starts
Cup top2,526.6221 Oct 16:00Highest high between the rims
Right rim2,282.4624 Oct 12:00Swing low where the dome ends, within about one ATR of the left rim
Handle top2,371.5228 Oct 20:00Bounce after the right rim, well below the cup top
Neckline2,282.46—The lower of the two rims
Breakout2,253.1329 Oct 20:00First 4-hour close below the neckline
Target2,038.30—Neckline − (cup top − neckline) = 2,282.46 − 244.16

How to interpret this: ETH climbed from 2,318 in mid-October to 2,526 on 21 October and gave it all back by 24 October, ending a little lower at 2,282. Buyers then tried once more, but the bounce stalled at 2,371, less than halfway back up the dome. On 29 October a 4-hour candle closed at 2,253, below the 2,282 floor, and the API marked the pattern confirmed. The measured move takes the height of the dome, 244, and subtracts it from the neckline, which gives 2,038. ETH reached it on 10 November, with a low of 2,006, and is trading near it now.

ETHUSDT 12-hour candles with the Inverse Cup and Handle returned on 12 November 2026 A dome from the left rim at 2318.00 on 15 October to the cup top at 2526.62 on 21 October and back to the right rim at 2282.46 on 24 October. The handle bounced to 2371.52, then a 4-hour candle closed at 2253.13 below the 2282.46 neckline on 29 October. The target of 2038.30 was reached on 10 November with a low of 2006. 2,000 2,100 2,200 2,300 2,400 2,500 2,600 8 Oct 15 Oct 22 Oct 29 Oct 5 Nov 12 Nov Cup height 244.16 Same height Left rim 2318.00 Cup top 2526.62 Right rim 2282.46 Handle 2371.52 Breakout close 2253.13 2282.46 Neckline 2038.30 Target 2045.12 Price now 10 Nov low 2006 reached the target ETHUSDT · 12-hour candles · pattern from timeframe=4h on Binance · 12 Nov 2026
The shaded area is the dome, from rim to rim. The red line through the swings is cup_pivot_prices followed by the handle. The solid line is the neckline up to the breakout, and the lower dashed line is the target, one cup height below it.

Candles are combined into 12-hour bars to keep the chart readable; the pattern itself comes from 4-hour candles. Price reaching the target here does not mean it always will. Example for illustration only, not financial advice.

SpecValue
EndpointGET https://v2.taapi.io/indicator/cupandhandleinverse
Outputsl1_price, hmax_price, l2_price, handle_high_price, neckline_level, breakout_price, projection_price, status, status_reason and more
MarketsBinance, Binance Futures, Bybit, Gate.io, Kraken and US stocks
Timeframes1m to 1w
DeliveryREST, bulk and WebSocket

Get Inverse Cup and Handle with one API call

This request returns Inverse Cup and Handle for BTCUSDT on 1-hour Binance candles. Add your API key to run it here.

curl -G https://v2.taapi.io/indicator/cupandhandleinverse \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "exchange=binance" \
  --data-urlencode "symbol=BTCUSDT" \
  --data-urlencode "timeframe=1h"

Inverse Cup and Handle API response

Example for ETHUSDT on 4-hour Binance candles: the pattern charted above, from the live API on 12 November 2026.

200 OK
{
  "l1_timestamp": [1792022400],
  "l1_price": [2318],
  "hmax_timestamp": [1792598400],
  "hmax_price": [2526.62],
  "l2_timestamp": [1792843200],
  "l2_price": [2282.46],
  "handle_high_timestamp": [1793217600],
  "handle_high_price": [2371.52],
  "cup_pivot_timestamps": [[1792022400, 1792137600, 1792339200, 1792396800, 1792454400, 1792598400, 1792684800, 1792756800, 1792843200]],
  "cup_pivot_prices": [[2318, 2477.77, 2329, 2430.87, 2372.62, 2512.54, 2360.32, 2407.85, 2282.46]],
  "neckline_level": [2282.46],
  "neckline_right_timestamp": [1793304000],
  "breakout_occurred": [true],
  "is_confirmed": [true],
  "breakout_timestamp": [1793304000],
  "breakout_price": [2253.13],
  "breakout_neckline_price": [2282.46],
  "projection_price": [2038.3000000000002],
  "direction": ["bearish"],
  "status": ["confirmed"],
  "status_reason": ["breakout_below_neckline"],
  "pattern_index": [13],
  "timestamp": [1794470400]
}
FieldTypeDescription
l1_timestampinteger[]Unix time of the left rim, in seconds
l1_pricenumber[]Left rim: the swing low where the dome starts
hmax_timestampinteger[]Unix time of the cup top
hmax_pricenumber[]Cup top: the highest high between the rims
l2_timestampinteger[]Unix time of the right rim
l2_pricenumber[]Right rim: the swing low where the dome ends
handle_high_timestamp(integer or null)[]Unix time of the handle top, or null if there is no handle yet or it bounced more than half the cup height
handle_high_price(number or null)[]Highest candle body of the bounce after the right rim, before the breakout
cup_pivot_timestampsinteger[][]Times of every swing from the left rim to the right rim, for drawing the dome
cup_pivot_pricesnumber[][]Prices of those swings: wick lows and body highs
neckline_levelnumber[]The lower of the two rim lows. A close below it confirms the pattern
neckline_right_timestampinteger[]Where to end the neckline when drawing: the breakout candle, or the end of the breakout window
breakout_occurredboolean[]A candle closed below the neckline
is_confirmedboolean[]Same as breakout_occurred
breakout_timestamp(integer or null)[]Unix time of the first close below the neckline
breakout_price(number or null)[]Close of that candle
breakout_neckline_price(number or null)[]Neckline level at the breakout (the neckline is flat)
projection_price(number or null)[]Target: neckline − (cup top − neckline). Set only when confirmed
directionstring[]Always bearish
statusstring[]forming, confirmed or invalidated
status_reasonstring[]Why the pattern has that status; see the table below
pattern_indexinteger[]Position of the pattern in the full list, oldest first
timestampinteger[]Unix time of the latest candle

Status and status_reason

statusstatus_reasonMeaning
formingawaiting_breakoutThe dome is complete and price has not closed below the neckline yet
confirmedbreakout_below_necklineA candle closed below the neckline. Confirmation is permanent
invalidatedhandle_broke_cupBefore any breakout, the handle rose to the cup top
invalidatedbullish_structure_resumedBefore any breakout, the handle made a higher high than an earlier handle high: buyers took over again
invalidatedbreakout_timeoutNo close below the neckline within 60 candles of the right rim

The default results=1 returns only the last pattern in the list, which can be invalidated. Add results=max to get every pattern and filter on status. The response is empty when no pattern is found in the candles, so handle that case in your code. To get only valid patterns merged with other bearish patterns, use Advanced Bearish Patterns, which leaves invalidated ones out.

Inverse Cup and Handle API parameters

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
depthintegerNo10Width of the window that confirms a swing: half the candles before it, half after. With 10, a swing low must be the lowest of 5 candles on each side, and appears 5 candles late. Raise it for larger, slower patterns
deviationATRnumberNo1Minimum retracement required to form a valid structural swing, expressed as a multiple of ATR.
deviationTypestringNoatrType of deviation filter to use: 'atr' (Average True Range) or 'percent'.
sourcestringNowickWhether to use 'wick' (high/low) or 'body' (open/close) prices for pivot detection.
heikinashibooleanNoFalseSet to true to detect the pattern on smoothed Heikin-Ashi candles instead of real candles. Fewer small swings, but breakouts confirm later and may not match a normal chart.
atrPeriodintegerNo14The lookback period used for the Average True Range (ATR) calculation if deviationType is 'atr'.
resultsintegerNo1Number of values to return, or max
backtrackintegerNo0Candles to skip from the most recent

What is the Inverse Cup and Handle?

The Inverse Cup and Handle is the bearish mirror of the Cup and Handle. Price rises from a floor in a rounded arc, tops out, and returns to about the same floor. A short, shallow bounce follows: the handle. When price then closes below the floor, the pattern is complete, and traders often project a move down equal to the height of the dome.

How the API finds it

PartRule
SwingsSwing highs and lows confirmed by depth, kept only if they move at least deviationATR × ATR from the previous swing
RimsTwo swing lows within about 2 ATR of each other
Cup topThe highest swing high between the rims, at least 2 ATR above the neckline
ShapeAt least 2 swings and 10 candles on each side of the cup top, and no swing low between the rims below the neckline, so a V or an M does not count
NecklineThe lower of the two rim lows
HandleThe highest swing high after the right rim and before the breakout, with its candle body below the cup top
BreakoutThe first close below the neckline within 60 candles of the right rim
TargetNeckline − (cup top − neckline)

When several left rims give the same cup top, the API keeps one pattern for it: a valid one before an invalidated one, then the widest.

How to read Inverse Cup and Handle in your code

SignalMeaningCondition
BreakdownPrice closed below the necklinestatus is confirmed
Setup to watchDome complete, waiting for the breakstatus is forming; watch for a close below neckline_level
TargetMeasured moveprojection_price
Fresh signalBreakout on the latest candlesbreakout_timestamp is close to timestamp
Failed setupPattern no longer validstatus is invalidated; see status_reason

Limitations: Swings need depth/2 candles to confirm, so the right rim and handle appear with a delay. Patterns run on real candles; add heikinashi=true for smoothed candles, which find fewer small swings but confirm breakouts later. A confirmed pattern is not a guaranteed move. Nothing on this page is financial advice.

Read Inverse Cup and Handle from Python

Use backtrack=1 to read the result as of the last closed candle.

curl -G https://v2.taapi.io/indicator/cupandhandleinverse \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "exchange=binance" \
  --data-urlencode "symbol=BTCUSDT" \
  --data-urlencode "timeframe=1h" \
  --data-urlencode "backtrack=1"

Get historical Inverse Cup and Handle values

Add results=max to return every pattern in the candles for backtesting or charting. Patterns are listed oldest first, so the last element is the most recent.

curl -G https://v2.taapi.io/indicator/cupandhandleinverse \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "exchange=binance" \
  --data-urlencode "symbol=BTCUSDT" \
  --data-urlencode "timeframe=1h" \
  --data-urlencode "results=100"

Get Inverse Cup and Handle for multiple symbols

Combine Inverse Cup and Handle 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": "cupandhandleinverse",
          "indicator": "cupandhandleinverse"
        },
        {
          "id": "rsi",
          "indicator": "rsi"
        }
      ]
    }
  ]
}'

Stream Inverse Cup and Handle 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.

WSSwss://v2.taapi.io/streaming
{
  "type": "subscribe",
  "id": "cupandhandleinverse",
  "exchange": "binance",
  "symbol": "BTCUSDT",
  "interval": "1m",
  "indicator": "cupandhandleinverse"
}

Inverse Cup and Handle API FAQ

What does the Inverse Cup and Handle API return?

For each pattern: the rims, the cup top, the handle top and the swings between them, the neckline, the breakout candle and close, the target, and the status with its reason. The default returns the most recent pattern; results=max returns all of them. Results are JSON.

When is a pattern confirmed?

When a candle closes below neckline_level after the right rim. A wick below is not enough. Once confirmed, the status does not change. Add backtrack=1 to ignore the candle that is still forming.

Which Inverse Cup and Handle settings can I change?

You can set depth, deviationATR, deviationType, source, heikinashi and atrPeriod. See the parameters table above for defaults.

Can I get Inverse Cup and Handle for US stocks?

Yes. Use exchange=stocks with a ticker such as AAPL. US stocks are included on the Pro plan and above.

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