Indicators›Chart patterns›Ascending Triangle
GET/indicator/triangleascending

Ascending Triangle

Category: Chart patterns · Updated November 2026


The TAAPI.IO Ascending Triangle API finds the bullish Ascending Triangle: two or more swing highs at the same price, with each pullback between them stopping higher than the last. The highs form a flat resistance line and the lows a rising support line. When price closes above the resistance, the pattern is confirmed. 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: every swing in the pattern, highs and lows in order (pattern_pivot_timestamps, pattern_pivot_prices), so you can draw it.
  • The two lines: the flat resistance (resistance_level) and the rising support from the first low (support_left_*) to where the pattern ended (support_right_*).
  • The breakout and target: the candle that closed above resistance, its close, and projection_price, one pattern height above resistance.
  • 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. The bearish mirror, flat support under falling highs, is the Descending Triangle.

How an Ascending Triangle forms Two highs at the same price form flat resistance. Two higher lows form a rising support line. The lines meet at the apex. A close above resistance confirms the pattern; two closes below support invalidate it. H1 H2 L1 L2 Breakout: first close above the level Apex Flat resistance the highest of the highs Rising support L1 → L2, extended to the apex 2 closes below it: invalidated
The anatomy of the pattern with the default touches=2: two highs (H1, H2) and two higher lows (L1, L2). The solid lines are the pattern itself; the dashed parts are the lines extended until they meet at the apex.

Example: ETHUSDT, July to August 2026

Request: ETHUSDT on daily Binance candles with the default settings. This is the latest ascending triangle it found on 12 November 2026.

PointPriceDate (UTC)What it is
First high1,981.2427 JulA new swing high in the uptrend. The highest high, so it sets resistance
First low1,822.061 AugThe pullback low. The support line starts here
Second high1,943.027 Aug38.22 below the first, 0.63 ATR, so the two count as one level
Higher low1,853.6211 Aug31.56 above the first low: buyers stepped in earlier
Breakout2,252.8019 AugFirst daily close above 1,981.24
Target2,140.42—Resistance + (resistance − first low) = 1,981.24 + 159.18

How to interpret this: Ether ran up to 1,981 on 27 July, pulled back to 1,822, rallied to 1,943 and pulled back again, this time only to 1,854. Sellers were defending the same zone near 1,950–1,980, but each dip was bought higher, so price was being squeezed into the gap between a ceiling and a rising floor. The second low is a swing only once 5 more candles have printed, so the pattern appeared on 16 August as forming. Three days later a single daily candle jumped from 1,918 to close at 2,253, well above resistance, and the API marked it confirmed. That close was already past the 2,140 target. Two days later ETH traded at 2,547.

ETHUSDT daily candles with the Ascending Triangle returned for July to August 2026 Flat resistance at 1,981.24 across the highs of 27 July and 7 August. Rising support from the 1 August low of 1,822.06 to the 11 August low of 1,853.62. On 19 August a daily candle closed at 2,252.80, above resistance. The target of 2,140.42 is one pattern height above resistance. 1,800 1,900 2,000 2,100 2,200 2,300 2,400 2,500 21 Jul 28 Jul 4 Aug 11 Aug 18 Aug First high 1,981 Second high 1,943 Low 1,822 Higher low 1,854 Same height, 159 Breakout close 2,253 1,981 Resistance 2,140 Target ETHUSDT · daily candles · Binance · 21 Jul – 22 Aug 2026
Red: the flat resistance at the highest high and the path through the four swings. Green: the rising support from the first low, drawn up to the breakout candle, and the breakout close. The dashed brackets show the pattern height at the first low and the same height above resistance, where the dotted target line sits.

The same two highs, 1,981.24 and 1,943.02, also made a double top with a neckline at 1,822.06. That one was invalidated: price never broke the neckline. The rising lows were the clue that buyers, not sellers, were in control. Example for illustration only, not financial advice.

SpecValue
EndpointGET https://v2.taapi.io/indicator/triangleascending
Outputspattern_pivot_prices, resistance_level, support_left_price, 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 Ascending Triangle with one API call

This request returns Ascending Triangle for BTCUSDT on 1-hour Binance candles. Add your API key to run it here.

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

Ascending Triangle API response

