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

      Output the results in an excel or other format file
      Support • • anshul96go

      3
      1
      Votes
      3
      Posts
      511
      Views

      A

      @anshul96go
      To get the actual statistics you currently have to calculate them like so:

      import qnt.stats as qns data = qndata.cryptodaily_load_data(min_date="2014-01-01") # or whenever your backtest started stats = qns.calc_stat(data, weights)

      And if you really need them as xls file you can do:

      stats.to_pandas().to_excel('stats.xls') # I got a ModuleNotFoundError the first time - pip install did the trick.

      Allthough I can't recommend xls because at least LibreOffice becomes very slow / unresponsive when handling such a file.

      Getting the statistics after a backtest could be a little simpler, which brings me to a feature request:
      @support
      Do you think you could add a parameter to the backtester which makes it return the statistics? They get calculated anyway by default, but we only see a truncated printout or the plots and can't use them for further analysis.
      .
      In my local environment I did it like this in qnt.backtester.py:

      Add the parameter return_stats: bool = False to the parameters of the backtest function From line 353 onward my backtester now looks like this: qnout.write(result) qnstate.write(state) if return_stats: analyze = True out = [result] if analyze: log_info("---") stats = analyze_results(result, data, competition_type, build_plots, start_date) if return_stats: out.append(stats) if args_count > 1: out.append(state) if len(out) == 1: out = out[0] return out finally: qndc.set_max_datetime(None) And of course I made analyze_results return the statistics like so (line 458 in the original): if not build_plots: log_info(stat_global.to_pandas().tail()) return stat_global # here log_info("---") log_info("Calc stats per asset...") stat_per_asset = qnstat.calc_stat(data, output, per_asset=True) stat_per_asset = stat_per_asset.loc[output.time.values[0]:] if is_notebook(): build_plots_jupyter(output, stat_global, stat_per_asset) else: build_plots_dash(output, stat_global, stat_per_asset) return stat_global # and there

      This might not be the most elegant solution but you get the idea.
      Now I can get the statistics immediately after the backtest with

      weights, stats = backtest(...return_stats=True)

      and can do further analysis.
      For instance, I started to calculate the correlations between my strategies to avoid uploading more of the same to the contest.

      It would be nice to have this feature in a future version, so I don't have to mess with the backtester after each update 😉

      Best regards

    • cespadilla

      Q17 ML Example not running on Local Development
      Support • • cespadilla

      3
      1
      Votes
      3
      Posts
      301
      Views

      cespadilla

      @support thanks, I deleted the old environment, installed it again according to the documentation, and now it is working 👌

    • cespadilla

      Leaderboard not updating again
      Support • • cespadilla

      3
      1
      Votes
      3
      Posts
      270
      Views

      support

      @cespadilla It is fine now. We announced the Q15 winners and changed some details, sorry for the problems.

    • A

      Issues with the Legacy Website
      Support • • antinomy

      3
      1
      Votes
      3
      Posts
      873
      Views

      A

      @jeppe_and Ok, thanks for the quick reply!

    • V

      Strategy Checking
      Support • submission • • violet.mewtwo

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

    • A

      Correlation Check always fails
      Support • • antinomy

      3
      1
      Votes
      3
      Posts
      781
      Views

      support

      @antinomy Hello, sorry for the delay in the answer, the problem has been fixed in the meanwhile. If correlations are too high, you will get a warning. Note that correlations will be checked against template code and submissions to past contests of the same kind (which are not present currently as this is the 1st crypto long-only contest we run).

    • R

      Processing submissions
      Support • • rezhak21

      3
      0
      Votes
      3
      Posts
      432
      Views

      R

      @support ok, I see, all my systems look processed btw

    • nosaai

      Collections has no attribute Iterable
      Support • • nosaai

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

    • V

      Getting logged out of account
      Support • • vg2001

      3
      0
      Votes
      3
      Posts
      386
      Views

      support

      @vg2001 Dear vg2001,
      There were some problems with the servers, thank you for your patience.
      Regards

    • C

      Os period is not updated
      Strategy help • • CommanderAngle

      3
      1
      Votes
      3
      Posts
      425
      Views

      support

      @commanderangle Dear commanderangle,

      Your strategies are processed in a correct manner, but the reason why you see 0 out-of-sample score is due to the fact that your strategies generate zero weights for all assets for out-of-sample time period. You can check your weights for any strategy by downloading them. There is a download button in the submission logs section.

      Regards

    • magenta.grimer

      Help in using optimizer for the custom args trend following strategy
      Support • • magenta.grimer

      3
      0
      Votes
      3
      Posts
      235
      Views

      magenta.grimer

      @magenta-grimer thank you @support 🙇 🙇 🙇 🙇 🙇 🙇
      My compliments four your exceptional python skills

    • D

      progress check froze
      Strategy help • • dark.pidgeot

      3
      0
      Votes
      3
      Posts
      240
      Views

      D

      @support Hello,

      got it, thanks for the reply,

    • R

      Limit to submission number
      General Discussion • • rezhak21

      3
      0
      Votes
      3
      Posts
      315
      Views

      R

      @support thanks, yes....

    • nosaai

      Outdated Libraries
      Support • • nosaai

      3
      1
      Votes
      3
      Posts
      287
      Views

      nosaai

      @support Thank you for the prompt response. Time to get on with it. Thanks again.

    • A

      Unable to untick the strategy
      Support • • anshul96go

      3
      0
      Votes
      3
      Posts
      242
      Views

      support

      We managed to reproduce this issue and we fixed it.

    • A

      Bitcoin Futures strategy in Futues Competition
      Support • • anshul96go

      3
      0
      Votes
      3
      Posts
      240
      Views

      J

      @anshul96go Hello, when you submit, you have to select the competition type.

      If you want to submit a Bitcoin system, you have to select "Cryptofutures".

      If you want to submit a Futures system not including Bitcoin at all, you have to select "Futures".

    • D

      Errors when I save the isssus parameters of my optimization in the json file
      Strategy help • • dark.pidgeot

      3
      1
      Votes
      3
      Posts
      705
      Views

      D

      @support Thank you for your advise, it's ok

    • magenta.grimer

      Template strategy broken!
      Support • • magenta.grimer

      3
      0
      Votes
      3
      Posts
      233
      Views

      support

      Thank you for the report. The template has been updated.

    • illustrious.felice

      Please create the program "Quantiacs Tips"
      Strategy help • • illustrious.felice

      3
      0
      Votes
      3
      Posts
      285
      Views

      illustrious.felice

      @support Thank you for your feedback. I also hope Quantiacs updates new strategy examples on how to use technical analysis (besides sma, trix_ema, atr_lwma,...), and strategies on using ML/DL models effectively (not an example that strategy forward-looking),...

      Hopefully in the future Quantiacs will release new data sets such as news, sentiment, macro, options,... Create new contests that allow merging strategies to build portfolios,...

      Hopefully, Quantiacs will continue to grow. Sincere thanks to Quantiacs for creating extremely high-quality contests.

    • illustrious.felice

      Technique to reduce max_drawdown
      Strategy help • • illustrious.felice

      3
      0
      Votes
      3
      Posts
      271
      Views

      illustrious.felice

      @magenta-kabuto Thank you very much for your advice. I will research to apply your suggestions to the algorithm

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