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 Starting value of the calculation.
step required series float Amount added at each step.
max_step required series float Upper bound that value will not pass.

Return Type

series float

Example


          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 = ta.psar(start, step, max_step)
plot(psar, color=color.blue, title="PSAR", linewidth=2,style=plotStyle.scatter)