I've been browsing through the Help Guide to find some logic examples, and found an interesting difference of approach.
In this article --> (https://ninjatrader.com/support/help...nt8/?order.htm) the following method is used.
if (entryOrder != null && entryOrder == order)
{
if (order.OrderState == OrderState.Filled)
entryOrder = null;
}
While in this article --> (https://ninjatrader.com/support/help...ancelorder.htm) the following method is used.
if (myEntryOrder != null && myEntryOrder == order)
{
if (myEntryOrder.OrderState == OrderState.Cancelled)
myEntryOrder = null;
}
What is the difference between these two approaches, and is one better over the other?
I am looking forward to your reply.
Comment