OnOrderTrace()
OnOrderTrace()
Definition
An event driven method used for strategies which will allow you to customize the output of TraceOrders.
Warning: Overriding this method will disable the default order tracing that is generated by the NinjaTrader core. It is then up to you to pass the message generated to the NinjaTrader output window using the Print() method. Generally, overriding this method is not required.
Method Return Value
This method does not return a value.
Syntax
You must override the method in your strategy with the following syntax:
protected override void OnOrderTrace(DateTime timestamp, string message)
Method Parameters
Examples
Additional Reference Samples
Additional reference code samples are available in the NinjaScript Educational Resources section of our support forum.

