indicator · on price · open source
Parabolic SAR indicator
Parabolic SAR is a free open-source indicator by @deepwick. Parabolic SAR dots track the trend and accelerate as it matures; when price crosses the… Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Parabolic SAR does
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
Incrementfor tighter stops in fast markets; raiseMaxfor stronger trends. - Pairs well with an ADX filter to avoid choppy reversals.
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Parabolic SAR", overlay=true)
start = input.float(0.02, "Start", minval=0.001, maxval=0.1, step=0.005)
inc = input.float(0.02, "Increment", minval=0.001, maxval=0.1, step=0.005)
max = input.float(0.2, "Maximum", minval=0.05, maxval=1, step=0.05)
colorMid = input.color("color.orange", "Color Mid")
sar = ta.sar(start, inc, max)
p_SAR = plot(sar, "SAR", color=colorMid, 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")
No comments yet.
Sign in to comment.