stockstats icon indicating copy to clipboard operation
stockstats copied to clipboard

Supply a wrapper ``StockDataFrame`` based on the ``pandas.DataFrame`` with inline stock statistics/indicators support.

Results 20 stockstats issues
Sort by recently updated
recently updated
newest added

Thanks for sharing this work. I'm trying to adapt to it and I just found two problems. My DataFrame is `df = yf.download("AAPL", start="2020-01-01", end="2020-12-31") stock_df = StockDataFrame.retype(df)` when executing...

Hi, This library is very useful as its based on pandas, i'm looking for aroon indicator please consider for implementation. Thank you

enhancement

Hi! Thanx for the amazing package ! But after I installed the package using pip and trying to load data , it gives an error : **AttributeError: type object 'StockDataFrame'...

bug

Hi I am working on a project for auto trading and I wonder if you have a function for me to grab all the indicators that you are supporting right...

Hello. The library is just great. I would like to add an indicator (SSL Channel). Can you suggest how to do it?

df = pro.daily(ts_code="000027.SZ", start_date='20080101', end_date='20220410') # 用tushare的接口获取股票数据 #对数据做reverse df = df.reindex(index=df.index[::-1]) df = df.reset_index(drop=True) stockStat = stockstats.StockDataFrame.retype(df) print(stockStat[['close', 'pdi', 'mdi', 'adx','adxr', 'macd']]) 最后输出结果与股票app上的数据对不上 请问是我使用的方法有问题吗?

See the description of the indicator here: https://www.investopedia.com/terms/i/ichimoku-cloud.asp

enhancement

``` def _get_vr(self, windows=None): if windows is None: window = self.VR column_name = 'vr' else: window = self.get_int_positive(windows) column_name = 'vr_{}'.format(window) idx = self.index gt_zero = np.where(self['change'] > 0, self['volume'],...

Use this issue to track the changes in the document.

enhancement

A weighted moving average is calculated as x = (n*Ct + (n-1)*Ct-1 + ... + 1*Ct-n) / (n+n-1+n-2+...+1)

wait on originator