mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
improve/supertrend: fix typo
This commit is contained in:
parent
4b8adf6ed5
commit
1fb6e79090
|
@ -627,7 +627,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
|||
// Add opposite position amount if any
|
||||
if (side == types.SideTypeSell && s.Position.IsLong()) || (side == types.SideTypeBuy && s.Position.IsShort()) {
|
||||
bbgo.Notify("add existing opposite position amount of %s to the amount of open new position order", s.Symbol)
|
||||
amount = amount + s.Position.GetQuantity()
|
||||
amount = amount.Add(s.Position.GetQuantity())
|
||||
} else if !s.Position.IsDust(closePrice) {
|
||||
bbgo.Notify("existing %s position has the same direction as the signal", s.Symbol)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user