Support Board
Date/Time: Fri, 31 Jan 2025 21:00:52 +0000
ACSIL: Howto check by OrderId Filled Status position if still works?
View Count: 3250
[2019-05-29 12:28:30] |
TedMar - Posts: 190 |
im sorry, but i can not find solution howto check by OrderID filled position if works. s_SCTradeOrder structure i can check status only , Position is Filled s_SCPositionData Structure i can check whole status of positions, without bind to OrderID maybe s_SCOrderFillData structure , but sure them works in of the chart the study instance is applied only? Any idea? |
[2019-05-30 04:57:36] |
Sierra Chart Engineering - Posts: 104368 |
We are not understanding this. So you want to know if the status of an order is filled? In this particular case just check the status of the order and see if the status is filled using this function: Automated Trading From an Advanced Custom Study: sc.GetOrderByOrderID 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: 2019-05-30 04:57:54
|
[2019-05-30 06:32:02] |
TedMar - Posts: 190 |
We are not understanding this. So you want to know if the status of an order is filled?
NO. check by OrderID if Order is filled with s_SCTradeOrder and SCOrderStatusCodeEnum works fine, but if SC not resolve this thread "ACSIL: sc.GetTradePositionForSymbolAndAccount function member AveragePrice not works"ACSIL: sc.GetTradePositionForSymbolAndAccount function member AveragePrice not works then i dont know how i can find last filled orders,FillPrice, and open positions by filled orders to calculate in other symbol FillAvarage. u undertand me? Date Time Of Last Edit: 2019-05-30 06:58:32
|
[2019-05-31 15:21:07] |
Sierra Chart Engineering - Posts: 104368 |
You need to use this function: Automated Trading From an Advanced Custom Study: sc.GetOrderFillEntry() You can easily and directly get the most recent fill or fills. 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 |
[2019-05-31 16:28:45] |
TedMar - Posts: 190 |
in Manual i see "...The sc.GetOrderFillEntry function returns an order fill for the Symbol and Trade Account of the chart the study instance is applied to, at the zero-based FillIndex and places the result into the FillData structure of type s_SCOrderFillData...." but i needed them for Other Symbol, Works them too? |
To post a message in this thread, you need to log in with your Sierra Chart account: