bbgo_origin/pkg/indicator/rsi_callbacks.go

16 lines
302 B
Go
Raw Permalink Normal View History

2022-03-28 18:01:03 +00:00
// Code generated by "callbackgen -type RSI"; DO NOT EDIT.
package indicator
import ()
func (inc *RSI) OnUpdate(cb func(value float64)) {
inc.updateCallbacks = append(inc.updateCallbacks, cb)
2022-03-28 18:01:03 +00:00
}
func (inc *RSI) EmitUpdate(value float64) {
for _, cb := range inc.updateCallbacks {
2022-03-28 18:01:03 +00:00
cb(value)
}
}