RealtimeErrorHandling
Definition
Defines the behavior of a strategy when a strategy generated order is returned from the broker’s server in a “Rejected” state. Default behavior is to stop the strategy, cancel any remaining working orders, and then close any open positions managed by the strategy by submitting one “Close” order for each unique position.
-
Setting this property value to IgnoreAllErrors or IgnoreAllErrorsNoAlert can have serious adverse effects on a running strategy unless you have programmed your own order rejection handling in the OnOrderUpdate() method. Users are responsible for monitoring the Log tab for error messages and managing them as needed.
-
User defined rejection handling is advanced and should ONLY be addressed by experienced programmers.
Property Value
An enum value determining how the strategy behaves. Default value is set to RealtimeErrorHandling.StopCancelClose. Possible values include:
This property should ONLY be set from the OnStateChange() method during State.SetDefaults or State.Configure.
Syntax
RealtimeErrorHandling

