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

是否可以在result.pkl中记录自定义数据? #48

Closed
merz9b opened this issue Feb 21, 2017 · 1 comment
Closed

是否可以在result.pkl中记录自定义数据? #48

merz9b opened this issue Feb 21, 2017 · 1 comment

Comments

@merz9b
Copy link
Contributor

merz9b commented Feb 21, 2017

  1. 现在是否有类似zipline的record函数,在before_trading,handle_bar中调用记录相关指标?

zipline.api.record

zipline.api.record(self, *args, **kwargs)
Track and record values each day.

Parameters:	
**kwargs

The names and values to record.

Notes

These values will appear in the performance packets and the performance dataframe passed to analyze and returned from run_algorithm().
  1. logger.info好像有一些bug,在Spyder中回测时会重复打印.
@cedricporter
Copy link
Member

目前 plot("name", value) 会输出到 pkl 文件里面,而且会绘制出来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants