Skip to content

Commit

Permalink
[Mod] 修复TICK模式下参数优化无法启动的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Jun 20, 2021
1 parent 50103c2 commit ae05c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vnpy_ctabacktester/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def run_optimization(
engine = self.backtesting_engine
engine.clear_data()

if interval == Interval.TICK:
if interval == Interval.TICK.value:
mode = BacktestingMode.TICK
else:
mode = BacktestingMode.BAR
Expand Down

0 comments on commit ae05c24

Please sign in to comment.