Backtrader Community

    • 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/

    Strategy not exists

    General Discussion
    strategy
    4
    5
    801
    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
      Twss last edited by

      I am installing the backtrader by using 'pip install' command

      AttributeError: module 'backtrader' has no attribute 'SignalStrategy'

      and my python is 3.6.

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

        Can you copy and paste the whole error message into your message using surrounded by three backquotes? Thanks

        RunBacktest.com

        1 Reply Last reply Reply Quote 0
        • vladisld
          vladisld last edited by

          You may also check that backtrader is actually imported from the correct location (try to print bt.file)

          vladisld 1 Reply Last reply Reply Quote 0
          • vladisld
            vladisld @vladisld last edited by

            @vladisld said in Strategy not exists:

            try to print bt.file

            sorry, formatting error - it should be:

            print(bt.__file__)
            
            1 Reply Last reply Reply Quote 0
            • Lucas FONTAINE
              Lucas FONTAINE last edited by

              Posting the solution here for whoever faces the same problem and ends up on this page from Google just like me:

              -> Don't name your Python file "backtrader.py"

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors