bbgo_origin/pkg/indicator/supertrendPivot_callbacks.go
2023-01-14 18:13:18 +01:00

16 lines
333 B
Go

// 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)
}
}