Skip to content

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 ​

InputTypeDefault
Startfloat0.02
Incrementfloat0.02
Max valuefloat0.2
Colorcolor"#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" }) });

AlphaScript language v0.1 · runtime 0.2.0