brar#

brar(open_, high, low, close, length=None, scalar=None, drift=None, offset=None, **kwargs)[source]#

BRAR (BRAR)

BR and AR

Sources:

No internet resources on definitive definition. Request by Github user homily, issue #46

Calculation:
Default Inputs:

length=26, scalar=100

SUM = Sum

HO_Diff = high - open OL_Diff = open - low HCY = high - close[-1] CYL = close[-1] - low HCY[HCY < 0] = 0 CYL[CYL < 0] = 0 AR = scalar * SUM(HO, length) / SUM(OL, length) BR = scalar * SUM(HCY, length) / SUM(CYL, length)

Args:

open_ (pd.Series): Series of ‘open’s high (pd.Series): Series of ‘high’s low (pd.Series): Series of ‘low’s close (pd.Series): Series of ‘close’s length (int): The period. Default: 26 scalar (float): How much to magnify. Default: 100 drift (int): The difference period. Default: 1 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: ar, br columns.