![]() ![]() # Create a subclass of Strategy to define the indicators and logic ![]() This is the error that I am getting: Traceback (most recent call last):įile "c:\Users\risha\PycharmProjects\PythonDataScience\BacktraderBacktesting\TestingData.py", line 10, in įile "C:\Users\risha\anaconda3\lib\site-packages\backtrader\cerebro.py", line 1127, in runįile "C:\Users\risha\anaconda3\lib\site-packages\backtrader\cerebro.py", line 1210, in runstrategiesįile "C:\Users\risha\anaconda3\lib\site-packages\backtrader\feed.py", line 203, in _startįile "C:\Users\risha\anaconda3\lib\site-packages\backtrader\feeds\yahoo.py", line 355, in startįile "C:\Users\risha\anaconda3\lib\site-packages\backtrader\feeds\yahoo.py", line 94, in startįile "C:\Users\risha\anaconda3\lib\site-packages\backtrader\feed.py", line 674, in startįileNotFoundError: No such file or directory: 'MSFT'Ĭould someone please help me solve from datetime import datetime import backtrader as btĭata = btfeeds.YahooFinanceData(dataname="MSFT", fromdate=datetime(2016, 6, 25), todate=datetime(2021, 6, 25)) I am trying to get some YahooFinance Data to backtest my strategy.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |