private void preAnalysisStaff(DataItem[] items) { //Debug.WriteLine("+;<TrendlineAnalyzer.preAnalysisStaff>"); //Create [TrendlineProcessor] instance. if (processor == null) { ITrendlineAnalyzer self = this; processor = new TrendlineProcessor(self); } if (activeTrendlines == null) { this.activeTrendlines = new List<Trendline>(); } /* Extract items that are marked as extrema. */ this.extremaGroups = items.Where(i => i.Price != null && i.Price.IsExtremum()).OrderBy(i => i.Date).GetExtremaGroups().OrderBy(i => i.getDate()); ; Debug.WriteLine("+;TrendlineAnalyzer.preAnalysisStaff | extremaGroups: " + extremaGroups.ToArray().Length); //Debug.WriteLine("+;<///TrendlineAnalyzer.preAnalysisStaff>"); }
protected override IAnalyzerProcessor getProcessor() { ITrendlineAnalyzer analyzer = this; if (processor == null) processor = new TrendlineProcessor(analyzer); return processor; }