bbgo/pkg/indicator/zlema_callbacks.go

16 lines
308 B
Go

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