/// <summary> /// risk manager threw the message /// риск менеджер выбросил сообщение /// </summary> void _riskManager_RiskManagerAlarmEvent(RiskManagerReactionType reactionType) { try { if (reactionType == RiskManagerReactionType.CloseAndOff) { RiskManagerCloseAndOff(); } else if (reactionType == RiskManagerReactionType.ShowDialog) { ShowRiskManagerAlert(); } } catch (Exception error) { SendNewLogMessage(error.ToString(), LogMessageType.Error); } }
/// <summary> /// пришло оповещение от риск менеджера /// </summary> void _riskManager_RiskManagerAlarmEvent(RiskManagerReactionType reactionType) { try { if (reactionType == RiskManagerReactionType.CloseAndOff) { CloseAndOffAllToMarket(); } else if (reactionType == RiskManagerReactionType.ShowDialog) { string message = "Риск менеджер предупреждает о превышении дневного лимита убытков!"; ShowMessageInNewThread(message); } } catch (Exception error) { SendNewLogMessage(error.ToString(), LogMessageType.Error); } }
/// <summary> /// an alert came from a risk manager / /// пришло оповещение от риск менеджера /// </summary> void _riskManager_RiskManagerAlarmEvent(RiskManagerReactionType reactionType) { try { if (reactionType == RiskManagerReactionType.CloseAndOff) { CloseAndOffAllToMarket(); } else if (reactionType == RiskManagerReactionType.ShowDialog) { string message = OsLocalization.Trader.Label53; ShowMessageInNewThread(message); } } catch (Exception error) { SendNewLogMessage(error.ToString(), LogMessageType.Error); } }