NinjaScript > Language Reference > Strategy >


Print this Topic Previous pageReturn to chapter overviewNext page


When enabled, traces are generated and displayed in the NinjaScript Output window for each call of an order method providing confirmation that the method is entered and providing information if order methods are ignored and why. This is valuable for debugging if you are not seeing expected behaviour when calling an order method. This property can be set programatically in the Initialize() method.

The output will reference a method "PlaceOrder()" which is an internal method that all Enter() and Exit() methods use.


Property Value

This property returns true if the strategy will output trace information; otherwise, false.







protected override void Initialize()
    TraceOrders = true;



1.See this article for more examples of how to utilize this property.