Appearance
Parabolic SAR
Parabolic stop and reverse: trailing dots that flip with the trend.
Kind indicator · Drawn on the price pane
Try it
On the chart, press / and choose Parabolic SAR under Trend. To change it, copy the source below into the AlphaScript editor.
Inputs
| Input | Type | Default |
|---|---|---|
| Start | float | 0.02 |
| Increment | float | 0.02 |
| Max value | float | 0.2 |
| Color | color | "#2962FF" |
Source
From packages/alphascript/indicators/psar.as.js.
js
indicator({ name: "Parabolic SAR", shortTitle: "SAR", overlay: true });
const start = input.float("Start", 0.02, { min: 0, step: 0.01 });
const increment = input.float("Increment", 0.02, { min: 0, step: 0.01 });
const maximum = input.float("Max value", 0.2, { min: 0, step: 0.01 });
plot(ta.sar(start, increment, maximum), { title: "ParabolicSAR", style: "cross", color: input.color("Color", "#2962FF", { group: "Style" }) });