diff --git a/vnpy/app/cta_strategy/converter.py b/vnpy/app/cta_strategy/converter.py index e8d5423b..0ba57bba 100644 --- a/vnpy/app/cta_strategy/converter.py +++ b/vnpy/app/cta_strategy/converter.py @@ -219,7 +219,7 @@ class PositionHolding: elif order.offset == Offset.CLOSE: self.long_td_frozen += frozen - if self.long_td_frozen > self.short_td: + if self.long_td_frozen > self.long_td: self.long_yd_frozen += (self.long_td_frozen - self.long_td) self.long_td_frozen = self.long_td