Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 05:37:01 +0000



[Programming Help] - exiting a specific order when multiple positions are active

View Count: 541

[2018-07-03 22:03:20]
jizzary - Posts: 177
Hi,

My trading algos are running at different windows - all of them are trading the same symbol.
every algo makes its decisions independently.

considering the above, when a given wants to close a position, it needs to be able to tell
which position should be closed (as there may be few ones active concurrently)

For that matter, I see s_SCNewOrder::InternalOrderID. I fetch it after entering a position (sc.SellEntry/sc.BuyEntry).
Do sc.SellExit and sc.BuyExit works with s_SCNewOrder::InternalOrderID if set ? can I count on it to be working ?

Please advise. Thanks.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account