Error: "CS1503" - "Argument 1: cannot convert from 'string' to 'NinjaTrader.Cbi.Instrument'.
I don't even have any OCO orders. I'm not sure why I MUST place a value for this parameter in the first place. Is it possible to have a "null" placeholder.
PLEASE LET ME KNOW WHAT I AM MISSING!!! Thank You in advance.
Please see below for codes:
longLimitOrder = myAccount.CreateOrder("ES", OrderAction.Buy, OrderType.Limit, OrderEntry.Automated, TimeInForce.Gtc, 2, buyLimitPrice, 0, "myOCO", "longLimitOrder", Core.Globals.MaxDate, null);
shortLimitOrder = myAccount.CreateOrder("ES", OrderAction.SellShort, OrderType.Limit, OrderEntry.Automated, TimeInForce.Gtc, 2, sellLimitPrice, 0, "myOCO", "shortLimitOrder", Core.Globals.MaxDate, null);

Comment