To debug the issue, I enabled TraceOrders = true; in the State.SetDefaults section, but no error messages show in the NJ global log or NinjaScript Output windows. I know the code is running because I can see my Print() statements indicating entry attempts at price X, etc. However no orders are ever submitted.
You'll see my code here that enters at an offset of the last closing price from data set [1].
orderEntryLimit = SubmitOrderUnmanaged(0, OrderAction.Buy, OrderType.Limit, 1, Closes[1][0]-EnterLimitOffset*0.25, 0, "", "EntryLimitOrder");
Comment