Example for ETHUSDT on daily Binance candles: the pattern charted above, from a default request on 12 November 2026.

200 OK
{
  "pattern_pivot_timestamps": [[1785110400, 1785542400, 1786060800, 1786406400]],
  "pattern_pivot_prices": [[1981.24, 1822.06, 1943.02, 1853.62]],
  "resistance_level": [1981.24],
  "resistance_right_timestamp": [1787097600],
  "support_left_timestamp": [1785542400],
  "support_left_price": [1822.06],
  "support_right_timestamp": [1787097600],
  "support_right_price": [1878.868],
  "breakout_occurred": [true],
  "is_confirmed": [true],
  "breakout_timestamp": [1787097600],
  "breakout_price": [2252.8],
  "breakout_resistance_price": [1981.24],
  "projection_price": [2140.42],
  "direction": ["bullish"],
  "status": ["confirmed"],
  "status_reason": ["breakout_above_resistance"],
  "pattern_index": [6],
  "timestamp": [1794441600]
}

Reading this response

  • pattern_pivot_prices lists the swings in time order: high, low, high, low. The highs are at even positions (0, 2, …), the lows at odd positions.
  • resistance_level is the highest of the highs, 1,981.24: the wick high of 27 July. That candle's body ended at 1,954.72; with source=body the level would sit there instead.
  • The support line runs from support_left_price, the first low (1,822.06 on 1 August), through the last low, 1,853.62 on 11 August. It rises 3.16 a day, so on the breakout candle it was at support_right_price, 1,878.87.
  • The breakout close, 2,252.80, is above resistance, so status is confirmed, and both right timestamps are the breakout candle.
  • projection_price = 1,981.24 + (1,981.24 − 1,822.06) = 2,140.42.
  • pattern_index 6 means it is the sixth ascending triangle in the ETH daily candles the API looked at; results=max returns all six.
FieldTypeDescription
pattern_pivot_timestampsinteger[][]Unix time, in seconds, of each swing in the pattern, oldest first: H1, L1, H2, L2, … With touches=3 there are six
pattern_pivot_pricesnumber[][]The price of each of those swings: wick highs and lows, or bodies with source=body
resistance_levelnumber[]The flat resistance: the highest of the highs. The breakout is tested against this level
resistance_right_timestampinteger[]Where to stop drawing resistance: the breakout candle, the candle that invalidated the pattern, or the apex while forming (which can be in the future)
support_left_timestamp, support_left_priceinteger[], number[]Start of the rising support line: the first low (L1)
support_right_timestamp, support_right_priceinteger[], number[]End of the support line, at the same time as resistance_right_timestamp, and the line's price there
breakout_occurred, is_confirmedboolean[]true once a candle closed above resistance
breakout_timestamp(integer or null)[]Unix time of that candle
breakout_price(number or null)[]Its close. Always above resistance_level
breakout_resistance_price(number or null)[]The level the breakout closed above, the same as resistance_level. Set only when confirmed
projection_price(number or null)[]Target: resistance_level + (resistance_level − support_left_price). Set only when confirmed
directionstring[]Always bullish
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 used

To draw the pattern: a horizontal line at resistance_level from the first timestamp to resistance_right_timestamp, and a straight line from (support_left_timestamp, support_left_price) to (support_right_timestamp, support_right_price). The support line passes exactly through the last low.

Status and status_reason

statusstatus_reasonMeaning
formingawaiting_breakoutThe last low is in place and price is still between the two lines
confirmedbreakout_above_resistanceA candle closed above resistance. A wick above is not enough. Confirmation is permanent: what price does afterwards does not change it
invalidatedsupport_brokenBefore any breakout, 2 candles in a row closed below the rising support line (invalidationCloses)
invalidatedapex_reached_no_breakoutThe support line rose to the resistance level, the apex, and price never closed above it

The API checks each candle after the last low in order, and the first event decides. Once decided, the status stays the same as new candles arrive, even when a later swing changes how the chart would be drawn. A forming pattern can still be redrawn: if price makes a new low below the last low without a swing high in between, that low becomes the last low, the support line moves, and the pattern may stop qualifying.

The default results=1 returns only the last pattern, 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 bullish patterns, use Advanced Bullish Patterns, which leaves invalidated ones out.

