bbgo_origin/pkg/indicator/dema_callbacks.go

16 lines
305 B
Go
Raw Permalink Normal View History

2022-04-19 10:22:22 +00:00
// Code generated by "callbackgen -type DEMA"; DO NOT EDIT.
package indicator
import ()
func (inc *DEMA) OnUpdate(cb func(value float64)) {
inc.UpdateCallbacks = append(inc.UpdateCallbacks, cb)
}
func (inc *DEMA) EmitUpdate(value float64) {
for _, cb := range inc.UpdateCallbacks {
cb(value)
}
}