TrendPine Script v6

ta.sar()

Parabolic SAR

Parabolic SAR (stop and reverse) is a method to find potential reversals in the market price direction.

Syntax

Syntax
ta.sar(start, inc, max) → series float

Arguments

ParameterTypeDescription
startsimple int/floatStart value.
incsimple int/floatIncrement value.
maxsimple int/floatMaximum value.

Returns

Parabolic SAR.

Code Examples

Pine Script v6 Example
//@version=6
indicator("ta.sar")
plot(ta.sar(0.02, 0.02, 0.2), style=plot.style_cross)

Trading Applications

Identify trend direction and potential reversals

Set trailing stop-loss levels

Determine entry/exit points based on SAR flip

Combine with trend filters for improved accuracy

Related Functions

Frequently Asked Questions

Generate ta.sar() Code with AI

Skip the manual coding. Use Pineify's AI Coding Agent to generate Pine Script code using ta.sar() and other built-in functions instantly.