Code:
Instrument myInstrument = Cbi.Instrument.GetInstrument("ES 12-15");
myAccount.Flatten(myInstrument);
Generates error CS1503 - Argument 1: cannot convert from 'NinjaTrader.Cbi.Instrument' to 'System.Collections.Generic.ICollection<NinjaTrade r.Cbi.Instrument>'
Not sure if this is a bug or I've done something wrong.
I've tried using just myAccount.Flatten(Instrument); and this doesn't work, however using myAccount.CancelAllOrders(Instrument); does work (compiles and closes orders as intended).
Thanks
Comment