Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 15:07:41 +0000



Post From: ACSIL - trailing stop loss and orders

[2019-09-17 10:54:58]
MattK - Posts: 42
I found a workaround.

I added this piece of code at the end:

if (PositionData.PositionQuantity == 1 && Stop1OrderID == 0)
    {
      sc.FlattenAndCancelAllOrders();
    }

Still working on why some stop loss are cancelled but at least now the system runs til' the end.