Support Board
Date/Time: Mon, 15 Sep 2025 22:51:23 +0000
Post From: OCO orders still showing after a filled sell order is bought using ACSIL
[2021-09-21 15:11:21] |
ForgivingComputers.com - Posts: 1122 |
I finally got it to do what I want...but in an unconventional method> I simply did a sc.buyentry (SC_ordertype_market) and that action got me down to 3; however, the Trade Orders Window still showed the 1st sell entry as "open" even though the trade window chart position was reduced to 3?
When the orders are filled, save the parent order IDs for each as persistent variables. Then when it is time to exit one of them: NewOrder.InternalOrderID = ParentOrderID1;
// Use sc.SellExit for sc.SellEntry orders, and sc.BuyExit for sc.BuyEntry orders sc.SellExit(NewOrder); When the Exit order fills, the OCO orders for that trade will be canceled and you will be left with 3 sets of orders. |