Navigation

    Quantiacs Community

    • Register
    • Login
    • Search
    • Categories
    • News
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Strategy help
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • illustrious.felice

      Technique to reduce max_drawdown
      • illustrious.felice

      3
      0
      Votes
      3
      Posts
      225
      Views

      illustrious.felice

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

    • G

      This topic is deleted!
      • grey.monkey

      1
      0
      Votes
      1
      Posts
      4
      Views

      No one has replied

    • C

      This topic is deleted!
      • cashforscrapcar

      1
      0
      Votes
      1
      Posts
      3
      Views

      No one has replied

    • C

      This topic is deleted!
      • carwreckersss

      1
      0
      Votes
      1
      Posts
      2
      Views

      No one has replied

    • C

      This topic is deleted!
      • carwreckers

      1
      0
      Votes
      1
      Posts
      4
      Views

      No one has replied

    • C

      This topic is deleted!
      • cross_platform.weepinbell

      1
      0
      Votes
      1
      Posts
      4
      Views

      No one has replied

    • O

      This topic is deleted!
      • orchid.herring

      1
      0
      Votes
      1
      Posts
      4
      Views

      No one has replied

    • D

      This topic is deleted!
      • Devon456

      1
      0
      Votes
      1
      Posts
      4
      Views

      No one has replied

    • E

      Checking of strategies for Q20 takes two weeks
      • EDDIEE

      8
      0
      Votes
      8
      Posts
      562
      Views

      support

      @algotime Dear Algotime, all three strategies will participate in the contest. We will update the contest leaderboard once all eligible strategies have finished processing. Thank you for your patience.

    • C

      How to load data to work with Multi-backtesting_ml
      • cyan.gloom

      4
      1
      Votes
      4
      Posts
      333
      Views

      V

      @cyan-gloom

      Hello. The provided code is insufficient to understand the problem.

      I assume that a certain function might not be returning the required value (for instance, the function where your model is being created).

      I recommend that you check all return values of functions, using tools like display or print. Then, compare them with what is returned in properly working examples.

      The state allows you to use data from previous iterations. You can find an example here:
      https://github.com/quantiacs/toolbox/blob/2f4c42e33c7ce789dfad5d170444fd542e28c8ae/qnt/examples/004-strategy-futures-multipass-stateful.py

    • T

      Error Q20 output missing when submitting
      • TheFlyingDutchman

      11
      1
      Votes
      11
      Posts
      1074
      Views

      V

      @theflyingdutchman

      it can help you. See topic 3) Not enough bid information.

      https://github.com/quantiacs/strategy-q20-nasdaq100-quick-start/blob/master/strategy.ipynb

      def get_enough_bid_for(data_, weights_): time_traded = weights_.time[abs(weights_).fillna(0).sum('asset') > 0] is_strategy_traded = len(time_traded) if is_strategy_traded: return xr.where(weights_.time < time_traded.min(), data_.sel(field="is_liquid"), weights_) return weights_ weights_new = get_enough_bid_for(data, weights) weights_new = weights_new.sel(time=slice("2006-01-01",None))
    • C

      Multi-pass Backtesting
      • cyan.gloom

      5
      0
      Votes
      5
      Posts
      414
      Views

      V

      @eddiee

      Hello.

      This code looks to the future.
      It is needed to train the model.
      Pay attention to the name of the variable.

    • C

      Why Sharp ratios is not inverted ?
      • cyan.gloom

      4
      0
      Votes
      4
      Posts
      333
      Views

      C

      @support
      Thanks a lot !

    • C

      combinations of strategy
      • cyan.gloom

      3
      0
      Votes
      3
      Posts
      249
      Views

      C

      @support
      Thanks
      I got it !

    • M

      Backtesting
      • magenta.kabuto

      16
      1
      Votes
      16
      Posts
      1169
      Views

      support

      @stefanm Thank you!

    • J

      Fundamental Data: Periodic indicators & Instant indicators
      • johback

      4
      1
      Votes
      4
      Posts
      310
      Views

      V

      @johback

      Hello

      More examples are here https://github.com/quantiacs/toolbox/blob/main/qnt/tests/test_fundamental_data.py

      This is a simple example.

      import qnt.data as qndata import datetime as dt import qnt.data.secgov_indicators import qnt.data as qndata import qnt.stats as qns assets = qndata.stocks.load_ndx_list(tail=dt.timedelta(days=5 * 365)) assets_names = [i["id"] for i in assets] data = qndata.stocks.load_ndx_data(tail=dt.timedelta(days=5 * 365), dims=("time", "field", "asset"), assets=assets_names, forward_order=True) facts_names = ['operating_expense'] # 'assets', 'liabilities', 'ivestment_short_term' and other fundamental_data = qnt.data.secgov_load_indicators(assets, time_coord=data.time, standard_indicators=facts_names) # Operating expenses include marketing, noncapitalized R&D, # travel and entertainment, office supply, rent, salary, cogs... weights = fundamental_data.sel(field='operating_expense') is_liquid = data.sel(field="is_liquid") weights = weights * is_liquid # calc stats stats = qns.calc_stat(data, weights.sel(time=slice("2006-01-01", None))) display(stats.to_pandas().tail()) # graph performance = stats.to_pandas()["equity"] import qnt.graph as qngraph qngraph.make_plot_filled(performance.index, performance, name="PnL (Equity)", type="log")
    • J

      Alpha Default Value of EMA function
      • juzambranol

      5
      0
      Votes
      5
      Posts
      369
      Views

      support

      @gjhernandezp yes, correct, 2/(n+1), sorry for the typo, thanks for correcting

    • G

      External information
      • gjhernandezp

      3
      0
      Votes
      3
      Posts
      284
      Views

      support

      @gjhernandezp Hello, you can use them for local development. Unfortunately, we do not support yet external datafeeds after submission...it is on our to-do list.

    • A

      Submitting stratgy
      • aybber

      3
      0
      Votes
      3
      Posts
      422
      Views

      support

      @mwalimudan Sorry for the issue, but do not worry, we are extending the submission deadline to end of October as there were several issues. Please do not hesitate to report problems.

    • J

      USING A DIFFERENT MACHINE LEARNING LIBRARY
      • Joshua408

      2
      0
      Votes
      2
      Posts
      194
      Views

      support

      @joshua408 Yes, you can. You can use conda or pip for installing custom packages in your own environment by editing the init.py file

      More info can be found at:

      https://quantiacs.com/documentation/en/user_guide/code.html

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