修正GUI中仓位变量pos不能实时更新的问题。
This commit is contained in:
parent
f288dfc714
commit
1d0240f143
@ -233,8 +233,8 @@ class AtrRsiStrategy(CtaTemplate):
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
def onTrade(self, trade):
|
||||
pass
|
||||
|
||||
# 发出状态更新事件
|
||||
self.putEvent()
|
||||
|
||||
if __name__ == '__main__':
|
||||
# 提供直接双击回测的功能
|
||||
|
Loading…
Reference in New Issue
Block a user