From ea34b3a9627d179a9161ebb6371c9373a79fa65a Mon Sep 17 00:00:00 2001 From: c9s Date: Sun, 4 Dec 2022 18:28:34 +0800 Subject: [PATCH] grid2: another fix --- pkg/strategy/grid2/strategy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/strategy/grid2/strategy.go b/pkg/strategy/grid2/strategy.go index 1dc1d9882..69b506d39 100644 --- a/pkg/strategy/grid2/strategy.go +++ b/pkg/strategy/grid2/strategy.go @@ -804,7 +804,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se } session.UserDataStream.OnStart(func() { - if !s.TriggerPrice.IsZero() { + if s.TriggerPrice.IsZero() { if err := s.openGrid(ctx, session); err != nil { s.logger.WithError(err).Errorf("failed to setup grid orders") }