bbgo_origin/pkg/indicator/zlema_callbacks.go

16 lines
308 B
Go
Raw Permalink Normal View History

2022-04-19 10:22:22 +00:00
// 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)
}
}