Support Board
Date/Time: Fri, 24 Jan 2025 19:38:40 +0000
[Programming Help] - ACSIL flatten orders
View Count: 1610
[2019-01-22 20:25:52] |
jenda3 - Posts: 21 |
Hello, I have problem with function sc.FlattenAndCancelAllOrders(). I use this function in my own study for flatten position in specific case. When i testing this study in back test, sim, paper accont and replay everything is OK. But when switch to live trading, study doesn't flatten position. In study i have enable send orders to trade service via sc.SendOrdersToTradeService but flatten order still doesn't works in live trading. What can I do to make the closing position via sc.FlattenAndCancelAllOrders () works in live trading? Or exists other way what can i close position via study? Thanks for reply |
[2019-01-23 19:53:24] |
jenda3 - Posts: 21 |
Any help?
|
[2019-01-23 22:00:12] |
Sierra Chart Engineering - Posts: 104368 |
We updated the documentation here to explain what to check when there is an error and what to check when there is not an error: Automated Trading From an Advanced Custom Study: sc.FlattenAndCancelAllOrders You might also want to enable this option: Global Trade Settings Windows: Hold Market Order Until Pending Cancel Orders Are Confirmed (Global Settings >> General Trade Settings >> General) 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: