bbgo_origin/pkg/indicator/wwma_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 WWMA"; DO NOT EDIT.
package indicator
import ()
func (inc *WWMA) OnUpdate(cb func(value float64)) {
inc.UpdateCallbacks = append(inc.UpdateCallbacks, cb)
}
func (inc *WWMA) EmitUpdate(value float64) {
for _, cb := range inc.UpdateCallbacks {
cb(value)
}
}