Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Tensorflow with Backtrader

    General Code/Help
    2
    3
    150
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      TraderOnes last edited by

      Hello all,

      first tests with Backtrader works fine, and a sample-strategie can be backtested via IB-API.
      It is installed by GitHub-Download and "python setup.py install" on top of Python=3.8.5

      Now Tensorflow needs to be added and requirements need to be exactly fullfilled.
      Due to my admin-experiences I am very exact with versions, just to avoid hellfire caused by version-inaccuracies even when it worked fine in first place.

      With Backtrader and Tensorflow there is now a conflict in requirement that is a not solvable in a satisfying way:

      It sais:
      "Backtrader-requirements: Python 3.2 / 3.3/ 3.4 / 3.5"
      https://www.backtrader.com/docu/installation/

      Tensorflow-requirements: Python 3.5–3.8
      https://www.tensorflow.org/install/pip

      Sounds ok with 3.5
      ...but when installing Tensorflow ontop of Python=3.5 "conda" can install only Tensorflow 1.10.
      And when explicitly installing Tensorflow=2 it says, it needs Python 3.6

      d59a017a-ce3a-43ff-ac1b-240f57d27063-grafik.png

      Therefore 3.6 is essential.
      But is this ok for Backtrader?
      How strict are the requirements for Backtrader?

      Just read about https://github.com/backtrader2/backtrader
      1.) There is sais even 3.7 is ok for backtrader2, but this GitHub-Repository is just a copy and not yet vaild?
      2.) Can I install Backtrader on Python=3.6? Anyone has experiences with this?

      Thanks alot!

      1 Reply Last reply Reply Quote 0
      • run-out
        run-out last edited by

        Backtrader is tested for up to 3.7.

        1 Reply Last reply Reply Quote 1
        • T
          TraderOnes last edited by

          Perfect thx!

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
          $(document).ready(function () { app.coldLoad(); }); }