diff --git a/pkg/indicator/ssf.go b/pkg/indicator/ssf.go index 3a0f71bb3..689c3b19d 100644 --- a/pkg/indicator/ssf.go +++ b/pkg/indicator/ssf.go @@ -80,9 +80,6 @@ func (inc *SSF) Index(i int) float64 { } func (inc *SSF) Length() int { - if inc.Values == nil { - return 0 - } return inc.Values.Length() } @@ -104,14 +101,3 @@ func (inc *SSF) CalculateAndUpdate(allKLines []types.KLine) { inc.EmitUpdate(inc.Last(0)) } } - -func (inc *SSF) handleKLineWindowUpdate(interval types.Interval, window types.KLineWindow) { - if inc.Interval != interval { - return - } - inc.CalculateAndUpdate(window) -} - -func (inc *SSF) Bind(updater KLineWindowUpdater) { - updater.OnKLineWindowUpdate(inc.handleKLineWindowUpdate) -}