Navigation

    Quantiacs Community

    • Register
    • Login
    • Search
    • Categories
    • News
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Popular
    Log in to post
    • All categories
    • Support
    •      Request New Features
    • Strategy help
    • General Discussion
    • News and Feature Releases
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All Time
    • Day
    • Week
    • Month
    • A

      Has my strategy been rejected from Q23?
      Support • • antinomy

      5
      0
      Votes
      5
      Posts
      403
      Views

      A

      And what if a strategy uses the following rules to select assets to trade:

      the primary exchange is NAS the sector is not finance has price data for at least the previous 3 months has an average daily trading volume of at least 200 k based on the previous 3 months belongs to the top 100 of the thus far selected assets in terms of market capitalization

      Would you say any of these rules violate the contest rules?

      Because these are the selection criteria for the N100 constituents. The only difference in my strategy is that I'm using qnt.data.stocks_load_ndx_data.sel(field='is_liquid') instead.
      Sure, the first of the rules above manually selects the exchange and the second one manually excludes a sector. But still none of these manually select assets and neither does the filter is_liquid from another dataset.

      Also, lets take a look why you prohibited manual asset selection in the first place. Wasn't this to avoid lookahead bias? And isn't this also the reason for the existence of the field is_liquid in any of your datasets? Are you saying that the exact field you introduced to avoid lookahead bias is now the reason you disqualify a strategy because of lookahead bias just because it's from a dataset other than the one for the contest?

    • B

      How to get stocks in SP500 index at a given time
      Support • • buyers_are_back

      2
      0
      Votes
      2
      Posts
      28
      Views

      S

      @buyers_are_back Hi,

      You can use is_liquid field from spx dataset to filter out weights allocated to not members of S&P500 at given point in time:

      from qnt.data import stocks_load_spx_data spx_data = stocks_load_spx_data(min_date="2006-01-01") is_liquid = spx_data.sel(field="is_liquid") final_weights = your_weights * is_liquid ### weights for given date (weights_spec) date = "2026-02-24" weights_spec = final_weights.sel(time=date)

      The number 842 represents total number of assets that have been members of S&P500 index at some point in time (from given dataset), and 658 shows number of assets that are still active on market (have OHLC prices), but only ~500 are index constituents in that point in time.

      To get the list of index members on certain date, just filter is_liquid field:

      ### liquidity field values for given date is_liquid_spec = is_liquid.sel(time=date) members_spec = is_liquid_spec.coords["asset"][is_liquid_spec == 1.0].asset.values
    • V

      No output showing for my submitted strategy
      Support • • vg2001

      2
      0
      Votes
      2
      Posts
      155
      Views

      support

      @vg2001 It has been fixed, sorry

    • assignmentworld

      How Assignment Help Boosted My Confidence and Grades
      Support • • assignmentworld

      1
      0
      Votes
      1
      Posts
      48
      Views

      No one has replied

    • Dermapuritys

      What are the Side Effects of a HydraFacial?
      General Discussion • • Dermapuritys

      1
      0
      Votes
      1
      Posts
      60
      Views

      No one has replied

    • Documentation
    • About
    • Career
    • My account
    • Privacy policy
    • Terms and Conditions
    • Cookies policy
    Home
    Copyright © 2014 - 2021 Quantiacs LLC.
    Powered by NodeBB | Contributors