Support Board
Date/Time: Mon, 10 Mar 2025 07:53:01 +0000
Post From: Sample code for sc.SetAttachedOrders
[2022-01-19 10:44:05] |
User431178 - Posts: 612 |
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 https://www.sierrachart.com/index.php?page=doc/ACSILTrading.html#scSetAttachedOrders, you would already know that this function has nothing to do with submitting orders. Instead look at https://www.sierrachart.com/index.php?page=doc/ACSILTrading.html#scSubmitOCOOrder, maybe cancel and replace your existing exit orders with an OCO pair.... |