Support Board
Date/Time: Tue, 13 May 2025 13:22:45 +0000
Post From: During replay back testing I can't close opened position by sc.CancelOrder()
[2015-01-15 14:00:33] |
User27611 - Posts: 4 |
Dear sir, during replay back testing I can't close opened position by sc.CancelOrder(). After my BuyLimit order was filled, IsWorkingOrderStatus() returns 0, so, sc.CancelOrder() returns error, because order is no longer opened and can't be canceled. Order number is same and I can see filled order in the Order and Positions window. So, how I can close opened position? Thank you, Alexander Vysotsky. |