mementum / bta-lib

Technical Analysis library in pandas for backtesting algotrading and quantitative analysis
MIT License
454 stars 106 forks source link

helloalgotrading raise exception FileNotFoundError #21

Open szmcdull opened 3 years ago

szmcdull commented 3 years ago

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 commented 3 years ago

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