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
如何在ontick里面调用onOrder的变量? #23
Comments
在策略的Class里,创建一个类成员,比如self.lastOrder。 然后onOrder函数里,使用self.lastOrder = order缓存下来。 在onTick里就可以随意调用了。 |
` # CTA委托类型映射
把代码放到onTick里面,极个别会出现不成交的撤销不了的情况,请看一下原因,谢谢 |
撤销不了的委托,在OrderMonitor里面,显示的状态是什么? |
如何载onTick里面调用onOrder里面的onOrder.status等变量?
用global吗?
The text was updated successfully, but these errors were encountered: