kernc/backtesting.py

Chart Rendering seems incorrect

Open

#1,327 建立於 2025年10月26日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Python (863 fork)batch import
help wanted

倉庫指標

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

描述

Expected behavior

When I am testing my strategy, I noticed the strategy was placing order at odd places on the charts. On the closer inspection, I think the OHLC rendering on the chart is incorrect

If you checked the time 10/17 21:05 PM

Correct data: Close = 1072.25

I expect to see the same data on chart.

Code sample

Actual behavior

Incorrect data rendered on chart: Close = 1071.192

Any idea on why this is happening? Is it due to some misalignment issue?

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

No response

Software versions

  • backtesting.__version__: 0.6.5
  • pandas.__version__: 2.3.2
  • numpy.__version__: 2.2.6
  • bokeh.__version__: 3.8.0
  • OS: MacOS

貢獻者指南