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