About 50 results
Open links in new tab
  1. Newest 'backtrader' Questions - Stack Overflow

    Jun 20, 2025 · Stack Overflow | The World’s Largest Online Community for Developers

  2. 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 ...

  3. 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 …

  4. 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.

  5. 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 …

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

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

  7. 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 …

  8. 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 …

  9. 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 …

  10. Can you add parameters to backtrader strategy? - Stack Overflow

    May 17, 2022 · Yes, you can pass the parameters to backtrader strategy dynamically. You have to modify the __init__ function of the strategy class to get the parameters passed in during …