Login Page - Create Account

Support Board


Date/Time: Mon, 23 Dec 2024 00:59:36 +0000



Post From: Rithmic& TST - Cancelling bracket order due to no order update from server

[2015-05-17 00:10:51]
@sstfrederik - Posts: 404
ok. thanks.
with regard to OrderID. I use the following as per code example in documentation:

int& OrderID = sc.PersistVars->Integers[10];

OrderID = NewOrder.InternalOrderID; gets called after a new order was successfully entered.

OrderID is displayed as an AlertLine and is currently 0. So I am not sure either where the 0 comes from but documentation says:

" [Type: integer] s_SCNewOrder::InternalOrderID

When submitting a new order, this is a member that you do not set. When you call one of the Order Action functions (sc.BuyEntry(), sc.BuyExit(), sc.SellEntry(), sc.SellExit), then this will be set to the Sierra Chart InternalOrderID of the order if the order has been accepted.

If the variable has not been set, it remains at 0 and this means the order submission was ignored. The reason an order can be ignored is explained in detail in the documentation for each of the Order Action functions. This InternalOrderID can be later used to cancel the order or modify the order. "

the 0 seems normal than? My take is that its to do with TST combine being more like sim/demo trading and orderhandling is not that well executed.


Date Time Of Last Edit: 2015-05-17 14:13:20