public override void ApplyTo(StockSerie stockSerie) { // Detecting events this.CreateEventSeries(stockSerie.Count); stockSerie.generateAutomaticHLTrendLines(0, stockSerie.Count - 1, (int)this.parameters[0], (int)this.parameters[1], ref this.eventSeries); }