bbgo_origin/pkg/strategy/pivotshort/pivot_callbacks.go
2022-05-17 19:18:21 +08:00

16 lines
367 B
Go

// Code generated by "callbackgen -type Pivot"; DO NOT EDIT.
package pivotshort
import ()
func (inc *Pivot) OnUpdate(cb func(valueLow float64, valueHigh float64)) {
inc.UpdateCallbacks = append(inc.UpdateCallbacks, cb)
}
func (inc *Pivot) EmitUpdate(valueLow float64, valueHigh float64) {
for _, cb := range inc.UpdateCallbacks {
cb(valueLow, valueHigh)
}
}