From 184f93ce79480d89e22ac0088ff500a857543c16 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 19 Aug 2021 17:01:02 +0800 Subject: [PATCH] support: fix interval check --- pkg/strategy/support/strategy.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/strategy/support/strategy.go b/pkg/strategy/support/strategy.go index 26e65c6ac..b61da4835 100644 --- a/pkg/strategy/support/strategy.go +++ b/pkg/strategy/support/strategy.go @@ -311,6 +311,9 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se if kline.Symbol != s.Symbol { return } + if kline.Interval != s.Interval { + return + } closePriceF := kline.GetClose() closePrice := fixedpoint.NewFromFloat(closePriceF)