mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
add buy-sell-ratio
This commit is contained in:
parent
a8c972dfb1
commit
9dd8b026e6
|
@ -23,6 +23,10 @@ func (v Value) Mul(v2 Value) Value {
|
|||
return NewFromFloat(v.Float64() * v2.Float64())
|
||||
}
|
||||
|
||||
func (v Value) MulFloat64(v2 float64) Value {
|
||||
return NewFromFloat(v.Float64() * v2)
|
||||
}
|
||||
|
||||
func (v Value) Div(v2 Value) Value {
|
||||
return NewFromFloat(v.Float64() / v2.Float64())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user