Support Board
Date/Time: Sun, 26 Oct 2025 08:57:56 +0000
[Programming Help] - [ACSIL]s_ACSTrade values based on correct parent/child order
View Count: 141
| [2025-10-03 07:07:33] |
| 33340 - Posts: 2 |
|
Hi, I'm trying to get trade result and record it to my own service. The issue is when I have multiple trades opened and closed simultaniously. Trades record to internal Sierrachart seem to be based on execution time not based on actaul parent/children order. For example, if i have 2 bracket orders open one after another, first one is long and second one is short position, what recorded to the first s_ACSTrade will be the open order of both trades, not the actaul parent/child order. I cannot evaluate the result properly. I tried to get trade details using order id but after the order is closed for certain period of time, I cannot get them from order list as well because Sierrachart delete them internally. Do we have a way to get correct s_ACSTrade based on actual bracket order?? |
| [2025-10-06 20:17:54] |
| ForgivingComputers.com - Posts: 1150 |
|
After sending the buy or sell order, get the InternalOrderID and save it for use later as a peristent int variable.
|
| [2025-10-08 07:25:59] |
| 33340 - Posts: 2 |
|
Thanks for your answer. In case anyone have similar problem, I did find a way. It's not ideal but work for my case. Basically, I keep the InternalOrderID and use sc.GetOrderFillEntry() to match my orders by myself. Previously I didn't know this function exists and use sc.GetOrderByOrderID which doesn't retain filled order. |
To post a message in this thread, you need to log in with your Sierra Chart account:
