TraceOrders
Previous Topic  Next Topic 

Definition

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.


Syntax

TraceOrders


Examples

protected override void Initialize()
{
    TraceOrders        = true;
}