Ascending Triangle 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 high must be the highest of 5 candles on each side, and appears 5 candles late. Raise it for larger, slower patterns. Overrides lookback and lookforward
lookbackintegerNo5Candles before a swing that it must beat. Use instead of depth to set the two sides separately
lookforwardintegerNo5Candles after a swing that it must beat. Also how many candles late the pattern appears
deviationATRnumberNo1Minimum move between two swings, in multiples of ATR (or percent with deviationType=percent). Smaller swings are merged. 0 turns the filter off
deviationTypestringNoatratr or percent, the unit of deviationATR
sourcestringNowickwick uses highs and lows for the swings and both lines; body uses open and close
heikinashibooleanNofalseDetect 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
atrPeriodintegerNo14Period of the ATR that the thresholds are measured in
touchesintegerNo2How many highs and how many lows the pattern has. 2 means H1, L1, H2, L2; 3 adds a third high and a third low. Minimum 2
topToleranceATRnumberNo0.75Largest allowed gap between the highest and the lowest of the highs, in ATR. Smaller means a flatter top
minAscentATRnumberNo0Minimum rise from each low to the next, in ATR. Raise it to skip triangles whose lows barely rise
invalidationClosesintegerNo2Closes in a row below the support line that invalidate the pattern
resultsintegerNo1Number of patterns to return, or max
backtrackintegerNo0Candles to skip from the most recent

What is the Ascending Triangle?

The Ascending Triangle is a bullish pattern that usually forms during an uptrend, as a pause before the next leg up. Sellers keep defending one price, so the rallies stall at the same level. Buyers keep stepping in earlier, so each pullback ends higher than the last. The range between the flat ceiling and the rising floor shrinks until one side gives way. The supply at the ceiling usually gets used up first, and price closes above it.

How traders use it

Most traders wait for a close above resistance rather than buying inside the triangle, because many triangles break down instead. On the break they buy, put a stop under the last higher low, and aim for the measured move: the height of the triangle at its widest point, added to the breakout level. Some wait for price to come back and retest the old resistance from above. A triangle that forms after a clear uptrend, with several clean touches, means more than one in a choppy range.

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. Each swing is on its own candle
Sequence2 × touches swings in a row, starting with a high: H1, L1, H2, L2, …
UptrendH1 is a higher high, and the low just before it is a higher low
Flat topThe highest and the lowest of the highs within 0.75 ATR of each other. Resistance is the highest
Rising lowsEach low strictly above the one before (by at least minAscentATR × ATR), and the last low below resistance
Support lineA straight line from the first low through the last low
IntactFrom H1 to the last low, no candle closes above resistance, and from L1 on, none closes below the support line
BreakoutThe first close above resistance after the last low, before the pattern is invalidated
Invalidation2 closes in a row below the support line, or the support line reaching resistance (the apex)
TargetResistance + (resistance − first low)

The ATR is measured at the swing being tested, so the same defaults work on a 1-minute chart and a weekly one. The numbers in the table are the defaults; each has a parameter above. The same level and line are used to find the pattern, to decide its status and in the response, so a reported breakout always closed above the reported resistance_level.

How to read Ascending Triangle in your code

SignalMeaningCondition
BreakoutPrice closed above resistancestatus is confirmed
Fresh signalBreakout on the latest candlesbreakout_timestamp is close to timestamp
Setup to watchPrice squeezed between the linesstatus is forming; watch for a close above resistance_level
TargetMeasured moveprojection_price
StopWhere the pattern is clearly wrongBelow the last low, the last value in pattern_pivot_prices
Failed setupPattern no longer validstatus is invalidated; see status_reason

Act on a fresh Ascending Triangle breakout with Python

This reads the latest pattern as of the last closed daily candle (backtrack=1) and only acts on a breakout from the last few candles. It uses projection_price as the target and the last higher low as the stop.

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

Why the age check: the last low is only known depth/2 candles after it prints, so a fast breakout can already be a few candles old the first time you see the pattern. In the ETH example above the pattern was visible three days before the break. Decide how late is too late for your strategy.

A pattern that worked and one that failed

Two confirmed patterns from the default settings, both on ETH daily candles.

