MicroTrendsLtd / NinjaTrader8

NinjaTrader8 Components Strategies and Trading tools
MIT License
72 stars 17 forks source link

Error State Workflows #32

Closed MicroTrendsTom closed 3 years ago

MicroTrendsTom commented 3 years ago

Error workflows are usually set by the following scenarios

  1. OverFilledOrderDetect Event
  2. OnOrderUpdate Order Rejection for qualifying orders

pre trade check position or other validation failure

  1. StrategyTradeWorkFlowState. GoLongValidationRejected -
  2. StrategyTradeWorkFlowState. GoShortValidationRejected

5.StrategyTradeWorkFlowState.ExitOnCloseConfirmed:

Control center Log Log Error and Log Alert will fire so that an email can be sent from NT8 to the default email address etc So there will 2 entries for 1 event and 1 alert window popup

What will results in the Alarm Connection loss ActiveOrders unable to cancel or confirm as cancelled Position unable to close or confirm as closed

the workflow is controlled from OnMArketData Settings for the workflow can be controlled via Properties: TradeWorkFlowTimerInterval TradeWorkFlowRetryAlarm TradeWorkFlowTimeOut

TradeWorkFlowTimerIntervalReset - (redundant removed)

MicroTrendsTom commented 3 years ago

some edits to check on this for v2020.12.9.2