internal PortfolioStatistics(Portfolio portfolio) { this.portfolio = portfolio; this.detector = new TradeDetector(TradeDetectionType.FIFO); this.detector.TradeDetected += new TradeInfoEventHandler(this.detector_TradeDetected); }