Descending Triangle
Category: Chart patterns · Updated November 2026
The TAAPI.IO Descending Triangle API returns pattern pivot timestamps, pattern pivot prices, support level, support right timestamp values for the Descending 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.
| Spec | Value |
|---|---|
| Endpoint | GET https://v2.taapi.io/indicator/triangledescending |
| Outputs | pattern_pivot_timestamps, pattern_pivot_prices, support_level, support_right_timestamp, resistance_left_timestamp, resistance_left_price and more |
| Markets | Binance, Binance Futures, Bybit, Gate.io, Kraken and US stocks |
| Timeframes | 1m to 1w |
| Delivery | REST, bulk and WebSocket |
Get Descending Triangle with one API call
This request returns Descending Triangle for BTCUSDT on 1-hour Binance candles. Add your API key to run it here.
curl -G https://v2.taapi.io/indicator/triangledescending \ -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/triangledescending',
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/triangledescending?${params}`, {
headers: { Authorization: 'Bearer YOUR_API_KEY' },
});
console.log(await res.json());Descending Triangle API response
This response came from the live API on 9 November 2026. Long lists are shortened here.
{
"pattern_pivot_timestamps": [[1793761200, 1793804400, 1793919600, 1793966400]],
"pattern_pivot_prices": [[75736.38, 81196.01, 75208.42, 76378]],
"support_level": [75718.02],
"support_right_timestamp": [1793977200],
"resistance_left_timestamp": [1793804400],
"resistance_left_price": [81196.01],
"resistance_right_timestamp": [1793977200],
"resistance_right_price": [76056.79933333333],
"breakout_occurred": [true],
"is_confirmed": [true],
"breakout_timestamp": [1793977200],
"breakout_price": [75546.44],
"breakout_support_price": [75718.02],
"projection_price": [71140.03000000001],
"direction": ["bearish"],
"status": ["confirmed"],
"status_reason": ["breakout_below_support"],
"pattern_index": [3],
"timestamp": [1794218400]
}| Field | Type | Description |
|---|---|---|
pattern_pivot_timestamps | array | Array of all internal pivot timestamps making up the triangle structure. |
pattern_pivot_prices | array | Array of all internal pivot body-snapped prices making up the triangle structure. |
support_level | number[] | The price level of the horizontal flat bottom support. |
support_right_timestamp | number[] | Timestamp denoting where the support line extends to on the right. |
resistance_left_timestamp | number[] | Unix timestamp of the descending resistance line start anchor (H1). |
resistance_left_price | number[] | Price level of the descending resistance line start anchor (H1). |
resistance_right_timestamp | number[] | Timestamp denoting where the resistance line extends to on the right. |
resistance_right_price | number[] | The price level of the resistance line at the right endpoint. |
breakout_occurred | boolean[] | Boolean flag (true/false) indicating if price successfully broke below the support. |
is_confirmed | boolean[] | Explicit boolean flag (true/false) indicating if the Descending Triangle pattern is fully confirmed (synonymous with breakout_occurred). |
breakout_timestamp | number[] | Unix timestamp of the candle that triggered the confirmation breakout. |
breakout_price | number[] | The closing price of the candle that triggered the confirmation breakout. |
breakout_support_price | number[] | The specific price of the support line at the exact moment of the breakout (same as support_level). |
projection_price | number[] | The theoretical downside price target calculated by subtracting the pattern's initial height from the breakout support price. |
direction | string[] | The inherent bias of the pattern. Always 'bearish' for a Descending Triangle. |
status | string[] | The current state of the pattern: 'forming', 'confirmed', or 'invalidated'. |
status_reason | string[] | Context detailing why the pattern holds its current status (e.g. 'awaiting_breakout'). |
pattern_index | number[] | A sequential integer index uniquely identifying this specific pattern instance. |
timestamp | integer[] | Unix time of each candle, in seconds |
Descending 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 |
lookback | integer | No | 5 | Bars left for pivot detection. |
lookforward | integer | No | 5 | Bars right for pivot detection. |
deviationATR | number | No | 1 | Minimum retracement required to form a valid structural swing, expressed as a multiple of ATR. |
deviationType | string | No | atr | Type of deviation filter to use: 'atr' (Average True Range) or 'percent'. |
source | string | No | wick | Whether to use 'wick' (high/low) or 'body' (open/close) prices for pivot detection. |
heikinashi | boolean | No | True | Set to true to calculate pivots based on smoothed Heikin-Ashi candles rather than raw market prices. |
atrPeriod | integer | No | 14 | The lookback period used for the Average True Range (ATR) calculation. |
touches | integer | No | 2 | Minimum number of high/low pairs required to form the pattern. |
bottomToleranceATR | number | No | 0.75 | Maximum allowed price difference between the bottom support touches, normalized by ATR. |
minDescentATR | number | No | 0 | Minimum required downward slope between the descending top touches, normalized by ATR. |
invalidationCloses | integer | No | 2 | Number of consecutive candle closes above the descending resistance line to invalidate the pattern. |
results | integer | No | 1 | Number of values to return, or max |
backtrack | integer | No | 0 | Candles to skip from the most recent |
What is Descending Triangle?
A Descending Triangle has flat support and falling resistance, which suggests sellers are growing more aggressive. The endpoint returns its pivots, both boundaries and a projected target.
Descending Triangle formula
| Output | Calculation |
|---|---|
| Target | Support − height of the triangle |
How to read Descending Triangle in your code
| Signal | Meaning | Condition |
|---|---|---|
| Forming or confirmed | Detection status | status and is_confirmed |
| Breakout | Price closed below support | breakout_occurred is true |
| Target | Measured-move projection | projection_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 Descending Triangle from Python
Use backtrack=1 to read the result as of the last closed candle.
curl -G https://v2.taapi.io/indicator/triangledescending \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h" \ --data-urlencode "backtrack=1"
import requests
resp = requests.get(
'https://v2.taapi.io/indicator/triangledescending',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={'exchange': 'binance', 'symbol': 'BTCUSDT', 'timeframe': '1h', 'backtrack': 1},
)
data = resp.json()
print(data['pattern_pivot_timestamps'])Get historical Descending 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/triangledescending \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h" \ --data-urlencode "results=100"
Get Descending Triangle for multiple symbols
Combine Descending 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": "triangledescending",
"indicator": "triangledescending"
},
{
"id": "rsi",
"indicator": "rsi"
}
]
}
]
}'Stream Descending 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": "triangledescending",
"exchange": "binance",
"symbol": "BTCUSDT",
"interval": "1m",
"indicator": "triangledescending"
}Descending Triangle API FAQ
What does the Descending Triangle API return?
It returns pattern_pivot_timestamps, pattern_pivot_prices, support_level, support_right_timestamp, resistance_left_timestamp, resistance_left_price, resistance_right_timestamp, resistance_right_price, breakout_occurred, is_confirmed, breakout_timestamp, breakout_price, breakout_support_price, projection_price, direction, status, status_reason, pattern_index, plus a timestamp for the request. Results are JSON.
Is the latest Descending 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 Descending Triangle settings can I change?
You can set lookback, lookforward, deviationATR, deviationType, source, heikinashi. See the parameters table above for defaults.
Can I get Descending 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
See the full list of indicators, or start for free.