I am detecting abnormal behaviors in a strategy, and I would like to resolve a question: if the RealTimeErrorHandling property is set to StopCancelClose and an exception occurs in the code (for example of type NullReferenceException) what should happen? I assume that pending orders (Accepted, Working) are automatically canceled, the open position is closed if any, and the strategy is also deactivated. It is right?
(The checkboxes in Tools/Options/Properties/Strategies/NinjaScript : "Cancel entry orders when a strategy is disabled" & "Cancel exit orders when a strategy is disabled" are checked).
Thanks
Comment