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,confirmedorinvalidated, with astatus_reasonthat 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.
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.
| Point | Price | Date (UTC) | What it is |
|---|---|---|---|
| First high | 1,981.24 | 27 Jul | A new swing high in the uptrend. The highest high, so it sets resistance |
| First low | 1,822.06 | 1 Aug | The pullback low. The support line starts here |
| Second high | 1,943.02 | 7 Aug | 38.22 below the first, 0.63 ATR, so the two count as one level |
| Higher low | 1,853.62 | 11 Aug | 31.56 above the first low: buyers stepped in earlier |
| Breakout | 2,252.80 | 19 Aug | First daily close above 1,981.24 |
| Target | 2,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.
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.
| Spec | Value |
|---|---|
| Endpoint | GET https://v2.taapi.io/indicator/triangleascending |
| Outputs | pattern_pivot_prices, resistance_level, support_left_price, breakout_price, projection_price, status, status_reason and more |
| Markets | Binance, Binance Futures, Bybit, Gate.io, Kraken and US stocks |
| Timeframes | 1m to 1w |
| Delivery | REST, 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"
import requests
resp = requests.get(
'https://v2.taapi.io/indicator/triangleascending',
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/triangleascending?${params}`, {
headers: { Authorization: 'Bearer YOUR_API_KEY' },
});
console.log(await res.json());Ascending Triangle API response
Example for ETHUSDT on daily Binance candles: the pattern charted above, from a default request on 12 November 2026.
{
"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_priceslists the swings in time order: high, low, high, low. The highs are at even positions (0, 2, …), the lows at odd positions.resistance_levelis the highest of the highs, 1,981.24: the wick high of 27 July. That candle's body ended at 1,954.72; withsource=bodythe 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 atsupport_right_price, 1,878.87. - The breakout close, 2,252.80, is above resistance, so
statusisconfirmed, and both right timestamps are the breakout candle. projection_price= 1,981.24 + (1,981.24 − 1,822.06) = 2,140.42.pattern_index6 means it is the sixth ascending triangle in the ETH daily candles the API looked at;results=maxreturns all six.
| Field | Type | Description |
|---|---|---|
pattern_pivot_timestamps | integer[][] | Unix time, in seconds, of each swing in the pattern, oldest first: H1, L1, H2, L2, … With touches=3 there are six |
pattern_pivot_prices | number[][] | The price of each of those swings: wick highs and lows, or bodies with source=body |
resistance_level | number[] | The flat resistance: the highest of the highs. The breakout is tested against this level |
resistance_right_timestamp | integer[] | 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_price | integer[], number[] | Start of the rising support line: the first low (L1) |
support_right_timestamp, support_right_price | integer[], number[] | End of the support line, at the same time as resistance_right_timestamp, and the line's price there |
breakout_occurred, is_confirmed | boolean[] | 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 |
direction | string[] | Always bullish |
status | string[] | forming, confirmed or invalidated |
status_reason | string[] | Why the pattern has that status; see the table below |
pattern_index | integer[] | Position of the pattern in the full list, oldest first |
timestamp | integer[] | 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
| status | status_reason | Meaning |
|---|---|---|
forming | awaiting_breakout | The last low is in place and price is still between the two lines |
confirmed | breakout_above_resistance | A candle closed above resistance. A wick above is not enough. Confirmation is permanent: what price does afterwards does not change it |
invalidated | support_broken | Before any breakout, 2 candles in a row closed below the rising support line (invalidationCloses) |
invalidated | apex_reached_no_breakout | The 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
| 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 |
depth | integer | No | 10 | Width 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 |
lookback | integer | No | 5 | Candles before a swing that it must beat. Use instead of depth to set the two sides separately |
lookforward | integer | No | 5 | Candles after a swing that it must beat. Also how many candles late the pattern appears |
deviationATR | number | No | 1 | Minimum move between two swings, in multiples of ATR (or percent with deviationType=percent). Smaller swings are merged. 0 turns the filter off |
deviationType | string | No | atr | atr or percent, the unit of deviationATR |
source | string | No | wick | wick uses highs and lows for the swings and both lines; body uses open and close |
heikinashi | boolean | No | false | 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 |
atrPeriod | integer | No | 14 | Period of the ATR that the thresholds are measured in |
touches | integer | No | 2 | How 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 |
topToleranceATR | number | No | 0.75 | Largest allowed gap between the highest and the lowest of the highs, in ATR. Smaller means a flatter top |
minAscentATR | number | No | 0 | Minimum rise from each low to the next, in ATR. Raise it to skip triangles whose lows barely rise |
invalidationCloses | integer | No | 2 | Closes in a row below the support line that invalidate the pattern |
results | integer | No | 1 | Number of patterns to return, or max |
backtrack | integer | No | 0 | Candles 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
| Part | Rule |
|---|---|
| Swings | Swing 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 |
| Sequence | 2 × touches swings in a row, starting with a high: H1, L1, H2, L2, … |
| Uptrend | H1 is a higher high, and the low just before it is a higher low |
| Flat top | The highest and the lowest of the highs within 0.75 ATR of each other. Resistance is the highest |
| Rising lows | Each low strictly above the one before (by at least minAscentATR × ATR), and the last low below resistance |
| Support line | A straight line from the first low through the last low |
| Intact | From H1 to the last low, no candle closes above resistance, and from L1 on, none closes below the support line |
| Breakout | The first close above resistance after the last low, before the pattern is invalidated |
| Invalidation | 2 closes in a row below the support line, or the support line reaching resistance (the apex) |
| Target | Resistance + (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
| Signal | Meaning | Condition |
|---|---|---|
| Breakout | Price closed above resistance | status is confirmed |
| Fresh signal | Breakout on the latest candles | breakout_timestamp is close to timestamp |
| Setup to watch | Price squeezed between the lines | status is forming; watch for a close above resistance_level |
| Target | Measured move | projection_price |
| Stop | Where the pattern is clearly wrong | Below the last low, the last value in pattern_pivot_prices |
| Failed setup | Pattern no longer valid | status 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"
import requests
API = 'https://v2.taapi.io'
HEADERS = {'Authorization': 'Bearer YOUR_API_KEY'}
market = {'exchange': 'binance', 'symbol': 'ETHUSDT', 'timeframe': '1d', 'backtrack': 1}
CANDLE = 24 * 3600 # seconds per candle for this timeframe
FRESH = 3 # only act on breakouts from the last 3 closed candles
p = requests.get(f'{API}/indicator/triangleascending', headers=HEADERS, params=market).json()
if not p or not p.get('status'):
print('No ascending triangle in the candles')
elif p['status'][0] == 'forming':
print(f"Forming: watch for a close above {p['resistance_level'][0]:,.2f}")
elif p['status'][0] != 'confirmed':
print('Latest pattern failed:', p['status_reason'][0])
else:
now = p['timestamp'][0] # the last closed candle
age = (now - p['breakout_timestamp'][0]) // CANDLE
last_low = p['pattern_pivot_prices'][0][-1]
if age > FRESH:
print(f'Breakout is {age} candles old, too late to act on')
else:
print(f"Long signal, breakout {age} candles ago at {p['breakout_price'][0]:,.2f}")
print(f"Target: {p['projection_price'][0]:,.2f}")
print(f"Stop: below the last low, {last_low:,.2f}")
print(f"Resistance: {p['resistance_level'][0]:,.2f}; a close back below it is a warning")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 2026 | ETHUSDT 1d, May–Jun 2025 | |
|---|---|---|
| Highs | 1,981.24 / 1,943.02 | 2,738.50 / 2,788.00 |
| Lows | 1,822.06 / 1,853.62 | 2,323.21 / 2,381.49 |
| Resistance | 1,981.24 | 2,788.00 |
| Breakout close | 2,252.80 (19 Aug) | 2,816.40 (10 Jun) |
| Target | 2,140.42 | 3,252.79 |
| What followed | Closed past the target on the breakout day; 2,547 two days later | 2,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=bodyif 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
topToleranceATRfor 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
formingfor a long time; check how oldpattern_pivot_timestampsis. - A
formingpattern can be redrawn or disappear when price makes a new low below the last low.confirmedandinvalidatedpatterns stay as they are. - Patterns run on real candles; add
heikinashi=truefor 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.
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.
{
"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.
Related indicators
- Descending Triangle: the bearish mirror
- Symmetrical Triangle – Bullish: both lines sloping
- Double Top: equal highs without rising lows
- Advanced Bullish Patterns: all bullish chart patterns in one call
See the full list of indicators, or start for free.