From 057fb69c2512d07a9ed14dc1b0f14dc4ba9b60f3 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 1 Nov 2023 15:22:53 +0800 Subject: [PATCH] cmd: skip reports for session has no trade --- pkg/cmd/backtest.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/cmd/backtest.go b/pkg/cmd/backtest.go index c4785c311c..df5c7a2e79 100644 --- a/pkg/cmd/backtest.go +++ b/pkg/cmd/backtest.go @@ -526,7 +526,6 @@ var BacktestCmd = &cobra.Command{ for _, session := range environ.Sessions() { for symbol, trades := range session.Trades { - if len(trades.Trades) == 0 { log.Warnf("session has no %s trades", symbol) continue