Login Page - Create Account

DTC Protocol Discussion Forum


Date/Time: Fri, 29 Nov 2024 14:31:26 +0000



Post From: DTC - Market order with Stop and Take Profit (Broken since update)

[2020-07-16 18:50:40]
Sierra Chart Engineering - Posts: 104368
I tried entering with a regular market order, then read the fillprice that I get back and then submit an OCO order, this works fine except for one thing.
Do not do it this way.


This is the reason for the problem:
InfoText: 'OCO order not allowed with market parent order when using offsets',

It is required that there is a price reference for the offsets to calculate the actual order prices. In the case of a market order although a price can be specified, it is not considered to necessarily be reliable.

So do not use offsets by specifying UseOffsets: 0. And specify the actual prices with: Price1_1, Price1_2. If you know the point of reference for the offsets and the offsets as well, it is very easy to calculate the actual OCO order prices.

Also for your information, refer to PartialFillHandling:
Order Entry and Modification Messages: SUBMIT_NEW_OCO_ORDER [s_SubmitNewOCOOrder structure] Client >> Server
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: 2020-07-16 18:53:12