Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 06:44:51 +0000



Post From: SCT_ORDERTYPE_OCO_BUY_STOP_SELL_STOP question

[2014-04-11 04:12:03]
Sierra Chart Engineering - Posts: 104368
// modify the target and stop of both the orders
s_SCNewOrder order;
order.InternalOrderID = BuyStopOrderID;
order.Target1Price = 110;
order.Stop1Price = 90;
sc.ModifyOrder(order);

order.InternalOrderID = SellStopOrderID;
order.Target1Price = 40;
order.Stop1Price = 60;
sc.ModifyOrder(order);

This will not work. As the documentation says here:
https://www.sierrachart.com/index.php?l=doc/doc_ACSILTrading.html#s_SCNewOrder

When you are modifying the Stop or Target order you will use Price1. Also when submitting the OCO order you do not have access to the internal order IDs for the second Target and Stop order set. You will have to search for those by iterating through the orders, but we can add the capability to set them.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2014-04-11 04:23:28