Separate the qlib factor calculation for independent use and simplify its usage.
Project description
项目用途
参考ailabx和qlib,优化了一些代码,将qlib因子计算独立出来使用。并简化使用方法。
用法设计
数据
使用内置的下载数据工具或使用自有数据源
计算因子
将因子写在用户指定的csv中:
因子名,因子表达式
feature1,$close/Ref($close,20)-1
label设置:
label0,Ref($close, -5)/Ref($close, -1) - 1
读取csv文件,并对指定的数据开展这些表达式的计算。
因子分析
pip install alphalens
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
golden_qlib_alpha-0.0.3.tar.gz
(18.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file golden_qlib_alpha-0.0.3.tar.gz.
File metadata
- Download URL: golden_qlib_alpha-0.0.3.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acc908793f3f0d822c0b304914ed0a2f67166ea0e14f79c2450694b829414fcd
|
|
| MD5 |
99d88ddb4c3bda298d72255df1d4f4ff
|
|
| BLAKE2b-256 |
b0740e06730234a0fbc013033e4caace6d183779924c24cd5ebd8bb8b677a29a
|
File details
Details for the file golden_qlib_alpha-0.0.3-py3-none-any.whl.
File metadata
- Download URL: golden_qlib_alpha-0.0.3-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97753dada0aafebf528e094af27ce18c3612fd5e23377f1b9a5f01d69fb158d1
|
|
| MD5 |
7d2639b578fb50bc6f1ad9ceacde0d83
|
|
| BLAKE2b-256 |
90635012f32a96fb9890306b4787613eb260a555eb9646ebcf9c8de0c90d17d2
|