Support Board
Date/Time: Sat, 08 Nov 2025 21:33:14 +0000
Non-Attached OCO Orders With Multiple Profit Targets
View Count: 425
| [2025-09-01 08:13:27] |
| User688525 - Posts: 355 |
|
Hello Sierra, Is it possible to create a non-attached OCO order with a multiple Profit Targets but a single Stop limit? For example, instead of using an Attached order for 15 contracts (three Profit Targets with 5 contracts trimmed at each target and a single Stop for all 15 contracts), can an OCO be configured AFTER the order has been filled? From reading the documentation, it appears that sc.SubmitOCOOrder only supports a single Stop Limit and single Take Profit. Thank you |
| [2025-09-01 15:42:17] |
| John - SC Support - Posts: 42874 |
|
If you want these to be attached orders to a parent, then you should use one of the "Send Attached Orders by Position/Price" order types. Refer to the following: Order Types: Send Attached Orders - Position/Price Otherwise, submitting an OCO will be limited to the 1 Target and 1 Stop, but these can have attached orders of their own. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-09-02 05:38:15] |
| User688525 - Posts: 355 |
|
Hi John, Thank you for confirming. With the following: - SCT_ORDERTYPE_OCO_BUY_STOP_SELL_STOP - SCT_ORDERTYPE_OCO_BUY_STOP_LIMIT_SELL_STOP_LIMIT - SCT_ORDERTYPE_OCO_BUY_LIMIT_SELL_LIMIT Is more information available on how these specifically function and examples of implementation? For example, I am using "SCT_ORDERTYPE_OCO_BUY_STOP_SELL_STOP", however, for a short trade, the correct Stop and Take Profit order locations are being placed, but the take profits are Sell orders, not Buy orders. Do I also need to specify the type of order (Buy or Sell) as I have assumed that SCT_ORDERTYPE_OCO_BUY_STOP_SELL_STOP would place the correct type based on the direction of the trade? Thank you |
| [2025-09-02 13:05:54] |
| John - SC Support - Posts: 42874 |
|
The general information for the order types is at the following link: Order Types We do not know if there are specific examples for these order types in the files in your ACS_Source folder under your main Sierra Chart folder. You would need to search through those files to see if they have what you are looking for. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-09-03 09:09:49] |
| User688525 - Posts: 355 |
|
Hi John, I looked through the files in the ACS_Source folder (sierrachart.h, TradingSystem.cpp, etc.) as well as read the Order Types documentation and neither resolve the issue. There are two scenarios: 1. Execute naked short trade, i.e., no brackets or OCOs. - Create OCO after trade has been filled. - OCO is required to exit the position by buying above the entry price (stop loss) or below the entry price (profit target). Whichever is filled first cancels the other (OCO). - The Stop Loss should be a BUY STOP that becomes a market order once tagged. - The Take Profit should be a BUY LIMIT that remains a limit order until filled. 2. Execute naked long trade, i.e., no brackets or OCOs. - Create OCO after trade has been filled. - OCO is required to exit the position by selling below the entry price (stop loss) or above the entry price (profit target). Whichever is filled first cancels the other (OCO). - The Stop Loss should be a SELL STOP that becomes a market order once tagged. - The Take Profit should be a SELL LIMIT that remains a limit order until filled. I'm trying to understand which ACSIL order type to use as SCT_ORDERTYPE_OCO_BUY_STOP_SELL_STOP, SCT_ORDERTYPE_OCO_BUY_STOP_LIMIT_SELL_STOP_LIMIT and SCT_ORDERTYPE_OCO_BUY_LIMIT_SELL_LIMIT don’t appear to support this. Thank you |
| [2025-09-09 03:51:13] |
| User688525 - Posts: 355 |
|
Hi Sierra, Any guidance on this? |
| [2025-09-09 13:40:31] |
| Sierra_Chart Engineering - Posts: 21341 |
|
Use this order type: SCT_ORDERTYPE_OCO_LIMIT_STOP Refer to: Automated Trading From an Advanced Custom Study: Order Type Constants SCT_ORDERTYPE_OCO_LIMIT_STOP: Use s_NewOrder::Price1 to set the Limit price and s_NewOrder::Price2 to set the Stop price. Use sc.BuyOrder() or sc.SellOrder to submit the order when using this order type. All of the standard Auto Trade Management logic applies when using this order type, so you may want to use Unmanaged Automated Trading when submitting this type of order, so there are no restrictions.
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, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-09-10 05:14:59] |
| User688525 - Posts: 355 |
|
Hello Sierra, Thank you for confirming. This works! Can you also confirm which OCO type converts both the stop loss and take profit to market orders when triggered? |
| [2025-09-11 18:09:47] |
| Sierra_Chart Engineering - Posts: 21341 |
|
Not sure if there are any. You just need to look through what is available. 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, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [2025-09-12 12:06:42] |
| User688525 - Posts: 355 |
|
I have done so and it doesn't appear to exist. Is it possible for you to create an OCO type that converts a stop loss and take profit to market orders? |
To post a message in this thread, you need to log in with your Sierra Chart account:
