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

关于组合回测, #97

Closed
viponedream opened this issue Jun 23, 2016 · 1 comment
Closed

关于组合回测, #97

viponedream opened this issue Jun 23, 2016 · 1 comment

Comments

@viponedream
Copy link

viponedream commented Jun 23, 2016

昨天弄回测,突然想到,可以写个组合回测啊。
列出各种参数组合传给策略,不是挺好的吗?
可惜水平差,写不出来。
这个功能挺实用的。

如这样
# dict的个数无限,名称未知
d = OrderedDict()
d['a'] = [1,2,3]
d['b'] = [0.1,0.2,0,3,0.4]
d['c'] = [10,20]
d['xxxxx'] = [1,2,3,4,5,6] 等等,参数以及值。

最后得到各种排列。

# 如 d['a'] = 1     d['b'] = 0.1    d['c'] = 10
#     d['a'] = 1     d['b'] = 0.1    d['c'] = 20
#     d['a'] = 1     d['b'] = 0.2    d['c'] = 10
#     d['a'] = 1     d['b'] = 0.2    d['c'] = 20
#     d['a'] = 1     d['b'] = 0.3    d['c'] = 10    等

等等。

@vnpy
Copy link
Owner

vnpy commented Jul 22, 2016

已经在dev里增加了参数优化功能。

@vnpy vnpy closed this as completed Jul 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants