Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 10:13:49 +0000



[Locked] - Server-side OCO and Bracket Orders

View Count: 25626

[2014-08-09 21:35:05]
Sierra Chart Engineering - Posts: 104368
1173 has been released and solves the issue with trailing stops with server side bracket orders when using IB. We have not done any testing yet because the markets have been closed, but we do not expect there to be any issues either.
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-08-10 21:55:22
[2014-08-10 08:03:20]
Sierra Chart Engineering - Posts: 104368


In regards to server side bracket orders with CQG and CTS, there is more work involved and we will not be able release server-side bracket order support for these services just yet.

We should not have any trouble releasing this with OEC and we will definitely get that this coming week .
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
[2014-08-10 11:41:53]
Sierra Chart Engineering - Posts: 104368
Post #23 fully reviewed.
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
[2014-08-13 10:56:20]
Sierra Chart Engineering - Posts: 104368
Server side bracket orders for CTS will be out today.
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
[2014-08-29 10:59:32]
umair1 - Posts: 86
Rithmic R|Trader has a lot of options available when placing trades like: Release when (time or price), Cancel when (time). These are server side orders.

I use the "release when" orders frequently to exit trades before the end of day to meet overnight requirements and it works very reliably.

When a "release when" order is placed in R|Trader it displays in Sierra Chart with the words (pending open). It would be nice if Sierra Chart could incorporate the "release when" type order.

With the "release when" price type order it should be easy to set up a server side OCO order- place target/stop "release when" orders at the same time as the main order. If one of the target/stop orders fills, then cancel the other.
[2014-09-01 11:14:36]
moonmist - Posts: 127
Hi,

Running Sierra Chart version 1182 connecting to TWS 946.2h ( Standalone version ) on Windows 7 64-bit operating system. Found the following problem with a paper-trading account:

Placed an ES limit SELL order at 2006.00 with a four-tick target (limit order) and an eight-tick stop. Nothing happened. When I lowered the limit SELL order from 2006.00 to 2005.75, the stop loss order suddenly moved to 2005.50.

http://www.sierrachart.com/image.php?l=1409569344546.png


The following is the "Trade Activity" log for this test:

ActivityType  DateTime  Symbol  OrderActionSource  InternalOrderID  ServiceOrderID  OrderType  Quantity  BuySell  Price  Price2  OrderStatus  FillPrice  FilledQuantity  TradeAccount  OpenClose  ParentInternalOrderID  PositionQuantity  FillExecutionServiceID
Order  2014-09-01 06:52:31.000  ES-201409-GLOBEX  ES-201409-GLOBEX [M] #1 | User order entry | Last: 2001.25  33962    Limit  1  Sell  2006.00    Order Sent      DU167174  Open  
------> This is the limit SELL order at 2006.00( the parent )
Order  2014-09-01 06:52:31.001  ES-201409-GLOBEX  ES-201409-GLOBEX [M] #1 | User order entry | Last: 2001.25. Attached Order  33963    Limit  1  Buy  2005.00    Order Sent      DU167174  Close  33962    
------> This is the limit BUY order for the 4-tick target at 2005.00
Order  2014-09-01 06:52:31.002  ES-201409-GLOBEX  ES-201409-GLOBEX [M] #1 | User order entry | Last: 2001.25. Attached Order  33964    Stop  1  Buy  2008.00    Order Sent      DU167174  Close  33962    
------> This is the 8-tick stop loss order at 2008.00
Order  2014-09-01 06:52:31.003  ES-201409-GLOBEX  IB open order update  33963  3266  Limit  1  Buy  2005.00    Open      DU167174  Close  33962    
Order  2014-09-01 06:52:31.004  ES-201409-GLOBEX  IB open order update  33964  3267  Stop  1  Buy  2008.00    Open      DU167174  Close  33962    
Order  2014-09-01 06:52:31.005  ES-201409-GLOBEX  IB open order update  33962  3265  Limit  1  Sell  2006.00    Open      DU167174  Open      

Order  2014-09-01 06:52:39.000  ES-201409-GLOBEX  ES-201409-GLOBEX [M] #1 | User order modification  33962  3265  Limit  1  Sell  2006.00    Pending Modify      DU167174  Open      
Order  2014-09-01 06:52:39.001  ES-201409-GLOBEX  Modifying Attached Order from parent modification/fill. Ref price: 2005.75. New Price: 2004.75  33963  3266  Limit  1  Buy  2005.00    Pending Modify      DU167174  Close  33962    
Order  2014-09-01 06:52:39.002  ES-201409-GLOBEX  Modifying Attached Order from parent modification/fill. Ref price: 2005.75. New Price: 2007.75  33964  3267  Stop  1  Buy  2008.00    Pending Modify      DU167174  Close  33962    
Order  2014-09-01 06:52:39.003  ES-201409-GLOBEX  IB open order update  33962  3265  Limit  1  Sell  2005.75    Open      DU167174  Open    
------> This is the new limit SELL order at 2005.75  
Order  2014-09-01 06:52:39.004  ES-201409-GLOBEX  IB open order update  33963  3266  Limit  1  Buy  2004.75    Open      DU167174  Close  33962    
Order  2014-09-01 06:52:40.000  ES-201409-GLOBEX  IB open order update  33964  3267  Stop  1  Buy  2007.75    Open      DU167174  Close  33962  
  
****** When I lowered the limit SELL order from 2006.00 to 2005.75, the stop loss order suddenly moved to 2005.50. ******
Order  2014-09-01 06:52:40.001  ES-201409-GLOBEX  Auto trail order modification (Move to breakeven). Trigger price: 2001.250000  33964  3267  Stop  1  Buy  2007.75    Pending Modify      DU167174  Close  33962    
Order  2014-09-01 06:52:40.002  ES-201409-GLOBEX  IB open order update  33964  3267  Stop  1  Buy  2005.50    Open      DU167174  Close  33962    

Date Time Of Last Edit: 2014-09-01 11:40:01
[2014-09-01 17:25:53]
Sierra Chart Engineering - Posts: 104368
In response to post #29, we do hope to add support for Rithmic server-side bracket orders. The problem is with the way Rithmic handles bracket orders, it is not compatible with the way that Sierra Chart does. So we have to see if they will add the necessary capability.

We are looking at post #30 now.
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
[2014-09-01 17:32:24]
Sierra Chart Engineering - Posts: 104368
We see why the problem in post #30 happens. We are resolving this now.


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
[2014-09-01 18:37:10]
Sierra Chart Engineering - Posts: 104368
The issue identified in post #30 has been resolved in version 1183.
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
[2014-09-03 02:41:25]
bwalks123 - Posts: 122
Any plans to implement Server Side OCO orders for TT?
[2014-09-03 02:57:53]
Sierra Chart Engineering - Posts: 104368
No, because TT does not support this.


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
[2014-09-03 03:05:41]
bwalks123 - Posts: 122
Gotcha, is there a work around for this if only using a stop loss order attached and not a target? Say I put a trade on with a stop only and not a target and my internet goes out! Is there any way to have an order resting to get out of the market without being connected to internet/Broker? I was reading somewhere on SC support where this idea was being kicked around and cant seem to locate that thread.
[2014-09-03 06:31:01]
Sierra Chart Engineering - Posts: 104368
When the parent order fills the Stop will be sent to the trading service. Before the parent order fills, the stop cannot be sent and there is no solution to something like this.

The discussion you are thinking about, was related to when there is both a Stop and Target order. There is a feature in Sierra Chart to hold the target back until it is touched.
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
[2014-09-03 13:54:54]
Sawtooth - Posts: 3992
I was reading somewhere on SC support where this idea was being kicked around and cant seem to locate that thread.
Here's that thread:
Work-around for server side OCO's
[2014-09-04 02:04:45]
Sierra Chart Engineering - Posts: 104368
Sierra Chart version 1187 has server-side OCO and bracket order support for OEC now.

To use this feature you need to enable:

Global Settings >> General Trade Settings >> Use Server-Side OCO and Bracket Orders
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-09-04 05:59:28
[2014-09-04 04:18:07]
Futures Operator - Posts: 239
With IB, is just the OCO functionality held on IB's server, with the bracket orders working at the exchange, or are the bracket orders held on IB's server as well?

