mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
bollmaker: adjust default skew parameter
This commit is contained in:
parent
b98777afe4
commit
bba4e86fdf
|
@ -364,19 +364,19 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
|||
}
|
||||
|
||||
if s.StrongUptrendSkew == 0 {
|
||||
s.StrongUptrendSkew = fixedpoint.NewFromFloat(1.0 / 5.0)
|
||||
s.StrongUptrendSkew = fixedpoint.NewFromFloat(1.0 / 2.0)
|
||||
}
|
||||
|
||||
if s.StrongDowntrendSkew == 0 {
|
||||
s.StrongDowntrendSkew = fixedpoint.NewFromFloat(5.0)
|
||||
s.StrongDowntrendSkew = fixedpoint.NewFromFloat(2.0)
|
||||
}
|
||||
|
||||
if s.UptrendSkew == 0 {
|
||||
s.UptrendSkew = fixedpoint.NewFromFloat(1.0 / 2.0)
|
||||
s.UptrendSkew = fixedpoint.NewFromFloat(1.0 / 1.2)
|
||||
}
|
||||
|
||||
if s.DowntrendSkew == 0 {
|
||||
s.DowntrendSkew = fixedpoint.NewFromFloat(2.0)
|
||||
s.DowntrendSkew = fixedpoint.NewFromFloat(1.2)
|
||||
}
|
||||
|
||||
// initial required information
|
||||
|
|
Loading…
Reference in New Issue
Block a user