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

helloalgotrading raise exception FileNotFoundError #21

Open
szmcdull opened this issue Sep 18, 2021 · 1 comment
Open

helloalgotrading raise exception FileNotFoundError #21

szmcdull opened this issue Sep 18, 2021 · 1 comment

Comments

@szmcdull
Copy link

https://www.backtrader.com/home/helloalgotrading/

Exception has occurred: FileNotFoundError       (note: full exception trace is shown but execution is paused at: _run_module_as_main)
[Errno 2] No such file or directory: 'MSFT'
  File "D:\anaconda3\Lib\site-packages\backtrader\feed.py", line 674, in start
    self.f = io.open(self.p.dataname, 'r')
  File "D:\anaconda3\Lib\site-packages\backtrader\feeds\yahoo.py", line 94, in start
    super(YahooFinanceCSVData, self).start()
  File "D:\anaconda3\Lib\site-packages\backtrader\feeds\yahoo.py", line 355, in start
    super(YahooFinanceData, self).start()
  File "D:\anaconda3\Lib\site-packages\backtrader\feed.py", line 203, in _start
    self.start()
  File "D:\anaconda3\Lib\site-packages\backtrader\cerebro.py", line 1210, in runstrategies
    data._start()
  File "D:\anaconda3\Lib\site-packages\backtrader\cerebro.py", line 1127, in run
    runstrat = self.runstrategies(iterstrat)
  File "D:\code\digifinex\backTrader\1.py", line 37, in <module>
    cerebro.run()  # run it all
  File "D:\anaconda3\Lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "D:\anaconda3\Lib\runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "D:\anaconda3\Lib\runpy.py", line 265, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "D:\anaconda3\Lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "D:\anaconda3\Lib\runpy.py", line 194, in _run_module_as_main (Current frame)
    return _run_code(code, main_globals, None,
@szmcdull
Copy link
Author

Seems YahooFinanceData class is out of date. Is BackTrader discontinued?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant