Skip to content

Commit 6bec33e

Browse files
authored
Merge pull request #438 from microsoft/nested_decision_exe
Support Highfreq Backtest with the Model/Rule/RL Strategy
2 parents 8cf6ed3 + 48a860c commit 6bec33e

File tree

142 files changed

+10337
-2882
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+10337
-2882
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ jobs:
4949
pip install --upgrade cython jupyter jupyter_contrib_nbextensions numpy scipy scikit-learn # installing without this line will cause errors on GitHub Actions, while instsalling locally won't
5050
pip install -e .
5151
52+
- name: Test data downloads
53+
run: |
54+
if [ "$RUNNER_OS" == "Windows" ]; then
55+
$CONDA\\python.exe scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data --interval 1d --region cn
56+
else
57+
$CONDA/bin/python scripts/get_data.py qlib_data --target_dir ~/.qlib/qlib_data/cn_data --interval 1d --region cn
58+
fi
59+
shell: bash
60+
5261
- name: Install test dependencies
5362
run: |
5463
pip install --upgrade pip

.github/workflows/test_macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
python -m pip install black
3232
python -m black qlib -l 120 --check --diff
3333
# Test Qlib installed with pip
34+
3435
- name: Install Qlib with pip
3536
run: |
3637
python -m pip install numpy==1.19.5

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dist/
2020
.nvimrc
2121
.vscode
2222

23+
qlib/VERSION.txt
2324
qlib/data/_libs/expanding.cpp
2425
qlib/data/_libs/rolling.cpp
2526
examples/estimator/estimator_example/

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Recent released features
2525
Features released before 2021 are not listed here.
2626

2727
<p align="center">
28-
<img src="http://fintech.msra.cn/images_v060/logo/1.png" />
28+
<img src="http://fintech.msra.cn/images_v070/logo/1.png" />
2929
</p>
3030

3131

@@ -70,7 +70,7 @@ Your feedbacks about the features are very important.
7070
# Framework of Qlib
7171

7272
<div style="align: center">
73-
<img src="http://fintech.msra.cn/images_v060/framework.png?v=0.2" />
73+
<img src="docs/_static/img/framework.svg" />
7474
</div>
7575

7676

@@ -247,19 +247,19 @@ Qlib provides a tool named `qrun` to run the whole workflow automatically (inclu
247247
2. Graphical Reports Analysis: Run `examples/workflow_by_code.ipynb` with `jupyter notebook` to get graphical reports
248248
- Forecasting signal (model prediction) analysis
249249
- Cumulative Return of groups
250-
![Cumulative Return](http://fintech.msra.cn/images_v060/analysis/analysis_model_cumulative_return.png?v=0.1)
250+
![Cumulative Return](http://fintech.msra.cn/images_v070/analysis/analysis_model_cumulative_return.png?v=0.1)
251251
- Return distribution
252-
![long_short](http://fintech.msra.cn/images_v060/analysis/analysis_model_long_short.png?v=0.1)
252+
![long_short](http://fintech.msra.cn/images_v070/analysis/analysis_model_long_short.png?v=0.1)
253253
- Information Coefficient (IC)
254-
![Information Coefficient](http://fintech.msra.cn/images_v060/analysis/analysis_model_IC.png?v=0.1)
255-
![Monthly IC](http://fintech.msra.cn/images_v060/analysis/analysis_model_monthly_IC.png?v=0.1)
256-
![IC](http://fintech.msra.cn/images_v060/analysis/analysis_model_NDQ.png?v=0.1)
254+
![Information Coefficient](http://fintech.msra.cn/images_v070/analysis/analysis_model_IC.png?v=0.1)
255+
![Monthly IC](http://fintech.msra.cn/images_v070/analysis/analysis_model_monthly_IC.png?v=0.1)
256+
![IC](http://fintech.msra.cn/images_v070/analysis/analysis_model_NDQ.png?v=0.1)
257257
- Auto Correlation of forecasting signal (model prediction)
258-
![Auto Correlation](http://fintech.msra.cn/images_v060/analysis/analysis_model_auto_correlation.png?v=0.1)
258+
![Auto Correlation](http://fintech.msra.cn/images_v070/analysis/analysis_model_auto_correlation.png?v=0.1)
259259
260260
- Portfolio analysis
261261
- Backtest return
262-
![Report](http://fintech.msra.cn/images_v060/analysis/report.png?v=0.1)
262+
![Report](http://fintech.msra.cn/images_v070/analysis/report.png?v=0.1)
263263
<!--
264264
- Score IC
265265
![Score IC](docs/_static/img/score_ic.png)
@@ -389,7 +389,7 @@ Qlib data are stored in a compact format, which is efficient to be combined into
389389
Join IM discussion groups:
390390
|[Gitter](https://gitter.im/Microsoft/qlib)|
391391
|----|
392-
|![image](http://fintech.msra.cn/images_v060/qrcode/gitter_qr.png)|
392+
|![image](http://fintech.msra.cn/images_v070/qrcode/gitter_qr.png)|
393393
394394
# Contributing
395395
4.15 KB
Loading
-117 Bytes
Loading
-3.22 KB
Loading
-9.7 KB
Loading
-866 Bytes
Loading
-1.08 KB
Loading

0 commit comments

Comments
 (0)