Login Page - Create Account

Support Board


Date/Time: Sat, 10 May 2025 18:42:25 +0000



Post From: learning to code a simple strategy

[2016-01-29 17:57:03]
Sierra Chart Engineering - Posts: 104368
Neither of these will work. The price has to be set at the time the main order is sent. You cannot later add a Stop order in this way.

If you do, it has to be an independent order, not attached, and the parent order needs to be sent on its own.

The best way to get the fill price of the order is to use:
https://www.sierrachart.com/index.php?page=doc/doc_ACSILTrading.html#GetOrderByOrderID

There is a LastFillPrice member of the data structure that is filled in. You just need to remember the order ID of the parent order after it has been sent. The code example referred to shows just how to do 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
Date Time Of Last Edit: 2016-01-29 17:59:23