This commit is contained in:
vn.py 2019-04-30 13:57:14 +08:00
parent 0836a5a7f8
commit bfd5ac66d2

View File

@ -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