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