mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
feature/dynamic_quantity: add comment for getQuantity()
This commit is contained in:
parent
1002c13062
commit
4c98bed76f
|
@ -84,6 +84,7 @@ func (d *DynamicQuantityLinReg) initialize(symbol string, session *bbgo.Exchange
|
|||
}
|
||||
|
||||
// getQuantity returns quantity
|
||||
// If reverse is true, the LinReg slope ratio is reversed, ie -0.01 becomes 0.01. This is for short orders.
|
||||
func (d *DynamicQuantityLinReg) getQuantity(reverse bool) (fixedpoint.Value, error) {
|
||||
var linregRatio float64
|
||||
if reverse {
|
||||
|
|
Loading…
Reference in New Issue
Block a user