diff --git a/ema_series.go b/ema_series.go index 0d37d9c..fd5eda7 100644 --- a/ema_series.go +++ b/ema_series.go @@ -31,11 +31,8 @@ func (ema EMASeries) GetYAxis() YAxisType { } // GetPeriod returns the window size. -func (ema EMASeries) GetPeriod(defaults ...int) int { +func (ema EMASeries) GetPeriod() int { if ema.Period == 0 { - if len(defaults) > 0 { - return defaults[0] - } return DefaultEMAPeriod } return ema.Period