Parabolic Stop And Reverse
systemic:core-psarIndicatorsInputs
| Name | Type | Description |
|---|---|---|
| Step | Number | The starting value of the Acceleration Factor (AF) and the amount it grows by. |
| Max Step | Number | The highest value the Acceleration Factor (AF) can reach. |
| Price High | Number series | The highest price reached in each bar. |
| Price Low | Number series | The lowest price reached in each bar. |
| Price Close | Number series | The closing price of each bar. |
Outputs
| Name | Type | Description |
|---|---|---|
| Down Indicator | Number series | A flag that is 1 on the bar where a downtrend starts and 0 on every other bar. |
| PSAR | Number series | The SAR (Stop and Reverse) level on each bar: a trailing stop level that follows the trend. |
| Up | Number series | The SAR value during uptrends only (0 during downtrends). |
| Down | Number series | The SAR value during downtrends only (0 during uptrends). |
Cost
0.209 + 0.0245·n credits for n bars, rounded up. The marks are each plan's limit of bars.
The Trailing Stop Problem
Every trader faces a dilemma: how do you protect profits without exiting too early?
Set your stop too tight, and normal volatility takes you out. Set it too loose, and you give back too much profit when the trend ends. J. Welles Wilder (creator of RSI, ATR, and ADX) answered this in 1978 with one idea:
What if the stop automatically tightened as the trend matured?
Early in a trend the stop needs room, because the move has not proven itself yet. As the trend goes on and profits grow, you want to give back less. The stop should move faster toward price, until it catches up and signals an exit.
This is the "parabolic" in Parabolic SAR: the stop follows a curve that gets steeper as it chases price.
How It Works
flowchart LR
subgraph Uptrend["Uptrend Phase"]
direction TB
U1["Dots BELOW price"]
U2["SAR rises toward price"]
end
subgraph Flip["Trend Reversal"]
F["Price crosses SAR"]
end
subgraph Downtrend["Downtrend Phase"]
direction TB
D1["Dots ABOVE price"]
D2["SAR falls toward price"]
end
Uptrend --> Flip --> Downtrend
The SAR value is a trailing stop level:
- Dots below price → Uptrend: SAR is the support / stop-loss level
- Dots above price → Downtrend: SAR is the resistance / stop-loss level
- Price crosses SAR → The trend has reversed
The Mathematics
Uptrend SAR Calculation
Downtrend SAR Calculation
Where:
- SAR — Current Stop and Reverse point
- AF — Acceleration Factor (starts at Step, grows by Step at each new extreme, never exceeds Max Step)
- EP — Extreme Point (highest high in uptrend, lowest low in downtrend)
The Acceleration Factor: Why "Parabolic"?
The AF is the key part. Each time price makes a new extreme (a new high in an uptrend, a new low in a downtrend), the AF grows by the Step value:
| Event | AF | SAR Behavior |
|---|---|---|
| Trend starts | 0.02 | SAR moves slowly, giving room |
| New high/low | 0.04 | SAR accelerates |
| Another new high/low | 0.06 | Faster still |
| ... | ... | ... |
| Maximum reached | 0.20 | Maximum acceleration |
This creates a parabolic curve: flat at first, then steeper. The longer the trend lasts, the tighter the stop becomes. In the end SAR catches up with price and gives a reversal signal.
The intuition: A long, profitable trend deserves a tight stop. A young trend deserves a loose stop. The AF turns this into a formula.
Trading Signals
flowchart TD
Price["Current Price"] --> Compare{"Price vs SAR"}
Compare -->|"Price > SAR"| Uptrend["UPTREND<br/>SAR = Support"]
Compare -->|"Price < SAR"| Downtrend["DOWNTREND<br/>SAR = Resistance"]
Uptrend --> Cross1{"Price crosses<br/>below SAR?"}
Cross1 -->|Yes| Sell["SELL Signal<br/>Dots flip above"]
Downtrend --> Cross2{"Price crosses<br/>above SAR?"}
Cross2 -->|Yes| Buy["BUY Signal<br/>Dots flip below"]
| Signal | Condition | Common reading |
|---|---|---|
| Buy | Price crosses above SAR (dots flip below) | Long entry / short exit |
| Sell | Price crosses below SAR (dots flip above) | Short entry / long exit |
The Outputs
This module produces four outputs:
| Output | Description |
|---|---|
| PSAR | The SAR value (trailing stop level) |
| Up | SAR value when in uptrend (0 otherwise) |
| Down | SAR value when in downtrend (0 otherwise) |
| Down Indicator | 1 on the bar where a downtrend starts, 0 on every other bar |
Missing Data
A bar is skipped when High, Low or Close is missing, for example when the market is closed. The trend, the Extreme Point and the Acceleration Factor carry across the gap and continue on the next bar that has data. Nothing is reset.
- Gaps are bridged: Friday and Monday are treated as neighboring bars. On the closed weekend bars all four outputs are empty (null), never a repeated or interpolated value.
- A reversal can only show on a bar with data: if the trend would have flipped over the weekend, the flip appears on the next bar that has data.
- Warm-up: the first 2 bars with data are empty on all four outputs. There is no real SAR value until a trend is established.
- 0 means the opposite trend, never missing:
Up/Downare exactly 0 while the trend is on the other side. Only an empty value means "no value".
Parameter Tuning
| Parameter | Typical value | Purpose |
|---|---|---|
| Step | 0.02 | AF starting value and increment |
| Max Step | 0.20 | Maximum AF cap |
Effect of Parameters
| Setting | Effect |
|---|---|
| Higher Step | Faster acceleration, tighter stops, more signals |
| Lower Step | Slower acceleration, looser stops, fewer signals |
| Higher Max Step | Eventually very tight stops |
| Lower Max Step | Stops never get too aggressive |
Recommended Configurations
| Market Type | Step | Max Step |
|---|---|---|
| Strong trends | 0.025 | 0.25 |
| Normal markets | 0.02 | 0.20 |
| Choppy/Volatile | 0.01 | 0.10 |
| Crypto | 0.01 | 0.10–0.15 |
When It Works, When It Struggles
Works Well In:
- Strong, directional trends — The classic use case
- Trailing stop management — A systematic exit level
- Trend identification — Shows the current trend at a glance
- Momentum continuation — Staying with winning trends
Struggles In:
- Ranging/sideways markets — Repeated whipsaws as price moves up and down
- Price gaps — Gaps can trigger false reversals
- Choppy trends — Many small reversals give too many signals
The ADX Filter
Wilder recommended combining PSAR with ADX (which he also created):
| ADX | PSAR Signal | Recommendation |
|---|---|---|
| > 25 | Any | Trust the signal: strong trend |
| < 25 | Any | Ignore it: the market is ranging |
Creative Applications
Trend-Phase Position Sizing
Use the AF as a proxy for trend maturity:
| AF Range | Interpretation | Position |
|---|---|---|
| 0.02–0.06 | Young trend | Full position |
| 0.08–0.12 | Mature trend | Reduce position |
| 0.14–0.20 | Extended trend | Minimum position |
As AF approaches the max, the trend is "old" and more likely to reverse. The AF itself is not an output of this module.
Multi-Period Trend Alignment
Check PSAR on a longer period to set the bias:
| Weekly PSAR | Daily PSAR | Action |
|---|---|---|
| Uptrend | Buy signal | Strong long entry |
| Uptrend | Sell signal | Ignore or reduce |
| Downtrend | Sell signal | Strong short entry |
Volatility-Adjusted Parameters
Step is a constant, so choose it from the usual volatility (ATR) of the market:
- High ATR → Lower Step (wider stops for volatile markets)
- Low ATR → Higher Step (tighter stops for calm markets)
Summary
| Aspect | Key Point |
|---|---|
| Core insight | Stops should tighten as trends mature |
| What it measures | Dynamic trailing stop with parabolic acceleration |
| SAR below price | Uptrend — SAR is support |
| SAR above price | Downtrend — SAR is resistance |
| Best for | Trailing stops, trend-following, exit management |
| Worst for | Ranging markets (use ADX filter) |
Further Reading
- Parabolic SAR - Investopedia
- Wilder, J.W. (1978). New Concepts in Technical Trading Systems
- Combining PSAR with ADX - Investopedia
Indicator Assessment
%%{init: {"quadrantChart": {"titleFontSize": 14}, "themeVariables": {"quadrant1Fill": "#e8f5e9", "quadrant2Fill": "#fff3e0", "quadrant3Fill": "#ffebee", "quadrant4Fill": "#e3f2fd"}}}%%
quadrantChart
title Parabolic SAR Assessment
x-axis Low Popularity --> High Popularity
y-axis Low Reliability --> High Reliability
quadrant-1 High potential
quadrant-2 Established
quadrant-3 Niche
quadrant-4 Widely used
Stocks: [0.70, 0.65]
Crypto: [0.55, 0.45]
| Dimension | Stocks | Crypto | Notes |
|---|---|---|---|
| Popularity | ●●●●○ | ●●●○○ | Classic Wilder indicator, widely available |
| Reliability | ●●●◐○ | ●●◐○○ | Excellent in trends, poor in ranges |
| Complexity | ●●●○○ | ●●●○○ | You need to understand how the AF accelerates |
| Versatility | ●●●○○ | ●●○○○ | Primarily trailing stop; struggles in choppy crypto markets |
| Recent Interest | ●●●○○ | ●●◐○○ | Stable classic; crypto interest lower due to volatility |
Why lower crypto reliability: PSAR gives many whipsaws in crypto's frequent consolidation phases. The ADX filter is especially important when you use PSAR on digital assets.