RealtimeErrorHandling
<< Click to Display Table of Contents >> RealtimeErrorHandling |
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.
Critical: •Setting this property value to IgnoreAllErrors can have serious adverse affects on a running strategy unless you have programmed your own order rejection handling in the OnOrderUpdate() method •User defined rejection handling is advanced and should ONLY be addressed by experienced programmers |
An enum value determining how the strategy behaves. Default value is set to RealtimeErrorHandling.StopCancelClose. Possible values include:
RealtimeErrorHandling.IgnoreAllErrors |
Ignores any order errors received by the strategy and will continue running. |
RealtimeErrorHandling.StopCancelClose |
Default behavior of a strategy |
RealtimeErrorHandling.StopCancelCloseIgnoreRejects |
Will perform default behavior on all errors except order rejections |
Warning: This property should ONLY bet set from the OnStateChange() method during State.SetDefaults or State.Configure |
RealtimeErrorHandling
private Order stopLossOrder = null; |