修正GUI中仓位变量pos不能实时更新的问题。

This commit is contained in:
RT Server 2016-12-15 13:46:34 +08:00
parent f288dfc714
commit 1d0240f143

View File

@ -233,8 +233,8 @@ class AtrRsiStrategy(CtaTemplate):
#----------------------------------------------------------------------
def onTrade(self, trade):
pass
# 发出状态更新事件
self.putEvent()
if __name__ == '__main__':
# 提供直接双击回测的功能