shouldnt be able to override.
This commit is contained in:
parent
034bef0118
commit
1634ced521
1 changed files with 1 additions and 4 deletions
|
@ -31,11 +31,8 @@ func (ema EMASeries) GetYAxis() YAxisType {
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetPeriod returns the window size.
|
// GetPeriod returns the window size.
|
||||||
func (ema EMASeries) GetPeriod(defaults ...int) int {
|
func (ema EMASeries) GetPeriod() int {
|
||||||
if ema.Period == 0 {
|
if ema.Period == 0 {
|
||||||
if len(defaults) > 0 {
|
|
||||||
return defaults[0]
|
|
||||||
}
|
|
||||||
return DefaultEMAPeriod
|
return DefaultEMAPeriod
|
||||||
}
|
}
|
||||||
return ema.Period
|
return ema.Period
|
||||||
|
|
Loading…
Reference in a new issue