mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
optimizer: kline directory by backtest period
This commit is contained in:
parent
8f18b414b6
commit
7ffe010c57
|
@ -295,7 +295,10 @@ var BacktestCmd = &cobra.Command{
|
|||
return err
|
||||
}
|
||||
|
||||
kLineDataDir := filepath.Join(outputDirectory, "shared/klines")
|
||||
startTimeStr := startTime.Format("20060102")
|
||||
endTimeStr := endTime.Format("20060102")
|
||||
kLineSubDir := strings.Join([]string{"klines", "_", startTimeStr, "-", endTimeStr}, "")
|
||||
kLineDataDir := filepath.Join(outputDirectory, "shared", kLineSubDir)
|
||||
if err := util.SafeMkdirAll(kLineDataDir); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user