Support Board
Date/Time: Sat, 28 Dec 2024 09:29:49 +0000
how to implement order callbacks in sierra chart
View Count: 788
[2016-02-09 20:53:55] |
User405124 - Posts: 1 |
I would like to move from Ninja Trader to Sierra Chart. After reading the documentation, I have to admit that the support from Sierra Chart is much better, and the learning curve of the ACSIL is deep. Now the biggest question for me is how to implement the order callbacks in ACSIL. In ninjatrader, when the order changes status, I can hook up the call back function and update my strategy accordingly. I am wondering how to achieve this in Sierra Chart. Do I have to loop through the whole order list and figure out which one of them has just changed status? |
[2016-02-10 20:31:18] |
Sierra Chart Engineering - Posts: 104368 |
As is documented on this page here: https://www.sierrachart.com/index.php?page=doc/doc_ACS_ArraysAndLooping.html#WhenFunctionCalled The study function will be called when there is an order update. What you need to do is save the Internal Order ID of the order that you are interested in getting an update for and then get that order using this function: https://www.sierrachart.com/index.php?page=doc/doc_ACSILTrading.html#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 |
To post a message in this thread, you need to log in with your Sierra Chart account: