Open btk-42 opened 1 month ago
Install the latest version from GitHub to incorporate recent fixes: pip install git+https://github.com/kernc/backtesting.py.git
The PyPI version (0.3.3) may not include the necessary fix
The solution is : In the file named _plotting.py
if is_datetime_index:
fig_ohlc.xaxis.formatter = CustomJSTickFormatter(
args=dict(axis=fig_ohlc.xaxis[0],
formatter=DatetimeTickFormatter(
days="%d %b %Y", # Example format for days
months="%b %Y", # Example format for months
hours="%H:%M", # Example format for hours
minutes="%H:%M", # Example format for minutes
seconds="%H:%M:%S" # Example format for seconds
),
source=source)
Best regards
Install the latest version from GitHub to incorporate recent fixes: pip install git+https://github.com/kernc/backtesting.py.git
The PyPI version (0.3.3) may not include the necessary fix
This helped me a lot, i was pulling out my hair yesterday trying to get this to work i tried everything under the sun, thank you so much, when will PyPi be updated to reflect the new changes?
Expected Behavior
bt.plot() doesn't show up and returns error.
Actual Behavior
error:
Steps to Reproduce
code:
Additional info
Installing bokeh==3.4.2 fix the issue but makes everything lag and some other errors appears