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/

    Automating multiples strategy testings

    General Code/Help
    4
    5
    547
    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
      codissimo last edited by

      Hey guys,

      I would like to test our strategy at multiple indicator thresholds.
      Say, from SMA 20 to 40, and I would like to automate this, so that the strategy is tested 21 times against different values programatically.

      What's the most elegant way to of doing this?

      Thanks a lot!

      1 Reply Last reply Reply Quote 0
      • A
        ab_trader last edited by ab_trader

        Check out optimization part here - Docs - Let's optimize

        • If my answer helped, hit reputation up arrow at lower right corner of the post.
        • Python Debugging With Pdb
        • New to python and bt - check this out
        1 Reply Last reply Reply Quote 2
        • C
          codissimo last edited by

          Beautiful!
          Thanks!

          1 Reply Last reply Reply Quote 0
          • B
            backtrader administrators last edited by

            In addition to the link provided by @ab_trader you may also check these

            • Docs - Cerebro

              Where you can find the documentation for Cerebro and the methods optstrategy and run, which end up controlling optimization

            And this

            • Docs - Optimization improvements
            1 Reply Last reply Reply Quote 0
            • S
              snehalharshe last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote -2
              • 1 / 1
              • First post
                Last post
              Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors