bbgo_origin/pkg/indicator/util.go

16 lines
146 B
Go
Raw Permalink Normal View History

2022-04-19 10:22:22 +00:00
package indicator
2023-05-31 08:30:04 +00:00
func max(x, y int) int {
if x > y {
return x
}
return y
}
2023-07-10 08:54:22 +00:00
func Min(x, y int) int {
2023-05-31 08:30:04 +00:00
if x < y {
return x
}
return y
}