技术指标库提供了获取股票市场技术指标的方法。
technical-indicators-lib的Python项目详细描述
技术指标
Technical indicators library provides means to derive stock market technical indicators.
提供使用原始OHLCV(开、高、低、收盘、成交量)值派生技术指标的多种方法。在
目前支持35项技术指标。在
提供两种获取值的方法
- 在
您可以发送一个由所需值组成的pandas数据帧,然后您将获得一个新的数据帧,并附加必需的列作为返回。在
注意:确保列名是小写的,如下所示:
在- Open values should be named 'open' - High values should be named 'high' - Low values should be named 'low' - Close values should be named 'close' - Volume values should be named 'volume'
- 在
您可以发送numpy数组或pandas系列所需的值,您将得到一个新的pandas系列作为回报。在
在
安装
^{pr2}$使用
# import dependenciesimportpandasaspdimportnumpyasnp# importing an indicator classfromtechnical_indicators_libimportOBV# instantiate the classobv=OBV()# load data into a dataframe dfdf=pd.read_csv("./test/data/test_data.csv")# Method 1: get the data by sending a dataframedf=obv.get_value_df(df)# Method 2: get the data by sending series valuesobv_values=obv.get_value_list(df["close"],df["volume"])
文件
https://technical-indicators-library.readthedocs.io/en/latest/
发展
想做贡献吗?在
太好了。按照以下步骤操作
git clone https://github.com/kunalkini015/technical-indicators.git
cd technical_indicator_lib
pip install -r requirements.txt
那你就可以走了。您可以创建一个拉请求或在kunalkini15@gmail.com给我写信
托多
- 在
将指标分为不同的模块,如趋势、动量、波动率、成交量等
在 - 在
添加测试。在
在 - 在
添加更多指标。在
在
学分
由Kunal Kini K开发,他是一位专业且充满激情的软件工程师。在
如果您有任何意见、反馈或疑问,请写信给我kunalkini15@gmail.com
- 项目
标签: