From 034bef0118ac45159488f586bcd2f5263c559eba Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Mon, 18 Jul 2016 16:59:13 -0700 Subject: [PATCH] changing ema defaults. --- ema_series.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ema_series.go b/ema_series.go index b435751..0d37d9c 100644 --- a/ema_series.go +++ b/ema_series.go @@ -1,8 +1,8 @@ package chart const ( - // DefaultEMASigma is the default exponential smoothing factor. - DefaultEMASigma = 0.25 + // DefaultEMAPeriod is the default EMA period used in the sigma calculation. + DefaultEMAPeriod = 12 ) // EMASeries is a computed series. @@ -36,7 +36,7 @@ func (ema EMASeries) GetPeriod(defaults ...int) int { if len(defaults) > 0 { return defaults[0] } - return ema.InnerSeries.Len() + return DefaultEMAPeriod } return ema.Period }