bbgo: fix backtesting flag setter

This commit is contained in:
c9s 2022-12-06 02:30:04 +08:00
parent 8482ad4793
commit 35297b9bbf

View File

@ -43,7 +43,7 @@ var BackTestService *service.BacktestService
func SetBackTesting(s *service.BacktestService) {
BackTestService = s
IsBackTesting = true
IsBackTesting = s != nil
}
var LoadedExchangeStrategies = make(map[string]SingleExchangeStrategy)