collect symbols

This commit is contained in:
c9s 2022-05-18 02:05:57 +08:00
parent e196d7dfb1
commit f3f6e4e68b
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -465,6 +465,7 @@ var BacktestCmd = &cobra.Command{
InitialTotalBalances: initTotalBalances,
FinalTotalBalances: finalTotalBalances,
Manifests: manifests,
Symbols: nil,
}
for _, session := range environ.Sessions() {
@ -474,6 +475,7 @@ var BacktestCmd = &cobra.Command{
return err
}
summaryReport.Symbols = append(summaryReport.Symbols, symbol)
summaryReport.SymbolReports = append(summaryReport.SymbolReports, *symbolReport)
// write report to a file
@ -654,4 +656,3 @@ func rewriteManifestPaths(manifests backtest.Manifests, basePath string) (backte
}
return filterManifests, nil
}