mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-27 09:15:15 +00:00
cmd: skip reports for session has no trade
This commit is contained in:
parent
a484211aa5
commit
e23e8fde1d
|
@ -540,7 +540,6 @@ var BacktestCmd = &cobra.Command{
|
||||||
|
|
||||||
for _, session := range environ.Sessions() {
|
for _, session := range environ.Sessions() {
|
||||||
for symbol, trades := range session.Trades {
|
for symbol, trades := range session.Trades {
|
||||||
|
|
||||||
if len(trades.Trades) == 0 {
|
if len(trades.Trades) == 0 {
|
||||||
log.Warnf("session has no %s trades", symbol)
|
log.Warnf("session has no %s trades", symbol)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue
Block a user