In the interface of the strategy I want to put the option to select the type of order with which I want to work, after looking in the forum and in the ninjatrader documentation, I have reached a point where I do not know how to continue, I get an error CS0029.
I attach an image,
After logic for entries, it runs in OnBarUpdate
if (shortEntry == null && EntryReverseOrders == false && EntryStopLimitOrders == false && EntryStopOrders == false && EntryLimitOrders ==true)
SubmitOrderUnmanaged(0, OrderAction.SellShort, OrderType.Limit, 1,Close[0], 0, oco, "Short limit entry");
I appreciate any help.
Thank you very much
Comment