Login Page - Create Account

Support Board


Date/Time: Sun, 02 Feb 2025 16:56:45 +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.