[Fix]close #1646
This commit is contained in:
parent
0836a5a7f8
commit
bfd5ac66d2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user