Login Page - Create Account

Support Board


Date/Time: Fri, 24 Jan 2025 19:58:58 +0000



Post From: ACSIL flatten orders

[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