diff --git a/vn.trader/ctaStrategy/ctaPosition.py b/vn.trader/ctaStrategy/ctaPosition.py index 0fbcb64b..3e7e95b1 100644 --- a/vn.trader/ctaStrategy/ctaPosition.py +++ b/vn.trader/ctaStrategy/ctaPosition.py @@ -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