Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 15:39:21 +0000



[User Discussion] - autotrading working order status

View Count: 9894

[2013-04-10 23:27:35]
flyboy615 - Posts: 56
Hi,

Before I sit down and write a function to do what I need, I thought I might check if it exists already. I am looking for a function that will return the status of the parent order based on the children. What this means is that I submit an order via my study using a twconfig file and capture the parent id. This order may have children and in any combination that I cannot predict. I would like to see the overall status of the parent based on the actual status of the child orders. I know that I can get the parent order and cycle through the various attached orders based on their internal ids found in the structure but it would be nice to have it already done :-)

Thanks
Rob.
[2013-04-11 00:50:08]
Sierra Chart Engineering - Posts: 104368
Sounds like you just need to write a function to do what you need.
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
[2013-04-16 00:29:50]
flyboy615 - Posts: 56
Just a further question on the same topic. It looks like that when an order ( buy stop limit ) goes in the internal order id is that of the buystop, it then get converted to a limit order when the price gets triggered and that limit order gets a new internal ID. When it gets filled all attached child orders get the internal parent of the the limit order not the initial order. When I cycle through all the order there no orders with an internal parent order equal to that of the initial order that was submitted. How do I go about tracking this?

Thanks

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

Login

Login Page - Create Account