In the NinjaScript language reference, it is noted on both OnOrderUpdate() and OnExecutionUpdate that
Notes:
| • | If you are relying on the OnExecutionUpdate() method to trigger actions such as the submission of a stop loss order when your entry order is filled, ALWAYS reference the properties on the Order object property attached to the Execution object passed into the OnExecutionUpdate() method. |
OnOrderUpdate() will be executed first and returning all the information about OrderState under various executed state such as Filled, PartFilled and so forth, including price, quantity, orderId, time, etc.
So why bother with OnExecutionUpdate() ?
Thank you.

Comment