This commit is contained in:
msincenselee 2017-05-20 21:23:34 +08:00
parent e844307987
commit 973a627dd1

View File

@ -107,7 +107,7 @@ class CtaPosition:
self.writeCtaLog(u'多仓:{0}->{1}'.format(self.longPos, self.longPos - vol))
self.writeCtaLog(u'净:{0}->{1}'.format(self.pos, self.pos-vol))
self.shortPos -= vol
self.longPos -= vol
self.pos -= vol
self.strategy.pos = self.pos