Navigation

    Quantiacs Community

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

    combinations of strategy

    Strategy help
    2
    3
    249
    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
      cyan.gloom last edited by

      Hi,

      I'd like to get to know how to write the code to combine some strategy.
      For example, I have 5 strategies which is different assets pair and time. How can I submit 5 strategies as a strategy??

      Best regards,

      support 1 Reply Last reply Reply Quote 0
      • support
        support @cyan.gloom last edited by

        @cyan-gloom Hi, the simplest way is just to define 5 strategies generating 5 arrays of weights, let us say weights1, weights2, and so on.

        Then, you can sum all weights, weights= weights1+weights2+....

        and submite the final summed "weights". The net allocation will be the sum of the allocations of each single strategy.

        C 1 Reply Last reply Reply Quote 0
        • C
          cyan.gloom @support last edited by

          @support
          Thanks
          I got it !

          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