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

Ascending Triangle

Category: Chart patterns · Updated November 2026


The TAAPI.IO Ascending Triangle API returns pattern pivot timestamps, pattern pivot prices, resistance level, resistance right timestamp values for the Ascending Triangle indicator as JSON, for crypto pairs and US stocks. Send an exchange, symbol and timeframe to get real-time or historical data, with no candles to download and no calculations to maintain.

SpecValue
EndpointGET https://v2.taapi.io/indicator/triangleascending
Outputspattern_pivot_timestamps, pattern_pivot_prices, resistance_level, resistance_right_timestamp, support_left_timestamp, support_left_price 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

This response came from the live API on 9 November 2026. Long lists are shortened here.

200 OK
{
  "pattern_pivot_timestamps": [[1791784800, 1791849600, 1791878400, 1791910800]],
  "pattern_pivot_prices": [[84352, 81033.66, 84168, 82972.74]],
  "resistance_level": [84224.01],
  "resistance_right_timestamp": [1791950400],
  "support_left_timestamp": [1791849600],
  "support_left_price": [81033.66],
  "support_right_timestamp": [1791950400],
  "support_right_price": [84227.43882352942],
  "breakout_occurred": [false],
  "is_confirmed": [false],
  "breakout_timestamp": [null],
  "breakout_price": [null],
  "breakout_resistance_price": [null],
  "projection_price": [null],
  "direction": ["bullish"],
  "status": ["invalidated"],
  "status_reason": ["support_broken"],
  "pattern_index": [1],
  "timestamp": [1794218400]
}

This response can be null or empty when there is nothing to report for the requested candles, so handle that case in your code.

FieldTypeDescription
pattern_pivot_timestampsarrayArray of all internal pivot timestamps making up the triangle structure.
pattern_pivot_pricesarrayArray of all internal pivot body-snapped prices making up the triangle structure.
resistance_levelnumber[]The price level of the horizontal flat top resistance.
resistance_right_timestampnumber[]Timestamp denoting where the resistance line extends to on the right.
support_left_timestampnumber[]Unix timestamp of the ascending support line start anchor (L1).
support_left_pricenumber[]Price level of the ascending support line start anchor (L1).
support_right_timestampnumber[]Timestamp denoting where the support line extends to on the right.
support_right_pricenumber[]The price level of the support line at the right endpoint.
breakout_occurredboolean[]Boolean flag (true/false) indicating if price successfully broke above the resistance.
is_confirmedboolean[]Explicit boolean flag (true/false) indicating if the Ascending Triangle pattern is fully confirmed (synonymous with breakout_occurred).
breakout_timestamparrayUnix timestamp of the candle that triggered the confirmation breakout.
breakout_pricearrayThe closing price of the candle that triggered the confirmation breakout.
breakout_resistance_pricearrayThe specific price of the resistance line at the exact moment of the breakout (same as resistance_level).
projection_pricearrayThe theoretical upside price target calculated by adding the pattern's initial height to the breakout resistance price.
directionstring[]The inherent bias of the pattern. Always 'bullish' for an Ascending Triangle.
statusstring[]The current state of the pattern: 'forming', 'confirmed', or 'invalidated'.
status_reasonstring[]Context detailing why the pattern holds its current status (e.g. 'awaiting_breakout').
pattern_indexnumber[]A sequential integer index uniquely identifying this specific pattern instance.
timestampinteger[]Unix time of each candle, in seconds

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
lookbackintegerNo5Bars left for pivot detection.
lookforwardintegerNo5Bars right for pivot detection.
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.
heikinashibooleanNoTrueSet to true to calculate pivots based on smoothed Heikin-Ashi candles rather than raw market prices.
atrPeriodintegerNo14The lookback period used for the Average True Range (ATR) calculation.
touchesintegerNo2Minimum number of high/low pairs required to form the pattern.
topToleranceATRnumberNo0.75Maximum allowed price difference between the top resistance touches, normalized by ATR.
minAscentATRnumberNo0Minimum required upward slope between the ascending bottom touches, normalized by ATR.
invalidationClosesintegerNo2Number of consecutive candle closes below the ascending support line to invalidate the pattern.
resultsintegerNo1Number of values to return, or max
backtrackintegerNo0Candles to skip from the most recent

What is Ascending Triangle?

An Ascending Triangle has a flat resistance level and rising support, which suggests buyers are growing more aggressive. The endpoint returns its pivots, both boundaries and a projected target.

Ascending Triangle formula

OutputCalculation
TargetResistance + height of the triangle

How to read Ascending Triangle in your code

SignalMeaningCondition
Forming or confirmedDetection statusstatus and is_confirmed
BreakoutPrice closed above resistancebreakout_occurred is true
TargetMeasured-move projectionprojection_price

Limitations: Geometric pattern detection depends on pivot settings, so tune deviationATR and depth or lookback values on your own market. A confirmed pattern is not a guaranteed move. Nothing on this page is financial advice.

Read Ascending Triangle from Python

Use backtrack=1 to read the result as of the last closed 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 "backtrack=1"

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?

It returns pattern_pivot_timestamps, pattern_pivot_prices, resistance_level, resistance_right_timestamp, support_left_timestamp, support_left_price, support_right_timestamp, support_right_price, breakout_occurred, is_confirmed, breakout_timestamp, breakout_price, breakout_resistance_price, projection_price, direction, status, status_reason, pattern_index, plus a timestamp for the request. Results are JSON.

Is the latest Ascending Triangle value final?

No. The newest value belongs to the candle still forming and can change until it closes. Add backtrack=1 to read the last closed candle.

Which Ascending Triangle settings can I change?

You can set lookback, lookforward, deviationATR, deviationType, source, heikinashi. See the parameters table above for defaults.

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.