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

      Calculation of trading strategies
      Strategy help • • dark.pidgeot

      26
      0
      Votes
      26
      Posts
      284
      Views

      D

      @jeppe_and Thanks for the reply, i'll check my code

    • S

      Submission failure
      Support • • Sun-73

      21
      1
      Votes
      21
      Posts
      401
      Views

      support

      @antinomy great! Sorry, there were many submissions on the last day.

    • S

      Please advise on p settings. Thanks.
      Strategy help • • spancham

      21
      1
      Votes
      21
      Posts
      420
      Views

      S

      Hi @support
      Thank you, I'll try that.

    • magenta.grimer

      More color on contest rules
      General Discussion • • magenta.grimer

      16
      0
      Votes
      16
      Posts
      208
      Views

      support

      @magenta-grimer Hello, the 34 M USD have been allocated to the winning strategies according to the contest rules.

      Other strategies have been funded, and agreements are in place between quantiacs, investors and quants. We cannot disclose more details now, sorry.

      5M USD is a reasonable capacity a strategy could handle, yes.

    • S

      Machine Learning Strategy
      Strategy help • • spancham

      13
      0
      Votes
      13
      Posts
      334
      Views

      S

      @vyacheslav_b
      Thank you! 🎉 🎉

    • support

      Share the state between iterations
      Request New Features • • support

      13
      1
      Votes
      13
      Posts
      240
      Views

      S

      @support
      ok I did what @antinomy said below and the 'state' strategy worked.
      https://quantiacs.com/community/topic/46/macroeconomic-data-with-quantiacs/3?_=1619554449031

      However, it broke my old strategies. So he further suggested to:
      https://quantiacs.com/community/topic/46/macroeconomic-data-with-quantiacs/5?_=1619556376479
      And my old strategies are running again.

      Ok, so looks like for now for all strategies without a state I have to output and pass None to weights for the state & pass a state variable to the strategy.
      Will keep you updated. Thanks for looking into the issue.

    • S

      Strategy Funding
      General Discussion • • spancham

      13
      1
      Votes
      13
      Posts
      267
      Views

      support

      @sheikh Hi,

      it simply means that your system should make a new global high before you are entitled for a payment. If your system makes 1000 at the end of January, 800 at the end of Februray, 900 at the end of March and 1100 at the end of April, your profit will be generated at the end of April and they will amount to 1100-100=100;

      no, once the system starts being traded, it will be traded in the form it was at submission time, i.e. the quant will not be allowed to update parameters/change details. Of course a submitted system can have an adaptive logic, by changing parameters according to the value of some meta-indicator. If the quant believes there is some big change to be made, it is ok to re-submit the changed system, but it will need again to accumulate a track record before being traded.

    • A

      Why are my Q17 Strategies not running?
      Support • • Algotime

      12
      1
      Votes
      12
      Posts
      108
      Views

      support

      @mwalimudan Yes, we are really sorry. We did not think about these corner cases, but with cryptos, they can take place.

    • news-quantiacs

      The Q16 Contest is open!
      News and Feature Releases • • news-quantiacs

      12
      2
      Votes
      12
      Posts
      265
      Views

      support

      @antinomy In the end we followed your advise and changed a little bit the algorithm for adding data, once a cryptocurrency is in the top10 we include it with its past history and go on with the update (now DASH and XMR are being updated). Of course once the crypto is not among the top 10, the liquidity tag for the filter is "zero". Thank you!

    • S

      Files disappeared from online env
      Support • • Sheikh

      12
      1
      Votes
      12
      Posts
      187
      Views

      support

      @antinomy Hi, sorry for the late answer. The problem is the size of files, we are working on a solution for avoiding this issue in the future.

    • A

      Submission Issue
      Support • • antinomy

      12
      0
      Votes
      12
      Posts
      178
      Views

      A

      Just out of curiousity I did some testing and it looks like the class actually was the culprit.
      I submitted a simple strategy in 2 versions, one with a class and the other with a dictionary as state. The class version was rejected (exaclty like the one from my 1st post) and the dictionary version got accepted.

    • A

      Different Sharpe ratios in backtest and competition filter
      Support • • antinomy

      12
      2
      Votes
      12
      Posts
      250
      Views

      C

      @support Thank you very much for the clarification, and once again congratulations for the great job you are doing 😉

    • S

      Different Sharpe ratios in backtest and after submission
      Support • • Sun-73

      11
      1
      Votes
      11
      Posts
      113
      Views

      S

      Hi @support,

      I modified the retraining interval to 1 day and it worked. Thank you for the help.

      You guys rock!

    • S

      Optimizer still running
      Strategy help • • spancham

      10
      1
      Votes
      10
      Posts
      166
      Views

      S

      @support
      Thank you! I'll try that and let you know.

    • S

      Suggestions for the Q17 contest.
      News and Feature Releases • • Sun-73

      10
      2
      Votes
      10
      Posts
      227
      Views

      support

      @theflyingdutchman Hi, each system is tested for correlations against the templates we provide and with all systems submitted to the past crypto contest.

      Sorry for the confusion when you run the notebook, we are working on improving the correlation messages.

      We already changed the information displayed in the submission area. If you want to get more infos on correlations, please submit your code (it does not matter the message about correlations you get in the notebook, the system will be processed). After processing, the submission will appear in your submission area as a "non-eligible" submission because of high correlations, and you will see to which template the correlation is high; and to which past submission you made (to the Q16) the correlation is high. Moreover, you will get some infos about correlations to systems you are submitting to the Q17 contest.

    • D

      Optimizer not working locally
      Support • • dark.yellowjacket

      10
      0
      Votes
      10
      Posts
      113
      Views

      C

      Thanks @dark-yellowjacket for post your solution for the optimizer, it works fine for me but could you please go deeper explaining how do you implement the optimized obtained parameter values in the final strategy. I have tried several methods (even in several computers) , obtaining always errors.
      For example using this template provided by Quantiacs (where i call to "Strategy" I use the same previouslly optimized, and the config.json is the output asset by asset obtained after optimization):

      import json import xarray as xr import qnt.backtester as qnbk from Strategy import * def optmized_strategy(data, config): results = [] for c in config: results.append(strategy_long(data, **c)) # align and join results results = xr.align(*results, join='outer') results = [r.fillna(0) for r in results] output = sum(results) / len(results) return output config = json.load(open('config.json', 'r')) # multi-pass # It may look slow, but it is ok. The evaluator will run only one iteration per day. qnbk.backtest( competition_type='stocks_nasdaq100', lookback_period=365, strategy=lambda d: optmized_strategy(d, config), # strategy=strategy_long, # you can check the base strategy too start_date='2006-01-01')

      It rises the following error:

      Reloaded modules: Estrategia fetched chunk 1/5 0s fetched chunk 2/5 0s fetched chunk 3/5 0s fetched chunk 4/5 0s fetched chunk 5/5 0s Data loaded 1s Run last pass... Load data... fetched chunk 1/1 0s Data loaded 0s Run strategy... Traceback (most recent call last): File "C:\Users\LuisPC\.conda\envs\qntdev\lib\site-packages\spyder_kernels\py3compat.py", line 356, in compat_exec exec(code, globals, locals) File "c:\users\luispc\desktop\quantiacs\q18\prueba.py", line 39, in <module> start_date='2006-01-01') File "C:\Users\LuisPC\.conda\envs\qntdev\lib\site-packages\qnt\backtester.py", line 291, in backtest result = strategy_wrap(data, state) File "C:\Users\LuisPC\.conda\envs\qntdev\lib\site-packages\qnt\backtester.py", line 270, in <lambda> strategy_wrap = (lambda d, s: strategy(d)) if args_count < 2 else strategy File "c:\users\luispc\desktop\quantiacs\q18\prueba.py", line 37, in <lambda> strategy=lambda d: optmized_strategy(d, config), File "c:\users\luispc\desktop\quantiacs\q18\prueba.py", line 22, in optmized_strategy results.append(strategy_long(data, **c)) File "C:\Users\LuisPC\Desktop\quantiacs\Q18\Estrategia.py", line 16, in strategy_long data = data.sel(asset=[asset]) File "C:\Users\LuisPC\.conda\envs\qntdev\lib\site-packages\xarray\core\dataarray.py", line 1337, in sel **indexers_kwargs, File "C:\Users\LuisPC\.conda\envs\qntdev\lib\site-packages\xarray\core\dataset.py", line 2505, in sel self, indexers=indexers, method=method, tolerance=tolerance File "C:\Users\LuisPC\.conda\envs\qntdev\lib\site-packages\xarray\core\coordinates.py", line 422, in remap_label_indexers obj, v_indexers, method=method, tolerance=tolerance File "C:\Users\LuisPC\.conda\envs\qntdev\lib\site-packages\xarray\core\indexing.py", line 120, in remap_label_indexers idxr, new_idx = index.query(labels, method=method, tolerance=tolerance) File "C:\Users\LuisPC\.conda\envs\qntdev\lib\site-packages\xarray\core\indexes.py", line 242, in query raise KeyError(f"not all values found in index {coord_name!r}") KeyError: "not all values found in index 'asset'"

      I tried to explain this problem about the implementation in the Backtester in another forum thread time ago, without getting a valid answer, therefore I would appreciate any idea you can give me on this matter.
      ...Otherwise I am afraid that I will not present algorithms for this contest (Sadly 😢 )
      Regards.
      Luis G.

    • S

      Q19 contest
      News and Feature Releases • • Sun-73

      9
      0
      Votes
      9
      Posts
      128
      Views

      support

      @theflyingdutchman thanks, understood

    • C

      Local Development Error "could not convert string to float:'NAS:...'"
      Support • • captain.nidoran

      9
      1
      Votes
      9
      Posts
      208
      Views

      support

      @captain-nidoran Not fully conclusive yet, please check the related topic:

      https://quantiacs.com/community/topic/249/strategy-optimization-in-local-development-environment-is-not-working/5

    • S

      Issue with the In-sample Sharpe
      Support • • Sun-73

      9
      0
      Votes
      9
      Posts
      137
      Views

      S

      @support Thank you once again. You guys are the best!

    • E

      Local Development Error "No module named 'qnt'"
      Support • • EDDIEE

      9
      1
      Votes
      9
      Posts
      141
      Views

      support

      @eddiee Hello! Please check here:

      https://quantiacs.com/documentation/en/user_guide/local_development.html#updating-the-conda-environment

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