Support Board
Date/Time: Sun, 28 Jun 2026 09:14:12 +0000
Post From: Sample code for sc.SetAttachedOrders
| [2022-01-19 10:44:05] |
| User431178 - Posts: 888 |
|
Example code on that page has no sample for sc.SetAttachedOrders.
Am looking for a solution in ACSIL for - If two exit orders Limit and stop have been created separately ( without using the s_SCNewOrder structure Target1 / Stop1 etc ), how to make them OCO? If you read Automated Trading From an Advanced Custom Study: sc.SetAttachedOrders, you would already know that this function has nothing to do with submitting orders. Instead look at Automated Trading From an Advanced Custom Study: sc.SubmitOCOOrder(), maybe cancel and replace your existing exit orders with an OCO pair.... |
