shouldnt be able to override.
This commit is contained in:
parent
034bef0118
commit
1634ced521
|
@ -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 New Issue
Block a user