About 76,400 results
Open links in new tab
  1. python - Getting data in Backtrader issue - Stack Overflow

    Jul 2, 2021 · I am trying to write a backtesting strategy on Backtrader in Python, and below is the code that is giving me the error. I am using the latest version of backtrader as ...

  2. long and short strategy with macd indicator in Backtrader

    Jan 5, 2022 · I just switched from Matlab to python and even newer to the backtrader library for backtestingtrading strategies. My questions might seem obvious. My problem seems similar to this : …

  3. Newest 'backtrader' Questions - Stack Overflow

    Nov 17, 2024 · Stack Overflow | The World’s Largest Online Community for Developers

  4. Backtrader plotting returns NaN or Inf error - Stack Overflow

    Nov 9, 2024 · Backtrader plotting returns NaN or Inf error Asked 1 year ago Modified 1 year ago Viewed 398 times

  5. ImportError Cannot import name 'warnings' from 'matplotlib.dates

    Aug 18, 2020 · The Backtrader library hasn't kept up with the Matplotlib updates. You can do the off-label Backtrader update suggested by Joel Brigate above...or you can make a simple mod to …

  6. Backtrader throws attribute error on the data i have given

    Oct 28, 2024 · Either this is a bug in backtrader, or you're giving it incorrect data with the dataname parameter.

  7. python - Backtrader not plotting - Stack Overflow

    Oct 15, 2024 · I am trying to get a plot to show with some test code in VSC. I have version 3.2.2 of Matplotlib installed, as that is stated in Backtrader's documentation to be the compatible version. I …

  8. Trying to use Backtrader for backtesting getting this error ...

    Dec 13, 2024 · import backtrader as bt from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_split from xgboost import XGBClassifier from …

  9. backtrader: custom columns as indicator - Stack Overflow

    Dec 28, 2021 · result = cerebro.run() end_cash = cerebro.broker.getvalue() print(end_cash) I want to ask if this is the right way to use the columns in the dataframe? And what do you recommend for …

  10. Backtrader - IndexError: list index out of range - Stack Overflow

    Mar 9, 2024 · I'm trying to load a custom data feed from a csv file that I've generated called "impact.csv" through the script below "backtrader_impact.py". However, at "cerebro.adddata (data)", I receive an …