Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/jealous/stockstats
/ functions
Functions
317 in github.com/jealous/stockstats
⨍
Functions
317
◇
Types & classes
5
↓ 257 callers
Function
near_to
(value)
test.py:62
↓ 35 callers
Method
get_stock_90days
(self)
test.py:107
↓ 26 callers
Method
get_stock_20days
(self)
test.py:101
↓ 20 callers
Method
ema
(series, window, *, adjust=True, min_periods=1)
stockstats.py:1123
↓ 20 callers
Method
to_series
(self, arr: Union[list, np.ndarray])
stockstats.py:1930
↓ 19 callers
Method
sma
(cls, series, size)
stockstats.py:1042
↓ 13 callers
Method
s_shift
Shift the series When window is negative, shift the past period to current. Fill the gap with the first data available. When
stockstats.py:389
↓ 11 callers
Method
name_ex
(self, ex)
stockstats.py:209
↓ 10 callers
Method
parse_column_name
(name)
stockstats.py:1934
↓ 10 callers
Method
roc
(series, size)
stockstats.py:1046
↓ 10 callers
Function
wrap
wraps a pandas DataFrame to StockDataFrame :param df: pandas DataFrame :param index_column: the name of the index column, default to ``date``
stockstats.py:221
↓ 9 callers
Method
is_cross_columns
(cls, name)
stockstats.py:1949
↓ 8 callers
Method
get_stock
(self)
test.py:110
↓ 8 callers
Method
get_stock_30days
(self)
test.py:104
↓ 8 callers
Method
mov_sum
(cls, series, size)
stockstats.py:1038
↓ 7 callers
Method
_df_to_series
(column)
stockstats.py:253
↓ 7 callers
Method
_rolling_sum
Compute rolling sum with min_periods=1 using numpy.
stockstats.py:422
↓ 7 callers
Method
_tp
(self)
stockstats.py:972
↓ 7 callers
Method
within
(self, start_date, end_date)
stockstats.py:2147
↓ 6 callers
Method
_rolling
(series: pd.Series, window: int)
stockstats.py:1129
↓ 6 callers
Method
copy
(self, deep=True)
stockstats.py:2151
↓ 6 callers
Function
not_has
(item)
test.py:66
↓ 6 callers
Method
smma
(series, window)
stockstats.py:588
↓ 5 callers
Method
linear_reg
(cls, series, window, correlation=False)
stockstats.py:1161
↓ 5 callers
Method
mov_max
(cls, series, size)
stockstats.py:1034
↓ 5 callers
Method
mov_min
(cls, series, size)
stockstats.py:1030
↓ 4 callers
Method
_atr
(self, window)
stockstats.py:817
↓ 4 callers
Method
_sym_wma4
(arr: np.ndarray)
stockstats.py:1673
↓ 4 callers
Method
drop_column
drop column by the name multiple names can be supplied in a list :return: StockDataFrame
stockstats.py:2025
↓ 4 callers
Method
to_ints
(cls, shifts)
stockstats.py:325
↓ 3 callers
Method
_col_diff
(self, col)
stockstats.py:1976
↓ 3 callers
Method
_eri
(self, window)
stockstats.py:1291
↓ 3 callers
Method
_get_int
(self, i)
stockstats.py:156
↓ 3 callers
Method
_get_pdi_ndi
(self, window)
stockstats.py:916
↓ 3 callers
Method
_get_pdm_ndm
(self, window)
stockstats.py:859
↓ 3 callers
Method
_hl_mid
(self, period)
stockstats.py:1352
↓ 3 callers
Method
_mad
Mean Absolute Deviation :param series: Series :param window: number of periods :return: Series
stockstats.py:1066
↓ 3 callers
Method
_np_diff
(arr: np.ndarray)
stockstats.py:512
↓ 3 callers
Method
_rsi
(self, window)
stockstats.py:517
↓ 3 callers
Method
_set_nan_of_single_shift
(pd_obj, shift)
stockstats.py:358
↓ 3 callers
Method
_shifted_cr_sma
(self, cr, window)
stockstats.py:968
↓ 3 callers
Method
_tr
(self)
stockstats.py:658
↓ 3 callers
Method
_wt1
wave trand 1 n1: period of EMA on typical price n2: period of EMA
stockstats.py:556
↓ 3 callers
Function
get_file
(filename)
test.py:57
↓ 3 callers
Method
mov_std
(cls, series, window)
stockstats.py:1397
↓ 3 callers
Method
parse_cross_column
(cls, name)
stockstats.py:1957
↓ 3 callers
Method
retype
if the input is a `DataFrame`, convert it to this class. :param index_column: name of the index column, default to `date` :param valu
stockstats.py:2163
↓ 2 callers
Method
__init_column
(self, key)
stockstats.py:2119
↓ 2 callers
Method
_calc_kd
(self, column)
stockstats.py:986
↓ 2 callers
Function
_call_handler
(handler: Callable)
stockstats.py:216
↓ 2 callers
Method
_dx
(self, window)
stockstats.py:935
↓ 2 callers
Method
_get_handler
(self, name: str)
stockstats.py:2060
↓ 2 callers
Method
_ppo_and_pvo
(self, name: str, ser: pd.Series, meta: _Meta)
stockstats.py:1247
↓ 2 callers
Method
_rolling_arg_index
(arr, window, mode="max")
stockstats.py:738
↓ 2 callers
Method
_rsv
(self, window)
stockstats.py:495
↓ 2 callers
Method
_rvgi
Relative Vigor Index (RVGI) The Relative Vigor Index (RVI) is a momentum indicator used in technical analysis that measures the stren
stockstats.py:1691
↓ 2 callers
Method
_shift_arr
(arr: np.ndarray, window: int)
stockstats.py:376
↓ 2 callers
Method
_shifted_columns
(self, column: pd.Series, shifts: list[int])
stockstats.py:463
↓ 2 callers
Method
drop_head
drop n rows from the beginning :return: StockDataFrame
stockstats.py:2049
↓ 2 callers
Method
drop_tail
drop n rows from the tail :return: StockDataFrame
stockstats.py:2038
↓ 2 callers
Method
get_int_positive
(cls, windows)
stockstats.py:1343
↓ 2 callers
Method
ker
(self, column, window)
stockstats.py:1543
↓ 2 callers
Method
linear_wma
Linear Weighted Moving Average (WMA) using vectorized NumPy. Returns 0 for first window-1 positions.
stockstats.py:1133
↓ 1 callers
Method
__init_not_exist_column
(self, key)
stockstats.py:2093
↓ 1 callers
Method
_delta
(series, window)
stockstats.py:1023
↓ 1 callers
Method
_divide
(a: np.ndarray, b: np.ndarray)
stockstats.py:485
↓ 1 callers
Method
_ftr
(self, window: int)
stockstats.py:1612
↓ 1 callers
Method
_get_compare
(self, key)
stockstats.py:2004
↓ 1 callers
Method
_get_cross
(self, key)
stockstats.py:1987
↓ 1 callers
Method
_get_delta
(self, key)
stockstats.py:1982
↓ 1 callers
Method
_get_rvgi
(self, meta: _Meta)
stockstats.py:1733
↓ 1 callers
Method
_inertia
Inertia Indicator https://theforexgeek.com/inertia-indicator/ In financial markets, the concept of inertia was given by Donald Dorse
stockstats.py:1741
↓ 1 callers
Method
_kst
Know Sure Thing (kst) https://www.investopedia.com/terms/k/know-sure-thing-kst.asp The Know Sure Thing (KST) is a momentum oscillato
stockstats.py:1762
↓ 1 callers
Method
_ndm
(self, window)
stockstats.py:878
↓ 1 callers
Method
_pdm
(self, window)
stockstats.py:874
↓ 1 callers
Method
_pgo
Pretty Good Oscillator (PGO) https://library.tradingtechnologies.com/trade/chrt-ti-pretty-good-oscillator.html The Pretty Good Oscil
stockstats.py:1789
↓ 1 callers
Method
_psl
Psychological Line (PSL) The Psychological Line indicator is the ratio of the number of rising periods over the total number of perio
stockstats.py:1814
↓ 1 callers
Function
dft_column
(name: str)
stockstats.py:121
↓ 1 callers
Function
dft_windows
(name: str)
stockstats.py:112
↓ 1 callers
Method
init_all
initialize all stats. in the handler
stockstats.py:2020
↓ 1 callers
Method
is_compare_columns
(cls, name)
stockstats.py:1953
↓ 1 callers
Method
mov_var
(cls, series, window)
stockstats.py:1405
↓ 1 callers
Method
parse_compare_column
(cls, name)
stockstats.py:1965
↓ 1 callers
Method
set_name
(self, name: str)
stockstats.py:205
↓ 1 callers
Method
set_nan
(cls, pd_obj, shift)
stockstats.py:346
↓ 1 callers
Method
start_from
(self, start_date)
stockstats.py:2144
↓ 1 callers
Method
sym_wma4
(cls, series: pd.Series)
stockstats.py:1687
↓ 1 callers
Method
till
(self, end_date)
stockstats.py:2141
↓ 1 callers
Method
to_int
(cls, shifts)
stockstats.py:330
↓ 1 callers
Function
unwrap
convert a StockDataFrame back to a pandas DataFrame
stockstats.py:231
Method
__getitem__
(self, item)
stockstats.py:2126
Method
__init__
(self, name, *, column=None, windows=None)
stockstats.py:128
Method
_ensure_type
override the method in pandas, omit the check This patch is not the perfect way but could make the lib work.
stockstats.py:2155
Method
_get_ao
get awesome oscillator The AO indicator is a good indicator for measuring the market dynamics, it reflects specific changes in the dr
stockstats.py:1481
Method
_get_aroon
Aroon Oscillator The Aroon Oscillator measures the strength of a trend and the likelihood that it will continue. The default
stockstats.py:762
Method
_get_atr
Average True Range The average true range is an N-day smoothed moving average (SMMA) of the true range values. Default to 14 periods
stockstats.py:821
Method
_get_boll
Get Bollinger bands. boll_ub means the upper band of the Bollinger bands boll_lb means the lower band of the Bollinger bands
stockstats.py:1207
Method
_get_bop
get balance of power The Balance of Power indicator measures the strength of the bulls. https://school.stockcharts.com/doku.php?id=te
stockstats.py:1502
Method
_get_c
get the count of column in range (shifts) example: change_20_c :return: result series
stockstats.py:434
Method
_get_cci
Commodity Channel Index CCI = (Typical Price - 20-period SMA of TP) / (.015 x Mean Deviation) * when amount is not available:
stockstats.py:641
next →
1–100 of 317, ranked by callers