bbgo_origin/pkg/indicator/low_callbacks.go

16 lines
302 B
Go
Raw Permalink Normal View History

2022-07-26 09:27:38 +00:00
// Code generated by "callbackgen -type Low"; DO NOT EDIT.
package indicator
import ()
func (inc *Low) OnUpdate(cb func(value float64)) {
inc.updateCallbacks = append(inc.updateCallbacks, cb)
}
func (inc *Low) EmitUpdate(value float64) {
for _, cb := range inc.updateCallbacks {
cb(value)
}
}