18 lines
208 B
Go
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
|
|
}
|
|
|