bbgo_origin/pkg/indicator/atr_callbacks.go
2022-04-17 17:30:49 +08:00

16 lines
292 B
Go

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