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/

    Can't use cerebro.optstrategy()

    General Code/Help
    1
    1
    41
    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.
    • C
      Cal last edited by

      I am using the latest version of backtrader with Python 3.10 and PyCharm. I am trying to test ranges of indicator variables over sets of historical data. I have found online and in YouTube videos several examples of how to do this. All involve the use of cerebro.optstrategy() and all fail when I try to run them. The only suggested fix I could find on the internet was "change to Python version 3.8."

      Two questions:
      Is there another way to optimize using 3.10 and if not,
      will downgrading to 3.8 create other problems?

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