mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-23 15:25:14 +00:00
16 lines
146 B
Go
16 lines
146 B
Go
package indicator
|
|
|
|
func max(x, y int) int {
|
|
if x > y {
|
|
return x
|
|
}
|
|
return y
|
|
}
|
|
|
|
func Min(x, y int) int {
|
|
if x < y {
|
|
return x
|
|
}
|
|
return y
|
|
}
|