Ejemplo n.º 1
0
        /// <summary>
        /// </summary>
        /// <param name="account"></param>
        public AccountRisk(Account account, InstrumentManager manager)
            : base(account)
        {
            _account            = account;
            _instrumentManager  = manager;
            _riskDataCalculator = new RiskDataCalculator(account, manager);
            ConstructParams constructParams = new ConstructParams();

            constructParams.AlertLevel         = iExchange.Common.AlertLevel.Normal;
            constructParams.AlertLevelAfterCut = constructParams.AlertLevel;
            constructParams.AlertTime          = null;
            this.Parse(constructParams);
        }
Ejemplo n.º 2
0
 private void Parse(ConstructParams constructParams)
 {
     _alertLevel         = this.CreateSoundItem("AlertLevel", constructParams.AlertLevel);
     _alertTime          = this.CreateSoundItem <DateTime?>("AlertTime", constructParams.AlertTime);
     _alertLevelAfterCut = this.CreateSoundItem("CutAlertLevel", constructParams.AlertLevelAfterCut);
 }