Navigation

    Quantiacs Community

    • Register
    • Login
    • Search
    • Categories
    • News
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Recent
    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
    • O

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

      1
      0
      Votes
      1
      Posts
      6
      Views

      No one has replied

    • D

      Why Do So Many Students Look for Help with Exams?
      General Discussion • • DouglasFennell

      1
      0
      Votes
      1
      Posts
      6
      Views

      No one has replied

    • illustrious.felice

      Strategy trades illiquid instruments
      Support • • illustrious.felice

      4
      0
      Votes
      4
      Posts
      164
      Views

      illustrious.felice

      @support Thanks for the feedback. I would like to ask the following, for example if I want to filter out the 10 tickers with the best sharpe of the strategy, how should I do it, to avoid being filtered by hand?

      Please provide an example code

      def filter_sharpe_ratio(data, weights, top_assets):
      stats_per_asset = qnstats.calc_stat(data, weights, per_asset=True)
      sharpe_ratio = stats_per_asset.sel(field="sharpe_ratio")
      return qnfilter.rank_assets_by(data, sharpe_ratio, top_assets, ascending=False)

      asset_filter = filter_sharpe_ratio(data, weights, 150)
      weights = weights * asset_filter

      I used this code, but the result is still nearly 300 tickers.

    • S

      "Show only my results" not working
      Support • • Sun-73

      3
      0
      Votes
      3
      Posts
      112
      Views

      S

      Hi @support, thank you! The box is now working fine!

      I have a simple suggestion regarding the charts created for each strategy:

      Besides the equity curve (strategy, SPX and Nasdaq100), Logarithmic scale, Long/Short, Underwater, and Bias, it would be nice to see an additonal chart (with two lines) showing the number of assets in each day that have a positive weight (long position), as well as the number of assets in each day that have a negative weight (short position).

      This will help us developing the strategies, since we can better track the outcomes generated by different algorithms being constructed.

      Also, this can help you identify asset hand-picking with buy-and-hold positions.

      Thanks!

    • N

      Q21 contest results
      News and Feature Releases • • neural.exeggutor

      5
      0
      Votes
      5
      Posts
      610
      Views

      T

      @support: Is the Q21 allocation actually submitted? I never heard anything about winning? Best Regards

    • A

      toolbox not working in colab
      Support • • alexeigor

      6
      0
      Votes
      6
      Posts
      264
      Views

      V

      @alexeigor Hello. Version 0.0.501 of the qnt library works correctly in Colab. Python version support has been extended from 3.10 to 3.13. The basic functionality of the library should work without issues.

      To install, use the following command:

      !pip install git+https://github.com/quantiacs/toolbox.git 2>/dev/null

      Note: Installing ta-lib in Colab is not working for me at the moment.

    • G

      Some top S&P 500 companies are not available?
      Support • • gjhernandezp

      3
      0
      Votes
      3
      Posts
      102
      Views

      G

      Thanks 🙏

    • nosaai

      AttributeError: module 'qnt.data' has no attribute 'stocks_load_spx_data'
      Support • • nosaai

      4
      0
      Votes
      4
      Posts
      134
      Views

      nosaai

      @vyacheslav_b Apologies for the late response. Thanks for the assistance, all is now well. Cheers

    • magenta.grimer

      Example strategy for Q23
      Support • • magenta.grimer

      2
      0
      Votes
      2
      Posts
      86
      Views

      support

      @magenta-grimer Hi, the Q22 basic template is a good starting point.

    • A

      got error in example
      Support • • alexeigor

      2
      0
      Votes
      2
      Posts
      113
      Views

      support

      @alexeigor Hi,

      sorry, it should work now.

      Best regards

    • O

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

      3
      0
      Votes
      3
      Posts
      176
      Views

      O

      @support Thx for ur reply

    • A

      Why a lower contest sharpe can rank higher than higher contest sharpe?
      Support • • angusslq

      2
      0
      Votes
      2
      Posts
      205
      Views

      support

      Dear @angusslq,

      The ranking is calculated based on contest sharpe ratio only. The situation that you saw at that time was only temporary because at that point the calculations for new day were ongoing, so some strategies were processed before others, and their contest sharpe was updated, but the ranking is only updated after every single strategy from that contest has been processed and updated.

      Regards

    • S

      Strategy stuck at checking.
      Support • • SilverStar1003

      2
      0
      Votes
      2
      Posts
      263
      Views

      support

      Dear @silverstar1003,

      There was a temporary problem with our servers which has been resolved, and your strategy should be calculated soon.

      Regards

    • C

      Question about the contest structure
      Support • • captain.prairie_dog

      12
      0
      Votes
      12
      Posts
      765
      Views

      support

      Dear @angusslq,

      Once the competition ends its live period (currently 4 months for Q22), the prizes are given. That means that at the end of those 4 months we sort all strategies and only the top 7 by sharpe ratio are eligible for prize and get allocation: 1st place 1M, second place 500k etc. and this cannot be changed afterwards. The prizes are not given on the daily basis and certainly not during the contest live period. You can find more info in the contest rules page on our website.

      For your second question, we assume risk-free rate to be zero. You can find additional information about how we use sharpe ratio here.

      Regards

    • A

      will the allocation change every week according to the latest ranking for Q22?
      Support • • angusslq

      3
      0
      Votes
      3
      Posts
      232
      Views

      support

      Dear @angusslq,

      Allocations are set at the end of the contest, and they take into account the strategies ranking at that time. We update the rankings as we process the participating strategies with the new available data, which happens 5 times a week for 5 working days. The allocations that you refer are probably in the systems page and they take into account the current ranking in the contest but that doesn't mean anything until the contest ends and prizes are given.

      Regards

    • S

      Stateful Strategy Optimization - Illiquid Warning
      Support • • Svyable

      2
      0
      Votes
      2
      Posts
      229
      Views

      support

      Dear @svyable,

      If you use our backtest function, the liquidity filter will applied automatically, you can just ignore that warning.
      On the other hand, if you decide to use single-pass strategy option you should apply that filter manually or just use clean function that has that option included.

      Regards

    • A

      Q18 Quick start guide not working anymore
      Support • • angusslq

      2
      0
      Votes
      2
      Posts
      235
      Views

      V

      @angusslq Hi. Try cloning the template or restarting JupyterLab. The error was fixed in the new version of the qnt library.

    • A

      Is the server busy? my job didn't start after 2 days still, is it normal?
      Support • • angusslq

      2
      0
      Votes
      2
      Posts
      217
      Views

      support

      Dear @angusslq

      Yes, there is a large queue currently as we are nearing the end of the submission period for the following contest. All submissions submitted before the deadline will be eligible for participating in the contest, including yours.

      Regards

    • L

      Fundamental data loading does not work
      Support • • lookman

      5
      0
      Votes
      5
      Posts
      377
      Views

      V

      @lookman Hello. Try cloning your strategy and running it again. It should work correctly with the new version of the qnt library.

      import qnt.data as qndata import qnt.data.secgov_fundamental as fundamental market_data = qndata.stocks.load_spx_data(min_date="2005-01-01") indicators_data = fundamental.load_indicators_for(market_data, indicator_names=['roe']) display(indicators_data.sel(field="roe").to_pandas().tail(2)) display(indicators_data.sel(asset='NAS:AAPL').to_pandas().tail(2)) display(indicators_data.sel(asset=['NAS:AAPL']).sel(field="roe").to_pandas().tail(2))

      https://quantiacs.com/documentation/en/data/fundamental.html

    • A

      Submission Logic Questions
      Support • • auxiliary.snail

      4
      0
      Votes
      4
      Posts
      308
      Views

      support

      @auxiliary-snail Hi,

      unfortunately, this is not allowed and in accordance with the rules. Using hard-coded time periods in which trading algorithm will work differently, is not a quantitative method (just like manual asset selection, e.g. "trade only Apple or Microsoft"). We still haven't implemented a mechanism for automatic recognition of such behaviors in trading strategies, and even though a strategy could be successfully submitted, it will not be eligible for prize winning.
      What we are searching for, is well performing strategy over entire in_sample period (SR>0.7), robust to all market movements 2006-2025, so we can expect it will perform well in future, too.

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