long and short strategy with macd indicator in Backtrader 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 : https: community
ImportError Cannot import name warnings from matplotlib. dates 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 locator py file (backtrader plot):
backtrader: custom columns as indicator - Stack Overflow 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 using the indicators? Would you engineer the dataframe first and use the engnieered columns rather than using the existing indicators inside the backtrader package
python - Backtrader not plotting - Stack Overflow 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 am running
Trying to use Backtrader for backtesting getting this error . . . import backtrader as bt from sklearn ensemble import RandomForestClassifier from sklearn model_selection import train_test_split from xgboost import XGBClassifier from sklearn metrics import accuracy_score import nltk from nltk sentiment vader import SentimentIntensityAnalyzer from datetime import datetime from pylab import mpl,plt