Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code for Chapter 2 SMA-Signal results in error [ERRNO] No such file or Directory; 'APPL' #1

Closed
CarterFitz opened this issue Mar 18, 2020 · 3 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@CarterFitz
Copy link

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

@erykml
Copy link
Collaborator

erykml commented Mar 20, 2020

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.

@CarterFitz
Copy link
Author

CarterFitz commented Mar 20, 2020 via email

@erykml erykml self-assigned this Mar 20, 2020
@erykml
Copy link
Collaborator

erykml commented Mar 20, 2020

Hi 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).

Cheers,
Eryk

@erykml erykml added bug Something isn't working help wanted Extra attention is needed and removed bug Something isn't working labels Mar 21, 2020
@erykml erykml closed this as completed Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Development

No branches or pull requests

2 participants