And at what point are the pending child orders sent to IB's server or the exchange, with the submission of the parent entry order, or only after it's filled?
[2014-09-04 05:58:29]
Sierra Chart Engineering - Posts: 104368
In response to post 40, the first question you need to ask Interactive Brokers.


And at what point are the pending child orders sent to IB's server or the exchange, with the submission of the parent entry order, or only after it's filled?

When Global Settings >> General Trade Settings >> Use Server-Side OCO and Bracket Orders is enabled, then the parent and children are sent at the same time to the trading service.
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-09-04 05:58:38
[2014-09-04 10:28:31]
tomas262 - Posts: 135
Any plans to add OCO server-side support for AMP/TTNet? Thanks
[2014-09-04 10:53:46]
Futures Operator - Posts: 239
SC, thank you. I will post IB's response here in case anyone else is interested. Seems the handling is configurable.

Are both the OCO functionality, and the actual stop and target orders from a bracket, all stored on IB's servers?
Ben: the bracket order, if the parent order is not executed, is stored on our server, once the parent order is executed it depends on the setting you have selected
Ben: if you select the over fill protection
Ben: than both orders are stored
Ben: if you do not have that selected both orders are sent to the exchange after they are activated
Ben: it of course depends as well on the order type
Ben: if you select an order type which is simulated by IB, the order will be stored on our server until triggered

Where can I read the documentation on all this, and where can I change the over fill protection setting?
Ben:
https://www.interactivebrokers.com/en/?f=%2Fen%2Ftrading%2Forders%2Fbracket.php

Ben:
https://www.interactivebrokers.com/en/?f=%2Fen%2Ftrading%2Forders%2Foca.php

Ben: to change the over fill protection you can go in the TWS you Edit > Global Configuration > Presets > select the product you trade, example Stock or Future
Ben: scroll down to the OCA Group section
Ben: and tick or untick the box overfill protection

Does everything above also apply when executing with IB through SierraChart?
Ben: yes

And the parent for the bracket, if a limit order, once submitted, is it working at the exchange or stored on the server?
Ben: it is working at the exchange

Thank you, you've been quite helpful.
Ben: you are welcome
[2014-09-04 19:33:54]
User13668 - Posts: 291
User 40746 (post # 42)

No!

See post #35
[2014-09-09 23:23:45]
User14266 - Posts: 225
I see that Rithmic server side OCO is supported for Optimus. That is great! I use Rithmic through TopstepTrader. Will there be server side OCO at some point for us?
[2014-09-10 04:43:04]
Sierra Chart Engineering - Posts: 104368
Possibly, but this would have to be looked into later on.
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
[2014-09-10 13:00:30]
Hendrixon - Posts: 130
Rithmic OCO.

Just to be clear, by OCO you also mean Bracket orders?
Cause at least in R|Trader its two different things.
Date Time Of Last Edit: 2014-09-10 20:37:00
[2014-09-10 22:02:39]
Sierra Chart Engineering - Posts: 104368
OCO orders and bracket orders are separate but a bracket order will use an OCO order as well.

An OCO order type like Buy Stop and Sell Stop will be server-side with Rithmic through Optimus. Rithmic bracket orders are not yet supported due to a compatibility problem. However when the parent order fills the Target and Stop OCO will be server-side as well.
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-09-11 06:00:08
[2014-09-13 16:43:28]
Hendrixon - Posts: 130
"Rithmic bracket orders are not yet supported due to a compatibility problem"

Is it in the works? you see it happening?
Its true that a bracket, after the parent is filled, is pretty much an OCO (target + stoploss).
The difference is that if Rithmic in Aurora sends the OCO, their round trip latency with Globex is about 3ms (from my tests), while from my local PC/SC, the **real life** round trip latency is ~200 milliseconds.
In times of fast price moves, being 200ms behind the real traded price = stoploss slippage.

[2014-09-13 20:21:28]
Sierra Chart Engineering - Posts: 104368

Is it in the works? you see it happening?
Yes, we think so. Although this depends upon Rithmic.
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

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

Login

Login Page - Create Account