psar#

psar(high, low, close=None, af0=None, af=None, max_af=None, offset=None, **kwargs)[source]#

Parabolic Stop and Reverse (psar)

Parabolic Stop and Reverse (PSAR) was developed by J. Wells Wilder, that is used to determine trend direction and it’s potential reversals in price. PSAR uses a trailing stop and reverse method called “SAR,” or stop and reverse, to identify possible entries and exits. It is also known as SAR.

PSAR indicator typically appears on a chart as a series of dots, either above or below an asset’s price, depending on the direction the price is moving. A dot is placed below the price when it is trending upward, and above the price when it is trending downward.

Sources:

https://www.tradingview.com/pine-script-reference/#fun_sar https://www.sierrachart.com/index.php?page=doc/StudiesReference.php&ID=66&Name=Parabolic

Calculation:
Default Inputs:

af0=0.02, af=0.02, max_af=0.2

See Source links

Args:

high (pd.Series): Series of ‘high’s low (pd.Series): Series of ‘low’s close (pd.Series, optional): Series of ‘close’s. Optional af0 (float): Initial Acceleration Factor. Default: 0.02 af (float): Acceleration Factor. Default: 0.02 max_af (float): Maximum Acceleration Factor. Default: 0.2 offset (int): How many periods to offset the result. Default: 0

Kwargs:

fillna (value, optional): pd.DataFrame.fillna(value) fill_method (value, optional): Type of fill method

Returns:

pd.DataFrame: long, short, af, and reversal columns.