Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
掘金社区
GP 发表在 策略研究 2020-10-19 04:36:08
如何记录回测过程中所有的交易
如何记录回测过程中所有的交易Pinned highlighted
GP 发表在策略研究 2020-10-19 04:36:08
我想记录回测过程中所有的交易(symbol,交易数量,价格,买卖方向,交易时间),然后输出到文本文档,请问能做到吗?
方法一:打开策略回测结果,下载交易明细。 方法二:在程序中添加写入文本的代码。利用on_order_status()判断当status=3时,表示已经成交。然后将context里面的参数写进txt中。
@四两 明白了。谢谢!
GP
热门标签
热门推荐
Looks like your connection to 掘金量化社区 - 量化交易者的交流社区 was lost, please wait while we try to reconnect.