qstick#

API documentation for pandas_ta.trend.qstick Python function.

qstick(open_, close, length=None, offset=None, **kwargs)[source]#

Q Stick

The Q Stick indicator, developed by Tushar Chande, attempts to quantify and identify trends in candlestick charts.

Sources:

https://library.tradingtechnologies.com/trade/chrt-ti-qstick.html

Calculation:
Default Inputs:

length=10

xMA is one of: sma (default), dema, ema, hma, rma qstick = xMA(close - open, length)

Args:

open (pd.Series): Series of ‘open’s close (pd.Series): Series of ‘close’s length (int): It’s period. Default: 1 ma (str): The type of moving average to use. Default: None, which is ‘sma’ 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.Series: New feature generated.