Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 11:40:01 +0000



Post From: Flatten position not functioning in LIVE using ACISL

[2024-11-11 18:32:53]
User626318 - Posts: 13
Hello
I have a custom study written in ACSIL that trades from the code written in C++ .
The Buy and Sell Entries and Exits work fine in Sim and Live.
I am finding the two functions sc.FlattenPosition and sc.FlattenAndCancelAllOrders work fine in sim but do not work in live trading.
I am using the Teton Routing Service and enabled the option Hold Market Order Until Pending Cancel Orders Confirmed.
I am using AMP as the broker and Denali for data.
Do you have any suggestions? I have read all I can on the support boards and the supporting documentation.
Is there a line of code I need before sc.FlattenPosition and sc.FlattenAndCancelAllOrders similar to the structure parameter required by sc.BuyEntry etc?
Thanks