indicator/common.go
2024-06-25 23:17:36 +08:00

18 lines
208 B
Go

package indicator
type Updater interface {
Update(price float64)
}
type Indicator interface {
Updater
Result() float64
}
type Crosser interface {
Updater
SlowResult() float64
FastResult() float64
}