internal void SetAvgPrice() { Price price = null; decimal avgBuyPriceValue = this._BuyLot != decimal.Zero ? this._BuyLotMultiplyAvgPriceSum / this._BuyLot : decimal.Zero; price = new Price(avgBuyPriceValue.ToString(), this._MinNumeratorUnit, this._MaxDenominator); this.BuyAvgPrice = price == null ? "0" : price.ToString(); decimal avgSellPriceValue = this._SellLot != decimal.Zero ? this._SellLotMultiplyAvgPriceSum / this._SellLot : decimal.Zero; price = new Price(avgSellPriceValue.ToString(), this._MinNumeratorUnit, this._MaxDenominator); this.SellAvgPrice = price == null ? "0" : price.ToString(); decimal avgNetPriceValue = this._NetLot != decimal.Zero ? this._NetLotMultiplyAvgPriceSum / this._NetLot : decimal.Zero; price = new Price(avgNetPriceValue.ToString(), this._MinNumeratorUnit, this._MaxDenominator); this.NetAvgPrice = price == null ? "0" : price.ToString(); }