mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
bbgo: fix backtesting flag setter
This commit is contained in:
parent
8482ad4793
commit
35297b9bbf
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user