Skip to content

Commit 53e6f07

Browse files
committed
Code cleanup.
1 parent e600cc1 commit 53e6f07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Algo/Strategies/StrategyPositionManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public OrderResults ProcessOrder(Order order)
419419
if (_lastPrices.TryGetValue(order.Security.ToSecurityId(), out var lastPrice2))
420420
{
421421
var value = newQty.Abs() * lastPrice2;
422-
position.CurrentPrice = value == 0 ? 0m : value;
422+
position.CurrentPrice = value;
423423
}
424424
else
425425
{

0 commit comments

Comments
 (0)