I have a strategy that I would like to run end of day on a watchlist and manually trade the generated signals the following day. The strategy is not real time and works off daily charts. Any suggestions on how I can do this in Ninjatrader?
Other option I tried is to add following OnOrderUpdate() method to the strategy and run it through strategy analyzer. But the problem with the code is it prints all the historical orders whereas I need only the last pending submit order AND is not filled.
protected override void OnOrderUpdate(IOrder order)
{
if (order.OrderState == OrderState.PendingSubmit)
{
orderStr = order.ToString();
Print(orderStr);
}
}

Comment