indicator · on price · open source

Parabolic SAR

Deepwick · @deepwickv1Updated 2 Oct 2026▲ 0 users
Running…
Loading chart…

About

Parabolic SAR dots track the trend and accelerate as it matures; when price crosses the dots, the SAR flips to the other side and a reversal is signalled.

  • Long when dots are below price, short when above.
  • Lower Increment for tighter stops in fast markets; raise Max for stronger trends.
  • Pairs well with an ADX filter to avoid choppy reversals.

Source code

//@version=5
indicator("Parabolic SAR", overlay=true)
start = input.float(0.02, "Start", minval=0.001, step=0.005)
inc = input.float(0.02, "Increment", minval=0.001, step=0.005)
max = input.float(0.2, "Maximum", minval=0.05, step=0.05)
sar = ta.sar(start, inc, max)
p_SAR = plot(sar, "SAR", color=color.orange, style=plot.style_circles)
alertcondition(ta.crossover(close, sar), "SAR flip long", "Price crossed above Parabolic SAR")
alertcondition(ta.crossunder(close, sar), "SAR flip short", "Price crossed below Parabolic SAR")

Comments

No comments yet.

Sign in to comment.