Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some bugs for newer version of dask and pip #1

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@

rqalpha自带的数据源在使用池化资源进行参数优化时会造成内存泄露,该插件解决了该问题并封装了参数优化方法

### 修改日志
20191019
增加了修改回测起始时间的办法

## 安装方法
在Terminal中运行以下命令
```
$ pip install git+https://github.com/xingetouzi/rqalpha-mod-optimization.git
$ rqalpha mod install optimization
```
或者:
```
$ git clone
$ sh reinstall.sh
```

## rqalpha中关于外部参数传入的方案
在rqalpha中,如需从外部向策略中传入参数,可以设置如下项```config["extra"]["context_vars"]```:
Expand Down Expand Up @@ -150,4 +159,4 @@ if __name__ == "__main__":
except Exception as e:
logging.exception(e)
print("******POOL TERMINATE*******")
```
```
6 changes: 6 additions & 0 deletions reinstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
echo y | rqalpha mod uninstall optimization
python setup.py build
python setup.py install
rqalpha mod install optimization
rqalpha mod enable optimization
rqalpha mod list
Loading