bbgo_origin/pkg/indicator/supertrendPivot_callbacks.go

16 lines
333 B
Go
Raw Permalink Normal View History

2023-01-14 15:12:53 +00:00
// Code generated by "callbackgen -type Supertrend"; DO NOT EDIT.
package indicator
import ()
func (inc *PivotSupertrend) OnUpdate(cb func(value float64)) {
inc.UpdateCallbacks = append(inc.UpdateCallbacks, cb)
}
func (inc *PivotSupertrend) EmitUpdate(value float64) {
for _, cb := range inc.UpdateCallbacks {
cb(value)
}
}