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
    • O

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

      3
      0
      Votes
      3
      Posts
      396
      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.

    • M

      How can we have the estimation of Sharpe submitted ?
      Support • • multi_byte.wildebeest

      3
      2
      Votes
      3
      Posts
      989
      Views

      V

      @multi_byte-wildebeest Hello.

      How to get the Sharpe Ratio is in the Quick Start template.
      https://github.com/quantiacs/strategy-q20-nasdaq100-quick-start/blob/master/strategy.ipynb

      import qnt.stats as qnstats def get_sharpe(market_data, weights): rr = qnstats.calc_relative_return(market_data, weights) sharpe = qnstats.calc_sharpe_ratio_annualized(rr).values[-1] return sharpe sharpe = get_sharpe(data, weights) # weights.sel(time=slice("2006-01-01",None))

      or

      import qnt.output as qnout qnout.check(weights, data, "stocks_nasdaq100")

      or

      stat = qnstats.calc_stat(data, weights) display(stat.to_pandas().tail())

      or

      import qnt.graph as qngraph statistics = qnstats.calc_stat(data, weights) display(statistics.to_pandas().tail()) performance = statistics.to_pandas()["equity"] qngraph.make_plot_filled(performance.index, performance, name="PnL (Equity)", type="log") display(statistics[-1:].sel(field=["sharpe_ratio"]).transpose().to_pandas()) qnstats.print_correlation(weights, data)

      Please look at this post
      https://quantiacs.com/community/topic/515/what-is-forward-looking-and-why-it-s-effective-badly-to-strategy/6?_=1711712434795

    • M

      Error in Online Enviroment
      Support • • magenta.kabuto

      3
      0
      Votes
      3
      Posts
      411
      Views

      support

      Dear magenta.kabuto,

      It appears to be a pandas version mismatch. You can try using different pandas version but it's not documented nor supported and our library could behave in an unexpected manner.

    • S

      Error for importing quantiacs module
      Support • • steel.camel

      3
      0
      Votes
      3
      Posts
      1072
      Views

      support

      @steel-camel Sorry for the issue, it has been fixed.

    • V

      Strategy Checking
      Support • submission • • violet.mewtwo

      3
      0
      Votes
      3
      Posts
      3917
      Views

      support

      @violet-mewtwo Dear violet-mewtwo, your submissions are processed correctly, it just needs some more time because of the big submission queue currently on our side. Thank you for your patience.

    • M

      Cant load data locally
      Support • • magenta.kabuto

      3
      0
      Votes
      3
      Posts
      776
      Views

      M

      @magenta-kabuto thx a lot bro for your support and pointing out the mistakes👍 🙂
      I will try the revised code now.
      Good luck for the competition 👍

    • illustrious.felice

      Strategies deleted
      Support • • illustrious.felice

      3
      0
      Votes
      3
      Posts
      425
      Views

      illustrious.felice

      @support Thank you very much. Please delete all my strategies in the deleted section.

    • C

      How to change 'iopub_data_rate_limit'
      Support • • cyan.gloom

      3
      0
      Votes
      3
      Posts
      885
      Views

      C

      @support
      Thanks !

    • M

      Technical indicators
      Strategy help • • maxime

      3
      0
      Votes
      3
      Posts
      442
      Views

      M

      @support Thank you, yes, this is what I was looking for

    • N

      Is it possible to combine stocks with crypto?
      Support • • newbiequant96

      3
      1
      Votes
      3
      Posts
      661
      Views

      N

      @vyacheslav_b Thank you very much for your support.

      I would like to ask, if I want to filter out the crypto codes with the highest sharpness, what should I do? Thank you. I tried using the get_best_instruments function but it didn't work

      import qnt.stats as qnstats # data = qndata.stocks.load_ndx_data(tail = 17*365, dims = ("time", "field", "asset")) data = qndata.stocks.load_ndx_data(min_date="2005-01-01") def get_best_instruments(data, weights, top_size): # compute statistics: stats_per_asset = qnstats.calc_stat(data, weights, per_asset=True) # calculate ranks of assets by "sharpe_ratio": ranks = (-stats_per_asset.sel(field="sharpe_ratio")).rank("asset") # select top assets by rank "top_period" days ago: top_period = 1 rank = ranks.isel(time=-top_period) top = rank.where(rank <= top_size).dropna("asset").asset # select top stats: top_stats = stats_per_asset.sel(asset=top.values) # print results: print("SR tail of the top assets:") display(top_stats.sel(field="sharpe_ratio").to_pandas().tail()) print("avg SR = ", top_stats[-top_period:].sel(field="sharpe_ratio").mean("asset")[-1].item()) display(top_stats) return top_stats.coords["asset"].values get_best_instruments(data, weights, 10)

      19ae499c-71f3-4702-bba3-81d20fb6c5ac-image.png

    • M

      Error while loading Data
      Support • • magenta.kabuto

      3
      0
      Votes
      3
      Posts
      488
      Views

      support

      @magenta-kabuto Hi, yes, sorry for late answer. For the moment we can support only the default panda version you mention, sorry

    • S

      Q18 Contest
      News and Feature Releases • • Sun-73

      3
      0
      Votes
      3
      Posts
      1256
      Views

      S

      @support Great news, thanks!

    • nosaai

      Collections has no attribute Iterable
      Support • • nosaai

      3
      0
      Votes
      3
      Posts
      1223
      Views

      nosaai

      @stefanm said in Collections has no attribute Iterable:

      pip install progressbar2==3.55.0

      Thank you so much @stefanm for support. Yes, it did work. Although on installation I did get these complaints:
      qnt 0.0.306 requires tabulate>=0.9.0, but you have tabulate 0.8.10 which is incompatible.
      qnt 0.0.306 requires xarray==0.20.2, but you have xarray 0.20.1 which is incompatible.

      Also, my apologies for the late response. I had to put things aside for a day or so. Once again, thank you.

    • news-quantiacs

      The Quantiacs Referral Program
      News and Feature Releases • • news-quantiacs

      3
      0
      Votes
      3
      Posts
      1648
      Views

      support

      @antinomy Yes, it is fine, let us know if you see anomalies!

    • S

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

      3
      0
      Votes
      3
      Posts
      4656
      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!

    • news-quantiacs

      Processing Large Numeric Arrays in Python
      News and Feature Releases • • news-quantiacs

      3
      0
      Votes
      3
      Posts
      2689
      Views

      No one has replied

    • J

      Local SSH development
      General Discussion • • Joshua408

      3
      0
      Votes
      3
      Posts
      472
      Views

      support

      @joshua408 We allow development on our cloud or local development on user's machines. No need to open any port.

    • A

      Q22 seems paused at 22-may, is it expected?
      Support • • angusslq

      3
      0
      Votes
      3
      Posts
      4372
      Views

      A

      @support great! i can see the latest result. Do you know when Quantiacs will announce the Q22 result formally? Thanks.

    • damnedlies

      What are Sharpe returns relative to?
      Support • • damnedlies

      3
      1
      Votes
      3
      Posts
      554
      Views

      support

      @damnedlies Hello:

      we are taking relative daily returns, in other words the ratio: [price(t)-price(t-1)]/price(t-1)

      we are using no benchmark.

      Note also that we apply reinvesting when computing the numerator of the Sharpe ratio (geometric mean)

    • G

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

      3
      0
      Votes
      3
      Posts
      1744
      Views

      G

      Thanks 🙏

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