示例#1
0
 def get_test_suite_result(self):
     return octobot_strategy_optimizer.TestSuiteResult(
         self._profitability_results, self._trades_counts,
         self.config[commons_constants.CONFIG_TRADING][
             commons_constants.CONFIG_TRADER_RISK],
         self.config[evaluator_constants.CONFIG_FORCED_TIME_FRAME],
         self.evaluators, self.strategy_evaluator_class.get_name())
 def get_test_suite_result(self, *_, **__):
     strategy_name = tentacles_strategies.SimpleStrategyEvaluator.get_name()
     return strategy_optimizer.TestSuiteResult([(1, 0), (0, -1)], [1, 2], 1, ["tf1", "tf2"], [strategy_name], strategy_name)