public void EnablesStatistics() { if (statistics == null) statistics = new ProductStatistics(); }
public Product(string productCode, char productType, int BidAskDepth) { this.m_ProductCode = productCode; this.productType = productType; Bids = new PriceQty[BidAskDepth]; Asks = new PriceQty[BidAskDepth]; m_stat = new ProductStatistics(); PrevPrices = new PrevPrice[5]; for (int i = 0; i < 5; i++) PrevPrices[i] = new PrevPrice(); }