Lipi Reference
Lipi

Functions

talib.psar()

Parabolic SAR, controlled by three numbers rather than a bar count: where the calculation starts, how much it moves on each step, and how far it is allowed to go. All three accept an int or a float.

Syntax

                talib.psar(series float start, series float step, series float max_step) → series float
              

Arguments

start required series float This is the initial acceleration factor
step required series float This is the amount by which the acceleration factor increases each time the trend continues in the same direction.
max_step required series float This is the maximum value the acceleration factor can reach

Return Type

series float

Example


          //@lipi=2
indicator("Parabolic SAR (PSAR)", overlay=true)
start = input.float(0.02, title="Start", minval=0.01)
step = input.float(0.02, title="Step", minval=0.01)
max_step = input.float(0.2, title="Max Step", minval=0.1)
psar = talib.psar(start, step, max_step)
plot(psar, color=color.blue, title="PSAR", linewidth=2,style=plotStyle.scatter)