bug fix
This commit is contained in:
parent
e844307987
commit
973a627dd1
@ -107,7 +107,7 @@ class CtaPosition:
|
|||||||
self.writeCtaLog(u'多仓:{0}->{1}'.format(self.longPos, self.longPos - vol))
|
self.writeCtaLog(u'多仓:{0}->{1}'.format(self.longPos, self.longPos - vol))
|
||||||
self.writeCtaLog(u'净:{0}->{1}'.format(self.pos, self.pos-vol))
|
self.writeCtaLog(u'净:{0}->{1}'.format(self.pos, self.pos-vol))
|
||||||
|
|
||||||
self.shortPos -= vol
|
self.longPos -= vol
|
||||||
self.pos -= vol
|
self.pos -= vol
|
||||||
self.strategy.pos = self.pos
|
self.strategy.pos = self.pos
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user