ETHUSDT 1d, Jul–Aug 2026ETHUSDT 1d, May–Jun 2025
Highs1,981.24 / 1,943.022,738.50 / 2,788.00
Lows1,822.06 / 1,853.622,323.21 / 2,381.49
Resistance1,981.242,788.00
Breakout close2,252.80 (19 Aug)2,816.40 (10 Jun)
Target2,140.423,252.79
What followedClosed past the target on the breakout day; 2,547 two days later2,879 the next day, but closed back below resistance the same day; below the last low (2,381.49) on 20 Jun

The 2026 breakout came on one wide candle that cleared resistance by 271. The 2025 one cleared it by 28, a single daily close 1% above the level, and never got going: the next day traded up to 2,879, the top, and closed back under resistance. Price drifted down inside the triangle, and on 20 June it fell through the last higher low, where a stop would have closed the trade at a loss.

A third pattern never broke out. On BTCUSDT 1d in May–June 2025, the highs were 111,980 and 110,530.17 and the lows 100,372.26 and 102,664.31. Price drifted along the support line, then closed below it on 20 and 21 June, and the API marked the pattern invalidated with support_broken. It did not keep falling: BTC bottomed at 98,200 the next day and was back above 107,000 by 25 June. An invalidated bullish pattern is not a short signal.

How often the target is reached: across BTC, ETH and SOL at 1h, 4h and 1d (2,000 candles each, default settings), the API found 21 ascending triangles. 8 were confirmed and 13 were invalidated by a break of support; none reached the apex and none were still forming. Of the 8 confirmed, 5 reached their target before price fell below the last low; 3 did not. That is a small sample that ignores costs and slippage. Treat the target as a reference level, not a promise.

Examples for illustration only, not financial advice.

Limitations:

  • Swings need depth/2 candles to confirm, so the last low, and sometimes the breakout, appear with a delay.
  • Resistance is the highest wick of the highs, so the breakout needs a close above every high in the pattern. A close above the other high, but below the highest wick, does not count. Use source=body if you draw levels through candle bodies.
  • The default 0.75 ATR tolerance is generous on daily candles, where it can mean highs a few percent apart. Lower topToleranceATR for flatter tops.
  • The first high must be a new higher high after a higher low. A triangle that starts below an earlier spike is not found.
  • The apex is the only time limit. A triangle with a very shallow support line can stay forming for a long time; check how old pattern_pivot_timestamps is.
  • A forming pattern can be redrawn or disappear when price makes a new low below the last low. confirmed and invalidated patterns stay as they are.
  • 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.

Get historical Ascending Triangle values

Add results to return a series for backtesting or charting. The last element is the most recent candle.

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

Get Ascending Triangle for multiple symbols

Combine Ascending Triangle 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": "triangleascending",
          "indicator": "triangleascending"
        },
        {
          "id": "rsi",
          "indicator": "rsi"
        }
      ]
    }
  ]
}'

Stream Ascending Triangle 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": "triangleascending",
  "exchange": "binance",
  "symbol": "BTCUSDT",
  "interval": "1m",
  "indicator": "triangleascending"
}

Ascending Triangle API FAQ

What does the Ascending Triangle API return?

For each pattern: the swings that make it up, the flat resistance level, the rising support line, 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 above the resistance level after the last low, before the pattern has been invalidated. A wick above is not enough. Once confirmed, the status does not change. Add backtrack=1 to ignore the candle that is still forming.

How is the target calculated?

Take the height of the triangle at its widest point, from resistance down to the first low (resistance_level − support_left_price), and add it to resistance. The result is projection_price.

How flat does the top have to be?

The highest and the lowest of the highs must be within 0.75 ATR of each other by default, measured at the last high. Change it with topToleranceATR. Resistance is drawn at the highest of them.

Can I require more touches?

Yes. touches=3 asks for three highs and three lows. No candle may close below the line from the first low to the last, so an inner low that dips under it rules the pattern out. You get fewer, cleaner patterns.

Why did I get an invalidated pattern?

The default returns the most recent pattern, whatever its status, and most triangles in our tests failed: 13 of 21 broke support first. Add results=max and keep the ones with status confirmed or forming.

Can I get Ascending Triangle 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.