internal void ClearResetItems() { foreach (var eachInstrument in _instruments.GetValues()) { eachInstrument.ClearResetItems(); } }
internal decimal GetResetBalanceGreatThanTradeDay(Guid currencyId, DateTime tradeDay) { decimal resetBalance = 0m; if (_owner.IsMultiCurrency) { foreach (var eachInstrument in _instruments.GetValues()) { if (eachInstrument.CurrencyId == currencyId) { resetBalance += this.GetInstrumentResetBalanceGreateThanTradeDay(eachInstrument, tradeDay); } } } else { foreach (var eachInstrument in _instruments.GetValues()) { resetBalance += this.GetInstrumentResetBalanceGreateThanTradeDay(eachInstrument, tradeDay); } } return(resetBalance); }