Systemicbeta

Parabolic Stop And Reverse

systemic:core-psarIndicators

Inputs

NameTypeDescription
StepNumberThe starting value of the Acceleration Factor (AF) and the amount it grows by.
Max StepNumberThe highest value the Acceleration Factor (AF) can reach.
Price HighNumber seriesThe highest price reached in each bar.
Price LowNumber seriesThe lowest price reached in each bar.
Price CloseNumber seriesThe closing price of each bar.

Outputs

NameTypeDescription
Down IndicatorNumber seriesA flag that is 1 on the bar where a downtrend starts and 0 on every other bar.
PSARNumber seriesThe SAR (Stop and Reverse) level on each bar: a trailing stop level that follows the trend.
UpNumber seriesThe SAR value during uptrends only (0 during downtrends).
DownNumber seriesThe SAR value during downtrends only (0 during uptrends).

Cost

25
credits per run
1,000
bars

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

SARt+1=SARt+AF×(EP−SARt)\text{SAR}_{t+1} = \text{SAR}_t + AF \times (EP - \text{SAR}_t)

Downtrend SAR Calculation

SARt+1=SARt−AF×(SARt−EP)\text{SAR}_{t+1} = \text{SAR}_t - AF \times (\text{SAR}_t - EP)

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:

EventAFSAR Behavior
Trend starts0.02SAR moves slowly, giving room
New high/low0.04SAR accelerates
Another new high/low0.06Faster still
.........
Maximum reached0.20Maximum 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"]
SignalConditionCommon reading
BuyPrice crosses above SAR (dots flip below)Long entry / short exit
SellPrice crosses below SAR (dots flip above)Short entry / long exit

The Outputs

This module produces four outputs:

OutputDescription
PSARThe SAR value (trailing stop level)
UpSAR value when in uptrend (0 otherwise)
DownSAR value when in downtrend (0 otherwise)
Down Indicator1 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/Down are exactly 0 while the trend is on the other side. Only an empty value means "no value".

Parameter Tuning

ParameterTypical valuePurpose
Step0.02AF starting value and increment
Max Step0.20Maximum AF cap

Effect of Parameters

SettingEffect
Higher StepFaster acceleration, tighter stops, more signals
Lower StepSlower acceleration, looser stops, fewer signals
Higher Max StepEventually very tight stops
Lower Max StepStops never get too aggressive
Market TypeStepMax Step
Strong trends0.0250.25
Normal markets0.020.20
Choppy/Volatile0.010.10
Crypto0.010.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):

ADXPSAR SignalRecommendation
> 25AnyTrust the signal: strong trend
< 25AnyIgnore it: the market is ranging

Creative Applications

Trend-Phase Position Sizing

Use the AF as a proxy for trend maturity:

AF RangeInterpretationPosition
0.02–0.06Young trendFull position
0.08–0.12Mature trendReduce position
0.14–0.20Extended trendMinimum 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 PSARDaily PSARAction
UptrendBuy signalStrong long entry
UptrendSell signalIgnore or reduce
DowntrendSell signalStrong 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

AspectKey Point
Core insightStops should tighten as trends mature
What it measuresDynamic trailing stop with parabolic acceleration
SAR below priceUptrend — SAR is support
SAR above priceDowntrend — SAR is resistance
Best forTrailing stops, trend-following, exit management
Worst forRanging markets (use ADX filter)

Further Reading


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]
DimensionStocksCryptoNotes
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.

Rendering diagrams...
© 2026 WanoLabs. All rights reservedBeta v0.1.5