indicator · on price · open source
Parabolic SAR
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
Incrementfor tighter stops in fast markets; raiseMaxfor 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")
No comments yet.
Sign in to comment.