Support Board
Date/Time: Tue, 26 Aug 2025 10:25:46 +0000
[Programming Help] - sc.GetOrderFillEvents is Returning a Value of Zero for Quantity
View Count: 293
[2025-04-24 21:29:25] |
Richard Novak - Posts: 26 |
I have an automated trading system that I'm working on and having an issue with retrieving the quantity when performing a call to sc.GetOrderFillEvents. I'm first performing a call to sc.GetOrderByOrderID(InternalOrderID, s_SCTradeOrder) to get the trade order data. This call is returning the correct average fill price, quantity, and filled quantity. I'm then iterating backwards through the GetOrderFillEvents to find the fill data record for the trade order identified by the InternalOrderID. I'm finding that sc.GetOrderFillEvents(index, s_SCOrderFillData) function is returning a value of zero for both the Quantity and TradePositionQuantity. Am I missing something here? Is there a delay between when the data returned in sc.GetOrderFillEvents is updated and when the data returned from sc.GetOrderFillEvents is updated? It should be noted that I'm using the Trading Evaluator service for this work. The quantity is shown correctly in the trade orders windows. Thanks for your help. |
[2025-07-08 17:04:33] |
Sierra_Chart Engineering - Posts: 20734 |
This function does not exist: sc.GetOrderFillEvents 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, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-07-08 17:12:41] |
Sierra_Chart Engineering - Posts: 20734 |
We think you are referring to this function: Automated Trading From an Advanced Custom Study: sc.GetOrderFillEntry() 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, use 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: