bbgo_origin/pkg/indicator/vwma_callbacks.go

16 lines
305 B
Go
Raw Normal View History

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