iSAR

Calculates the Parabolic SAR (Stop and Reverse) indicator value for any symbol and timeframe.

Syntax

iSAR(
symbol: string,
timeframe: number,
index: number,
start: number,
step: number,
max: number
): number

Parameters

Parameter
Type
Description

symbol

string

Symbol name

timeframe

number

Timeframe in minutes

index

number

Index of the bar to calculate SAR for

start

number

Acceleration factor start value (default 0.02)

step

number

Acceleration factor step (default 0.02)

max

number

Maximum acceleration factor (default 0.20)

Return Value

Returns a number representing the Parabolic SAR value at the specified bar index.

Description

Calculates the Parabolic SAR (Stop and Reverse) indicator.

Example

Last updated