Login Page - Create Account

Support Board


Date/Time: Sat, 28 Jun 2025 01:20:27 +0000



Post From: OCO orders still showing after a filled sell order is bought using ACSIL

[2021-09-22 17:58:26]
User133994 - Posts: 81
Support,

Thanks for the idea. It didn't quite work, but led me to a solution.

Paradigm: a) 1 trade with 4 orders and 4 OCO groups vs b) 4 trades with 1 OCO group each

Your solution works for the b) paradigm. I need the a) paradigm to work...so I discovered I needed to go ahead with this:

1) use the sc.BuyOrder() to exit my sell
2) manually cancel the associated OCO group orders: sc.CancelOrder(Target1OrderID), sc.CancelOrder(Stop1OrderID)

That allowed for the other 3 open positions with their OCO groups to remain active and working--while I "manually" exited 1 position.

If I am using these functions in a manner that wasn't intended please let me know. Just because it works doesn't mean it is "correct" or the appropriate way to do something. Thanks for thinking through this with me. If there is a better way please let me know--I'm all about efficiency.