Login Page - Create Account

Support Board


Date/Time: Wed, 03 Sep 2025 19:06:22 +0000



Non-Attached OCO Orders With Multiple Profit Targets

View Count: 83

[2025-09-01 08:13:27]
User688525 - Posts: 306
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: 41608
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: 306
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: 41608
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: 306
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

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account