Navigation

    Quantiacs Community

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

    Strategy trades illiquid instruments

    Support
    3
    3
    49
    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.
    • illustrious.felice
      illustrious.felice last edited by illustrious.felice

      Hi, I am having problem Strategy trades illiquid instruments at latest date in log, while I have multiplied weight with liquid. I checked log only latest date has this error. Please help me. My stock universe is top 7 magnificent. @support @Vyacheslav_B

      My alpha id is #18379797
      5f803660-59a2-48d7-b455-894bba89806a-image.png
      493f87dd-887b-4c1d-8ecd-371e1fe8f382-image.png

      S support 2 Replies Last reply Reply Quote 0
      • S
        stefanm @illustrious.felice last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • support
          support @illustrious.felice last edited by

          @illustrious-felice Hi,

          sorry for late answer, please check the correctness of dataset used for defining weights in strategy. Be sure that 'stocks_s&p500' dataset is used and not 'stocks_nasdaq100' for current competition. To ensure strategy trades only liquid assets in certain time period, multiply the output from your strategy function with 'is_liquid' field from correct dataset, or simply use clean() function from qnt.output:

          import qnt.data as qndata
          import qnt.output as qnout
          
          def strategy(data):
              .....
              # liquid = data.sel(field='is_liquid')
              # weights = weights * liquid
              return weights
          
          
          data = qndata.stocks_load_spx_data(min_date='2005-01-01')
          weights = strategy(data)
          weights = qnout.clean(weights, data, kind='stocks_s&p500')
          
          qnout.write(weights)
          

          Also, keep in mind that submission will not be eligible for contest if stocks universe (in this case "top 7 magnificent") is hand picked (manually defined).

          Best regards,

          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