Navigation

    Quantiacs Community

    • Register
    • Login
    • Search
    • Categories
    • News
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. omohyoid
    3. Topics
    O
    • Profile
    • Following 0
    • Followers 0
    • Topics 13
    • Posts 27
    • Best 1
    • Groups 0
    • Blog

    Topics created by omohyoid

    • O

      ERROR! The max exposure is too high
      Support • • omohyoid

      12
      0
      Votes
      12
      Posts
      277
      Views

      V

      @antinomy
      Hi! Don’t worry about leverage — it isn’t allowed on the Quantiacs platform: all user-supplied weights are automatically normalized when your strategy is saved. Here’s how that works with two instruments.
      Source code of the normalize function https://github.com/quantiacs/toolbox/blob/main/qnt/output.py:

      def normalize(output, per_asset=False): from qnt.data.common import ds output = output.where(np.isfinite(output)).fillna(0) if ds.TIME in output.dims: output = output.transpose(ds.TIME, ds.ASSET) output = output.loc[ np.sort(output.coords[ds.TIME].values), np.sort(output.coords[ds.ASSET].values) ] if per_asset: output = xr.where(output > 1, 1, output) output = xr.where(output < -1, -1, output) else: s = abs(output).sum(ds.ASSET) if ds.TIME in output.dims: s[s < 1] = 1 else: s = 1 if s < 1 else s output = output / s try: output = output.drop_vars(ds.FIELD) except ValueError: pass return output

      Example with two assets

      import xarray as xr from qnt.data.common import ds from qnt.output import normalize times = ['2025-06-16'] assets = ['Asset1', 'Asset2'] out1 = xr.DataArray([[1.5, 0.5]], coords={ds.TIME: times, ds.ASSET: assets}, dims=[ds.TIME, ds.ASSET]) print(normalize(out1).values) out2 = xr.DataArray([[0.3, -0.2]], coords={ds.TIME: times, ds.ASSET: assets}, dims=[ds.TIME, ds.ASSET]) print(normalize(out2).values)

      Console output

      [[0.75 0.25]] [[ 0.3 -0.2 ]]

      Example 1: The absolute exposure is 2 > 1, so every weight is divided by 2, yielding 0.75 and 0.25.

      Example 2: The exposure is 0.5 < 1, so the scaling factor is set to 1 and the weights stay 0.3 and –0.2.

      In short, even if your strategy outputs more than 100 % exposure, normalize always scales it back so the total absolute exposure never exceeds 1—preventing leverage on the Quantiacs platform.

    • O

      Can I use astronomical data as features for my machine learning model?
      Support • • omohyoid

      3
      0
      Votes
      3
      Posts
      185
      Views

      O

      @support Thx for ur reply

    • O

      QNT failed to load data after 2006-01-01
      Support • • omohyoid

      3
      0
      Votes
      3
      Posts
      310
      Views

      O

      @support I got it. Thanks for ur reply

    • O

      Can't download assets
      Support • • omohyoid

      2
      0
      Votes
      2
      Posts
      218
      Views

      support

      Dear @omohyoid,

      Currently we are facing some data issues, the error is not caused by changes in qnt library. At the moment, only current index members of S&P500 index are available, but Nasdaq100 stocks are temporarily unavailable. Sorry for the inconvenience, we are working on a solution.

    • O

      How to turn off "WARNING: some dates are missed in the portfolio_history"
      Support • • omohyoid

      4
      0
      Votes
      4
      Posts
      345
      Views

      support

      @omohyoid Hi, we do not have such calls, sorry

    • O

      No error messages show why the strategies failed
      Support • • omohyoid

      5
      0
      Votes
      5
      Posts
      439
      Views

      support

      @omohyoid Dear omohyoid,

      Yes, that's right. After submitting your strategy shouldn't override environment variables.

      Regards

    • O

      I was logged out automatically
      Support • • omohyoid

      3
      0
      Votes
      3
      Posts
      241
      Views

      O

      @support I got it
      Thanks for ur reply

    • O

      Can I have multiple strategies with high correlation?
      Support • • omohyoid

      2
      0
      Votes
      2
      Posts
      166
      Views

      support

      @omohyoid Dear omohyoid,

      You can send correlated strategies to the same contest but you cannot send a strategy that is highly correlated with the templates, your strategies from the past contests or prize winning strategies from previous contests.

      Regards

    • O

      I cannot install pandas 1.2.5
      Support • • omohyoid

      10
      1
      Votes
      10
      Posts
      588
      Views

      O

      @support Thx for ur reply
      I'll try it

    • O

      What is the output path of the weights?
      Support • • omohyoid

      2
      0
      Votes
      2
      Posts
      159
      Views

      support

      @omohyoid Dear omohyoid,

      You don't need to specify the output path nor any other environment variable when submitting your code. If you're using local development option to create a strategy, you should remove setting environment variables manually since those are created automatically after you submit your strategy so no need to worry about that and it is actually advisable to do it that way.

      Regards

    • O

      Where can I get the OHLC data of Nasdaq100 index?
      Support • • omohyoid

      3
      0
      Votes
      3
      Posts
      183
      Views

      O

      @support Thanks for ur help

    • O

      I can't find why the submission failed
      Support • • omohyoid

      3
      0
      Votes
      3
      Posts
      208
      Views

      O

      @support
      Actually, I've write the weights to the output function.
      螢幕擷取畫面 2024-04-24 235034.png
      I think the reason might be that the data was out-of-date when the strategy received at the weekend. After the data update in the next day, it failed to pass the test.

    • O

      How long will the submission of a strategy take?
      Support • • omohyoid

      4
      0
      Votes
      4
      Posts
      241
      Views

      support

      Dear @quani42,

      Your submissions are in the queue and will be processed. Also, all submissions that are sent to the contest before the deadline will be eligible to take part in it.

      Regards

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