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