kernc/backtesting.py

Optimize method fails w/o any error info

開放

#1,333 建立於 2025年12月4日

 (2 則留言) (0 個反應) (0 位負責人)Python (863 個分叉)batch import
help wanted

倉庫指標

星標
 (4,387 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Expected behavior

Image

I try to optimize a set of args, it fails. But it doesn’t show what the error is. A simple backtest runs, so I know that’s fine. I’ve tried printing to console with try/except in init & super. But nothing. Dunno how to tell what exactly the issue is if I don’t get errors

Code sample

Actual behavior

It just shows a failed bar. Instead of either actually working or showing the error stack

Additional info, steps to reproduce, full crash traceback, screenshots

No response

Software versions

  • backtesting.__version__: 0.6.4
  • pandas.__version__: 2.3.0
  • numpy.__version__: 2.2.0
  • bokeh.__version__: 3.7.3
  • OS: Sequoia 15.6.1

貢獻者指南