Support Board
Date/Time: Sun, 09 Nov 2025 06:54:34 +0000
Post From: Stoploss rejected in ACSIL auto trading system
| [2020-08-01 21:26:10] |
| User820318 - Posts: 40 |
|
Thanks very much. Something like the below? // Flatten if position open with no working orders s_SCTradeOrder ExistingStopOrder; int OrderResult = sc.GetNearestStopOrder(ExistingStopOrder); if (PositionData.PositionQuantity != 0 && !OrderResult) { sc.FlattenPosition(); sc.AddMessageToLog("Position exists with no stop. Position was Flattened.", 1); } |
