Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Benjamin Preston Lee Turner
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 2
    • Best 0
    • Groups 0

    Benjamin Preston Lee Turner

    @Benjamin Preston Lee Turner

    0
    Reputation
    221
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Benjamin Preston Lee Turner Unfollow Follow

    Latest posts made by Benjamin Preston Lee Turner

    • Forex Backtest with Quandl

      Hello,

      Does anyone have an example of getting forex data from Quandl? I've tried getting the data with 'CUR/EUR' as the dataset and I get:

      File "C:\Users\dx\AppData\Local\Programs\Python\Python35-32\lib\site-packages
      backtrader\feed.py", line 692, in preload
      self.f.close()
      AttributeError: 'NoneType' object has no attribute 'close'

      I pass the data with:

      data = bt.feeds.Quandl(
      dataname=args.instrument,
      apikey='MYKEY,
      fromdate = fd,
      todate = td,
      buffered= True
      )

      It works with stocks--any ideas?

      Thanks!

      posted in General Code/Help
      Benjamin Preston Lee Turner
      Benjamin Preston Lee Turner
    • Error with Test Script on Home Page

      Hello,

      I tried to run the test script on the first page of the backtrader website and received errors. I received the same error on two different machines.

      Can someone help me out?

      Traceback (most recent call last):
      File "test1.py", line 17, in <module>
      cerebro.run()
      File "C:\Users\dx\AppData\Local\Programs\Python\Python35-32\lib\site-packages
      backtrader\cerebro.py", line 1127, in run
      runstrat = self.runstrategies(iterstrat)
      File "C:\Users\dx\AppData\Local\Programs\Python\Python35-32\lib\site-packages
      backtrader\cerebro.py", line 1207, in runstrategies
      data._start()
      File "C:\Users\dx\AppData\Local\Programs\Python\Python35-32\lib\site-packages
      backtrader\feed.py", line 203, in _start
      self.start()
      File "C:\Users\dx\AppData\Local\Programs\Python\Python35-32\lib\site-packages
      backtrader\feeds\yahoo.py", line 459, in start
      super(YahooFinanceData, self).start()
      File "C:\Users\dx\AppData\Local\Programs\Python\Python35-32\lib\site-packages
      backtrader\feeds\yahoo.py", line 90, in start
      super(YahooFinanceCSVData, self).start()
      File "C:\Users\dx\AppData\Local\Programs\Python\Python35-32\lib\site-packages
      backtrader\feed.py", line 671, in start
      self.f = io.open(self.p.dataname, 'r')
      FileNotFoundError: [Errno 2] No such file or directory: 'YHOO'

      posted in General Discussion
      Benjamin Preston Lee Turner
      Benjamin Preston Lee Turner