Parabolic SAR
Category: Momentum · Updated November 2026
The TAAPI.IO Parabolic SAR API returns the Parabolic Stop and Reverse level as JSON for crypto pairs and US stocks. Send an exchange, symbol and timeframe to get real-time or historical values, with no candles to download and no calculations to maintain.
What one request returns
- The SAR level (
value): a stop that trails below price in an uptrend and above price in a downtrend, and moves closer every candle. - A series, with
results: one value per candle, oldest first. When the SAR moves from one side of the close to the other, the trend flipped. - SAR and price together, with
/bulk: add thepriceindicator to detect flips and measure the stop distance in one request.
So one call answers two questions: which way is the trend, and where does it end?
Example: nine flips in a range, August to November 2026
Request: one /bulk call for MSFT on daily US stock candles, with Parabolic SAR and the closing price (results=2, so the last two closes). Sent at 22:37 UTC on Saturday 14 November, so the latest candle is Friday's close. Default settings of 0.02, 0.02 and 0.2.
| Candle | MSFT close | SAR | Side | Reading |
|---|---|---|---|---|
| 12 Nov | 521.09 | 508.47 | Below: long | Trailing stop under price |
| 13 Nov | 522.46 | 559.94 | Above: short | Flipped: the low broke the stop, the SAR jumped to the last high |
How to interpret this: Parabolic SAR is always in the market: when one stop is hit, it reverses and starts trailing from the other side. That works when a market trends and costs money when it doesn't. Between August and November MSFT moved between about 478 and 568 without going anywhere. The SAR switched sides nine times. Of the eight trades that finished, a long from 25 September to 16 October gained 1.7%. The other seven lost between 1.9% and 5.7% each, about 25% in total, because each flip came after part of a swing had already happened, just as the swing was ending. The latest flip, to short on 13 November, puts the stop at 559.94, 7.2% above the close. The usual advice is to act on SAR flips only when ADX shows a trend, but MSFT's daily ADX stayed between 32 and 41 throughout, so that filter would not have helped here. A wider look, such as the weekly trend or a smaller acceleration, would have.
| Flip | Side | MSFT close | Next flip | Result |
|---|---|---|---|---|
| 17 Aug | short | 480.00 | 27 Aug | −4.8% |
| 27 Aug | long | 503.10 | 10 Sep | −2.6% |
| 10 Sep | short | 490.04 | 25 Sep | −5.7% |
| 25 Sep | long | 517.91 | 16 Oct | +1.7% |
| 16 Oct | short | 526.83 | 28 Oct | −3.7% |
| 28 Oct | long | 546.30 | 30 Oct | −4.3% |
| 30 Oct | short | 522.99 | 5 Nov | −1.9% |
| 5 Nov | long | 533.09 | 13 Nov | −2.0% |
| 13 Nov | short | 522.46 | still open | — |
Values are from the production API on 14 November 2026, using daily candles. Results compare the close at one flip with the close at the next, with no fees. Nine flips are an illustration, not a backtest. Nothing here is financial advice.
| Spec | Value |
|---|---|
| Endpoint | GET https://v2.taapi.io/indicator/psar |
| Outputs | SAR value, timestamp |
| Default settings | Start 0.02, increment 0.02, maximum 0.2 |
| Markets | Binance, Binance Futures, Bybit, Gate.io, Kraken and US stocks |
| Timeframes | 1m to 1w |
| Delivery | REST, bulk and WebSocket |
Get Parabolic SAR with one API call
This request returns Parabolic SAR for BTCUSDT on 1-hour Binance candles. Add your API key to run it here.
curl -G https://v2.taapi.io/indicator/psar \ -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/psar',
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/psar?${params}`, {
headers: { Authorization: 'Bearer YOUR_API_KEY' },
});
console.log(await res.json());Parabolic SAR API response
This response came from the live API on 9 November 2026.
{
"value": [75578.67022710969],
"timestamp": [1794218400]
}| Field | Type | Description |
|---|---|---|
value | number[] | Parabolic SAR result |
timestamp | integer[] | Unix time of each candle, in seconds |
Parabolic SAR 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 |
start | number | No | 0.02 | Acceleration factor at the start of each trend |
increment | number | No | 0.02 | Added to the acceleration factor at each new extreme |
maximum | number | No | 0.2 | Highest acceleration factor |
results | integer | No | 1 | Number of values to return, or max |
backtrack | integer | No | 0 | Candles to skip from the most recent |
What is Parabolic SAR?
Parabolic SAR (Stop and Reverse), developed by J. Welles Wilder, trails price with a stop level that accelerates as a trend extends. When price reaches it, the stop flips to the other side. The start, increment and maximum parameters control the acceleration.
Parabolic SAR formula
| Output | Calculation |
|---|---|
| Next SAR | SAR + AF × (extreme point − SAR) |
| Extreme point | Highest high of the current uptrend, or lowest low of the current downtrend |
| AF | Starts at start, grows by increment at each new extreme point, capped at maximum |
| Reversal | When price reaches the SAR, the new SAR is the extreme point of the trend that just ended |
In the example, MSFT's long started on 5 November, and its highest high since then was 559.94, on that same day. When the low on 13 November broke the stop, the SAR jumped to 559.94, and AF started again at 0.02.
How to read Parabolic SAR in your code
| Signal | Meaning | Condition |
|---|---|---|
| Uptrend | Stop trailing below price | value below the close |
| Downtrend | Stop trailing above price | value above the close |
| Flip | Trend reversed on this candle | The side changes from one candle to the next |
| Stop distance | Risk if the trend fails | Gap between the close and value, as a percentage of the close |
Limitations: it is always in the market, so it whipsaws in ranges, as in the example. Nothing on this page is financial advice.
Choosing the acceleration
The acceleration factor decides how fast the stop closes in. A higher start or increment tightens the stop sooner, giving earlier exits and more flips. A lower maximum caps how close the stop can get in a long trend. Smaller values, such as 0.01, 0.01 and 0.1, flip less often in a range like MSFT's, at the cost of giving back more when a trend ends.
Detect a Parabolic SAR flip with Python
A flip is the moment the SAR moves from one side of the close to the other. One /bulk request returns the SAR and the close for the last two candles. It uses one construct, so it works on every plan. For crypto, or for stocks during market hours, add backtrack=1 to both indicators so you compare closed candles.
curl -X POST https://v2.taapi.io/bulk \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"constructs": [
{
"id": "msft_1d",
"exchange": "stocks",
"symbol": "MSFT",
"timeframe": "1d",
"indicators": [
{
"id": "psar",
"indicator": "psar",
"results": 2
},
{
"id": "close",
"indicator": "price",
"results": 2
}
]
}
]
}'import requests
payload = {
"constructs": [
{
"id": "msft_1d",
"exchange": "stocks",
"symbol": "MSFT",
"timeframe": "1d",
"indicators": [
{
"id": "psar",
"indicator": "psar",
"results": 2
},
{
"id": "close",
"indicator": "price",
"results": 2
}
]
}
]
}
resp = requests.post(
'https://v2.taapi.io/bulk',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
json=payload,
)
data = resp.json()
c = data['msft_1d']
sar = c['psar']['value']
close = c['close']['value']
prev = 'long' if sar[0] < close[0] else 'short'
last = 'long' if sar[1] < close[1] else 'short'
gap = abs(sar[1] / close[1] - 1) * 100
if prev != last:
print(f'Flipped to {last} on the last candle, stop at {sar[1]:.2f} ({gap:.1f}% away)')
else:
print(f'Still {last}, stop at {sar[1]:.2f} ({gap:.1f}% away)')The response at 22:37 UTC on 14 November. The SAR was below the close on 12 November and above it on 13 November, so the script prints Flipped to short on the last candle, stop at 559.94 (7.2% away)
{
"msft_1d": {
"psar": {
"value": [508.470749830208, 559.94],
"timestamp": [1794441600, 1794528000]
},
"close": {
"value": [521.0892, 522.462],
"timestamp": [1794441600, 1794528000]
}
}
}Run it once per closed candle. To trade fewer flips, combine it with a slower trend check, for example take only flips in the direction of the 200-day EMA.
Get historical Parabolic SAR 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/psar \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h" \ --data-urlencode "results=100"
Get Parabolic SAR for multiple symbols
Combine Parabolic SAR 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": "psar",
"indicator": "psar"
},
{
"id": "rsi",
"indicator": "rsi"
}
]
}
]
}'Stream Parabolic SAR 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": "psar",
"exchange": "binance",
"symbol": "BTCUSDT",
"interval": "1m",
"indicator": "psar"
}Common Parabolic SAR settings
These are starting points, not recommendations. Test any setting on your own market and timeframe.
| Settings | Character | Typical use |
|---|---|---|
| 0.02, 0.02, 0.2 | Standard | Wilder's original values |
| 0.01, 0.01, 0.1 | Slower | Fewer flips, wider stops |
| 0.03, 0.03, 0.3 | Faster | Tighter stops, more flips |
Why Parabolic SAR values can differ between platforms
- Starting point: the SAR depends on where the calculation starts and which direction it assumes first. Platforms with different history can disagree until the next flip.
- Exchange data: the SAR follows highs and lows, which differ between venues.
- Open candle: a forming candle can touch the stop and flip it before closing. Use
backtrack=1for closed candles.
Parabolic SAR API FAQ
What does the Parabolic SAR API return?
An array of SAR levels in value, plus a timestamp for each candle.
How do I know if Parabolic SAR is long or short?
Compare value with the close. Below the close is long, above is short. The API returns the level only, so request price in the same /bulk call.
How do I detect a flip?
Request two candles and check whether the SAR changed sides. See Detect a Parabolic SAR flip with Python.
Can I change the acceleration?
Yes. Set start, increment and maximum. The defaults are 0.02, 0.02 and 0.2.
Can I get Parabolic SAR for US stocks?
Yes. Use exchange=stocks with a ticker such as MSFT. US stocks are included on the Pro plan and above.
Related indicators
- SuperTrend: a trailing stop built from ATR
- ADX: trend strength, a common SAR filter
- Average True Range: volatility for stop distances
- Exponential Moving Average: a slower trend filter
Build with Parabolic SAR on Binance, Bybit or US stocks. Start for free or browse all 262 indicators.