I'm calling a simple ATM strategy within a script and what I'm trying to achieve is that if I dont like the visual look of a trade that was entered programatically then I'd like to manually press the 'Close' button to get out of the trade and not have Strategy switch off on me, like it would do for a script not using ATM strategy.
Using the logic from the sample ATM strategy code i'm doing 2 basic things
1) as soon as entry order is resolved (by filling/canceling/rejecting) I'm making the entry order ID string empty.
2) as soon as marketposition is flat for whatever reason, and strategyID still exists i'm resetting that by making strategyID string empty.
will the above approach work ? I'd appreciate if somebody could pls point me to other logical potholes and/or a good thread from the past where this might have been covered.
many thanks in advance for your help

Comment