sar
Parabolic SAR.
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
| Name | Type | Description |
|---|---|---|
startoptional | float default 0.02 | Initial acceleration. |
incrementoptional | float default 0.02 | Acceleration step. |
maximumoptional | float 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