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
    • magenta.grimer

      Importing external data
      General Discussion • • magenta.grimer

      4
      1
      Votes
      4
      Posts
      832
      Views

      support

      @penrose-moore Thank you for the idea. For the Bitcoin Futures contest we are indeed patching the Bitcoin Futures data with the BTC spot price to build a meaningful time series. For the other Futures contracts, for the moment we will keep the futures histories only, but add spot prices + patching with spot prices to increase the length of the time series to our to-do list.

    • cespadilla

      Question about the Q17 Machine Learning Example Algo
      Strategy help • • cespadilla

      4
      1
      Votes
      4
      Posts
      934
      Views

      V

      @cespadilla Hello.

      The reason is in "train_model" function.

      def train_model(data): asset_name_all = data.coords['asset'].values features_all = get_features(data) target_all = get_target_classes(data) models = dict() for asset_name in asset_name_all: # drop missing values: target_cur = target_all.sel(asset=asset_name).dropna('time', 'any') features_cur = features_all.sel(asset=asset_name).dropna('time', 'any') target_for_learn_df, feature_for_learn_df = xr.align(target_cur, features_cur, join='inner') if len(features_cur.time) < 10: continue model = get_model() try: model.fit(feature_for_learn_df.values, target_for_learn_df) models[asset_name] = model except: logging.exception('model training failed') return models

      If there are less than 10 features for training the model, then the model is not created (if len(features_cur.time) < 10).

      This condition makes sense. I would not remove it.

      The second thing that can affect is the retraining interval of the model ("retrain_interval").

      weights = qnbt.backtest_ml( train=train_model, predict=predict_weights, train_period=2 *365, # the data length for training in calendar days retrain_interval=10 *365, # how often we have to retrain models (calendar days) retrain_interval_after_submit=1, # how often retrain models after submission during evaluation (calendar days) predict_each_day=False, # Is it necessary to call prediction for every day during backtesting? # Set it to true if you suspect that get_features is looking forward. competition_type='crypto_daily_long_short', # competition type lookback_period=365, # how many calendar days are needed by the predict function to generate the output start_date='2014-01-01', # backtest start date analyze = True, build_plots=True # do you need the chart? )
    • V

      Example strategy for Q19
      Support • • vg2001

      4
      0
      Votes
      4
      Posts
      460
      Views

      support

      @vg2001 Hello, the Q19 is a replica of the Q18, you ccan use the same examples.

    • N

      SMA Example
      Support • • Nikos84

      4
      0
      Votes
      4
      Posts
      492
      Views

      N

      @support Thank you!

    • S

      Stocks strategy
      Strategy help • • spancham

      4
      0
      Votes
      4
      Posts
      783
      Views

      support

      @sheikh Hi, when it comes to stocks and historical simulations, the biggest issue is dealing with survivorship bias. The stock universe must include also stocks which have been delisted and we need to define trading rules which allow for trading instruments which make sense at each point in time. This week we are announing a new contest which is preparing the ground for stocks.

    • B

      Accessing both market and index data in strategy()
      Support • • buyers_are_back

      4
      0
      Votes
      4
      Posts
      596
      Views

      V

      @buyers_are_back Hello.
      Here is a new example of stock prediction using index data.
      I recommend using the single-pass version.
      https://quantiacs.com/documentation/en/data/indexes.html

    • A

      Jupyter/Jupyter Lab are not working for code editing/running
      Support • • AlgoQuant

      4
      0
      Votes
      4
      Posts
      970
      Views

      support

      @captain-nidoran Fixed, sorry for issue

    • nosaai

      Local Development Problems
      General Discussion • • nosaai

      4
      1
      Votes
      4
      Posts
      947
      Views

      V

      @nosaai Hello

      Spyder should be run under conda environment

      conda activate qntdev conda install spyder spyder

      an alternative way is to clone the library from https://github.com/quantiacs/toolbox
      and develop strategies inside qnt. But I recommend using the approach from the documentation.

    • R

      Processing Time
      General Discussion • • rezhak21

      4
      0
      Votes
      4
      Posts
      1023
      Views

      R

      @support ok, thank you!

    • illustrious.felice

      RuntimeError: expand(torch.DoubleTensor{[694, 6]}, size=[694]): the number of sizes provided (1) must be greater or equal to the number of dimensions in the tensor (2)
      Strategy help • • illustrious.felice

      4
      0
      Votes
      4
      Posts
      1713
      Views

      illustrious.felice

      @support Thank you so much. I have resolved this error

    • nosaai

      AttributeError: module 'qnt.data' has no attribute 'stocks_load_spx_data'
      Support • • nosaai

      4
      0
      Votes
      4
      Posts
      1864
      Views

      nosaai

      @vyacheslav_b Apologies for the late response. Thanks for the assistance, all is now well. Cheers

    • N

      How to submit stateful long short
      Strategy help • • newbiequant96

      4
      0
      Votes
      4
      Posts
      2997
      Views

      support

      @newbiequant96 Hi, the template is a "working code" still to be finalized and published among the templates in the account area, however the logic behind is strictly multi-pass and a conversion to single pass is not really so straightforward.

    • nosaai

      Strategy Builder Not Running
      Support • • nosaai

      3
      0
      Votes
      3
      Posts
      626
      Views

      nosaai

      @vyacheslav_b Forgive me for the late response, I have not been on the platform. Thank you for your assistance. I can report that I have had no joy in using the strategy builder. I followed what you said and went on to download Chrome and still no joy. The strategy did not even appear under My Strategies. I guess I will just have develop the strategy on my own IDE and upload. Anyway, thanks for assistance, most appreciated.
      Cheers

    • C

      Strategy with pre-trained neural network weights
      Support • • cortezkwan

      3
      0
      Votes
      3
      Posts
      476
      Views

      C

      @support Thanks.

    • R

      Processing submissions
      Support • • rezhak21

      3
      0
      Votes
      3
      Posts
      646
      Views

      R

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

    • C

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

      3
      0
      Votes
      3
      Posts
      833
      Views

      C

      @support
      Thanks !

    • magenta.grimer

      Can't apply optimizer to another simple strategy!
      Strategy help • • magenta.grimer

      3
      0
      Votes
      3
      Posts
      422
      Views

      support

      @magenta-grimer

      Hello.

      Remove .isel(time=-1).

      ma_slow = close.rolling(time=parameter1).mean() #.isel(time=-1) ma_fast = close.rolling(time=parameter2).mean()#.isel(time=-1)

      It selects the last day, you need an entire series.

      Regards.

    • G

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

      3
      0
      Votes
      3
      Posts
      1694
      Views

      G

      Thanks 🙏

    • S

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

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

    • E

      Q19 Contest
      General Discussion • • EDDIEE

      3
      0
      Votes
      3
      Posts
      1329
      Views

      support

      @eddiee Dear Eddiee, yes, the rules and the universe are the same. We will need some more time to extend the universe and the data set, so we decided to run a new contest with the same rules.

      Please note that according to the rules at https://quantiacs.com/contest/19

      A Trading System will be deemed to be a “unique“ Trading System if it was not submitted by the same user to a previous Contest and it was not published by the Sponsor itself and it was not submitted by another user to a previous Contest or to the current Contest. The Sponsor will run on submissions a correlation filter and will have to right to disqualify submissions which are not deemed to be unique.

      So re-submitting the same system will result into a system which is not eligible for a prize.

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