mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
indicator: drop ssf unused func
This commit is contained in:
parent
66d99ce6ae
commit
b0abc1bf55
|
@ -80,9 +80,6 @@ func (inc *SSF) Index(i int) float64 {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (inc *SSF) Length() int {
|
func (inc *SSF) Length() int {
|
||||||
if inc.Values == nil {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
return inc.Values.Length()
|
return inc.Values.Length()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,14 +101,3 @@ func (inc *SSF) CalculateAndUpdate(allKLines []types.KLine) {
|
||||||
inc.EmitUpdate(inc.Last(0))
|
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)
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user