You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on a Windows unit. When I run the code from page 52 in Jupyter Notebook I get the error "No such file or directory". I am using the following Packages:
Python==3.7.6
Anaconda Navigator==1.9.12
Backtrader==1.9.74.123
Cufflinks==0.17.3
Notebook==6.0.3
Numpy==1.18.1
Pandas==1.0.1
YFinance==0.1.54 BT Signal.pdf
The text was updated successfully, but these errors were encountered:
It seems that there is some issue with the Yahoo Finance API within backtrader (for example, as reported here or here). A possible workaround is to use either CSV input or load data straight from a pd.DataFrame. For information on how to use these two approaches, you can refer to the source code. While using the latter one, you can import data directly to a pd.DataFrame by using the approach presented in Chapter 1.
Eryk,
Thank you for the quick response. With the virus outbreak I am working
from home and really wanted to make some progress with this book and your
code. I will try one of the other approaches.
I guess others must be having the same issue? I will keep checking the
github site for any further updates.
Carter
I added an extra Notebook with a workaround. It is quite simple and can be applied to all the other recipes using backtrader. I do hope it will help you and others while the issue is not fixed (if it will be fixed).
I am on a Windows unit. When I run the code from page 52 in Jupyter Notebook I get the error "No such file or directory". I am using the following Packages:
Python==3.7.6
Anaconda Navigator==1.9.12
Backtrader==1.9.74.123
Cufflinks==0.17.3
Notebook==6.0.3
Numpy==1.18.1
Pandas==1.0.1
YFinance==0.1.54
BT Signal.pdf
The text was updated successfully, but these errors were encountered: