Cannot find file "orcl-1995-2014.txt" from the Quickstart tutorial
-
Hi,
I started using Backtrader with doing the Quickstart tutorial. At the beginning two variables modpath and datapath are declared with datapath searching for the file "orcl-1995-2014.txt". Unfortunately, my mac cannot find this file (I also searched for it using the terminal, but the file seems to be nonexistent). Is there anything wrong with the tutorial or did I miss something here?I'm using Python 3.6.1 with PyCharm and installed Backtrader via pip install backtrader
Thanks for helping!
-
It is in the datas folder.
-
If you installed via pip, my guess is that you probably don't have direct access to it from your working directory. I.e the directory where you are trying to copy run the example script from.
If you cannot find it on your mac, try going to the github page to take a copy and place it somewhere your script can find it:
-
@niklay said in Cannot find file "orcl-1995-2014.txt" from the Quickstart tutorial:
pip install backtrader
This installs a Python package and not the complete content of the source code repository. Follow the advice from @ThatBlokeDave or else clone the repository. As laid out in the repository, the scripts know where to find the data files.