Skip to content

Commit

Permalink
indicator: drop ssf unused func
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jun 1, 2023
1 parent 66d99ce commit b0abc1b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pkg/indicator/ssf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand All @@ -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)
}

0 comments on commit b0abc1b

Please sign in to comment.