/// <summary> /// Caller would like to turn off all order routing, and turn the m_IsRiskTriggered to true. This will allow for the next second for /// the strategy to completely stop. Hopefully this allows for some hedging to occcur prior to the hard stop of all functionality. /// </summary> protected virtual void FlagRiskEvents() { m_IOrderEngine.IsRiskCheckPassed = false; ((Engine)m_IOrderEngine).BroadcastParameter((IEngineHub)m_SingleLegExecutor.m_Hub, m_SingleLegExecutor.m_ExecutionContainer, "IsRiskCheckPassed"); m_IOrderEngine.CancelAllOrders(); m_IsRiskTriggered = true; UV.Lib.FrontEnds.Utilities.GuiCreator.ShowMessageBox(string.Format("{0} : Risk Event Triggered! Trading is turning off.", m_InstrDetails.InstrumentName), "Risk Triggered"); }