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

      How to select and combine strategies to optimize your portfolio
      • illustrious.felice

      3
      0
      Votes
      3
      Posts
      1019
      Views

      illustrious.felice

      @support. Thank you. So as I understand it, I will give higher weight to strategies with lower correlation and vice versa, right? According to your answer, I understand that I can also give high weight to low-volatility strategies and vice versa. So what about equal risk portfolio? In your opinion, is this an effective way to optimize your portfolio?

    • G

      This topic is deleted!
      • green.pinsir

      1
      0
      Votes
      1
      Posts
      3
      Views

      No one has replied

    • illustrious.felice

      Technique to reduce max_drawdown
      • illustrious.felice

      3
      0
      Votes
      3
      Posts
      986
      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
      2012
      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
      1203
      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
      5971
      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
      1548
      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
      1747
      Views

      C

      @support
      Thanks a lot !

    • C

      combinations of strategy
      • cyan.gloom

      3
      0
      Votes
      3
      Posts
      1122
      Views

      C

      @support
      Thanks
      I got it !

    • M

      Backtesting
      • magenta.kabuto

      16
      1
      Votes
      16
      Posts
      4973
      Views

      support

      @stefanm Thank you!

    • J

      Fundamental Data: Periodic indicators & Instant indicators
      • johback

      4
      1
      Votes
      4
      Posts
      1050
      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
      977
      Views

      support

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

    • G

      External information
      • gjhernandezp

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

    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