I am interested in a solution that could stop the strategies and one that would not.
I tried
1) submissionAccount.Flatten(new[] { Instrument.GetInstrument(Instrument.ToString()) })
2) A file OIF ---- "FLATTENEVERYTHING;;;;;;;;;;;;";
3) [DllImport("NTDirect.dll", EntryPoint = "FlattenEverything")]
public static extern void FlattenEverything();
4) CancelAllOrders(Instrument instrument)
5) Account.Flatten(new [] { Instrument.GetInstrument("ES 12-15") });
6) Getting positions and submit the closing order with CreateOrder
Any suggestion or comment?
Best
Gio

Comment