Home/Dovee/Function reference

sar

Parabolic SAR.

Reference/Trend/Function

sar(start, increment, maximum)

Dots that trail price and flip on a stop. Defaults 0.02, 0.02, 0.2. Write sar() for defaults.

Parameters

NameTypeDescription
startoptionalfloat
default 0.02
Initial acceleration.
incrementoptionalfloat
default 0.02
Acceleration step.
maximumoptionalfloat
default 0.2
Cap on acceleration.

Return value

series

Example

s = sar()
plot s as "SAR" orange
when close crosses above s then buy
when close crosses below s then exit

See also