Navigation

    Quantiacs Community

    • Register
    • Login
    • Search
    • Categories
    • News
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Strategy Optimization in local development environment is not working

    Support
    3
    5
    389
    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.
    • E
      EDDIEE last edited by

      Dear Support Team, I can not replicate the optimization example in the local development environment. My code just got stuck in the first iteration, I waited 8 hours and absolutely nothing happened. Do you have any idea?
      Best
      Eddie

      125cf23b-3984-4891-bf6d-aa772c246d8a-image.png

      V 1 Reply Last reply Reply Quote 0
      • support
        support last edited by

        Hi, thanks for the report, we will test and let you know. Sorry for the issue.

        1 Reply Last reply Reply Quote 0
        • V
          Vyacheslav_B @EDDIEE last edited by

          @eddiee

          Hello. Try to run with other ranges

          result = qnop.optimize_strategy(
              data,
              single_pass_strategy,
              qnop.full_range_args_generator(
                  wma_period=range(10, 20, 5), # min, max, step
                  roc_period=range(5, 15, 5)   # min, max, step
              ),
              workers=1 # you can set more workers when you run this code on your local PC to speed it up
          )
          
          E 1 Reply Last reply Reply Quote 0
          • E
            EDDIEE @Vyacheslav_B last edited by

            @vyacheslav_b said in Strategy Optimization in local development environment is not working:

            result = qnop.optimize_strategy(
            data,
            single_pass_strategy,
            qnop.full_range_args_generator(
            wma_period=range(10, 20, 5), # min, max, step
            roc_period=range(5, 15, 5) # min, max, step
            ),
            workers=1 # you can set more workers when you run this code on your local PC to speed it up
            )

            I tried other ranges, it still doesn't work, any ideas? 🙂

            5fff3686-5c1d-4b74-b479-d9a786c479d1-image.png

            V 1 Reply Last reply Reply Quote 0
            • V
              Vyacheslav_B @EDDIEE last edited by

              @eddiee

              This code works for me. I can give you ideas on what to try.

              1. Update the qnt library or reinstall.

              2. If it doesn't help, clone the repository

              https://github.com/quantiacs/toolbox

              git clone https://github.com/quantiacs/toolbox.git

              run
              qnt/examples/005-01-optimizer.py
              and other examples.

              You may need to specify API_KEY

              You might be able to see exactly where the error occurs in the code.
              And you can modify the library code by adding logging for optimize_strategy

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB | Contributors
              • Documentation
              • About
              • Career
              • My account
              • Privacy policy
              • Terms and Conditions
              • Cookies policy
              Home
              Copyright © 2014 - 2021 Quantiacs LLC.
              Powered by NodeBB | Contributors