
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 ...
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 : …
Newest 'backtrader' Questions - Stack Overflow
Nov 17, 2024 · Stack Overflow | The World’s Largest Online Community for Developers
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
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 …
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.
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 …
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 …
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 …
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 …