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