mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +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
|
|
}
|