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

      Q21 contest results
      News and Feature Releases • • neural.exeggutor

      6
      0
      Votes
      6
      Posts
      11810
      Views

      support

      @theflyingdutchman Hi, sorry for the delay, yes, all fine, more details by e-mail

    • E

      Q17 Neural Networks Algo Template; is there an error in train_model()?
      Strategy help • • EDDIEE

      6
      1
      Votes
      6
      Posts
      2024
      Views

      V

      Hello colleagues.

      The solution in case of predicting one financial instrument can be the following (train_period changed)

      def load_data(period): return qndata.cryptodaily_load_data(tail=period, assets=['BTC']) def train_model(data): """ train the LSTM network """ asset_name = 'BTC' features_all = get_features(data) target_all = get_target_classes(data) model = get_model() # 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') # align features and targets: target_for_learn_df, feature_for_learn_df = xr.align(target_cur, features_cur, join='inner') criterion = nn.MSELoss() # define loss function optimiser = optim.LBFGS(model.parameters(), lr=0.08) # we use an LBFGS solver as optimiser epochs = 1 # how many epochs for i in range(epochs): def closure(): # reevaluates the model and returns the loss (forward pass) optimiser.zero_grad() # input tensor in_ = torch.zeros(1, len(feature_for_learn_df.values)) in_[0, :] = torch.tensor(np.array(feature_for_learn_df.values)) # output out = model(in_) # target tensor target = torch.zeros(1, len(target_for_learn_df.values)) target[0, :] = torch.tensor(np.array(target_for_learn_df.values)) # evaluate loss loss = criterion(out, target) loss.backward() return loss optimiser.step(closure) # updates weights return model weights = qnbt.backtest_ml( load_data=load_data, train=train_model, predict=predict, train_period=1 * 365, # the data length for training in calendar days retrain_interval=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 build_plots=True # do you need the chart? )
    • M

      Strategy takes a long time to get verified
      Support • • magenta.muskrat

      6
      0
      Votes
      6
      Posts
      3223
      Views

      S

      @support, thank you for the clarifications. Regards.

    • X

      Combining classifiers
      Strategy help • • xiaolan

      6
      0
      Votes
      6
      Posts
      1229
      Views

      support

      @xiaolan That is correct, but the logic can be easily re-used. The only novel element will be the introduction of the liquidity filter at intermediate stages/at the final stage for the selection of the weights.

    • S

      Stocks data
      Support • • Sun-73

      6
      0
      Votes
      6
      Posts
      2327
      Views

      S

      @support Yes, I can load now the stocks data. Thank you once again!

    • M

      Kernel Dies
      Support • • magenta.kabuto

      6
      0
      Votes
      6
      Posts
      1060
      Views

      M

      @vyacheslav_b perfect. It wasnt obvious to me that single pass was meant by that. Thank you

    • news-quantiacs

      The Q17 Contest is running!
      News and Feature Releases • • news-quantiacs

      6
      1
      Votes
      6
      Posts
      4782
      Views

      support

      @magenta-grimer Hello, you can have at most 50 running submissions in your user area. You can stop any of them any moment and replace it with another one.

      Before the end of the Q17 submission phase, you should select at most 15 of them. These will take part to the live contest.

    • S

      Systems selection for the Q16 contest
      News and Feature Releases • • Sun-73

      6
      2
      Votes
      6
      Posts
      2826
      Views

      support

      @sun-73 Yes, we will, sorry for the issue.

    • A

      How are models ranked on the leaderboard before the live period?
      General Discussion • • antinomy

      6
      1
      Votes
      6
      Posts
      1814
      Views

      S

      @support
      oh I see now what you mean.
      15 strategies PER USER are selected.
      At first, I thought you were only going to select 15 strategies total for all users.
      Thanks.

    • A

      Weights different in testing and submission
      Support • • anshul96go

      6
      0
      Votes
      6
      Posts
      1532
      Views

      support

      @antinomy thanks!

    • magenta.grimer

      Optimize the Trend Following strategy with custom args
      Strategy help • • magenta.grimer

      6
      0
      Votes
      6
      Posts
      1510
      Views

      support

      Hello.

      I checked this problem. The script which cut "###DEBUG###" cells was incorrect. I fixed this and resent your strategies (filtered by time out) to checking.

      Regards.

    • illustrious.felice

      Translating code from Quantiacs Legacy
      Support • • illustrious.felice

      6
      0
      Votes
      6
      Posts
      1038
      Views

      illustrious.felice

      @vyacheslav_b Thank you so much

    • A

      toolbox not working in colab
      Support • • alexeigor

      6
      0
      Votes
      6
      Posts
      3085
      Views

      V

      @alexeigor Hello. Version 0.0.501 of the qnt library works correctly in Colab. Python version support has been extended from 3.10 to 3.13. The basic functionality of the library should work without issues.

      To install, use the following command:

      !pip install git+https://github.com/quantiacs/toolbox.git 2>/dev/null

      Note: Installing ta-lib in Colab is not working for me at the moment.

    • O

      No error messages show why the strategies failed
      Support • • omohyoid

      5
      0
      Votes
      5
      Posts
      1075
      Views

      support

      @omohyoid Dear omohyoid,

      Yes, that's right. After submitting your strategy shouldn't override environment variables.

      Regards

    • O

      How to turn off "WARNING: some dates are missed in the portfolio_history"
      Support • • omohyoid

      5
      0
      Votes
      5
      Posts
      1758
      Views

      support

      @omohyoid Hi, we do not have such calls, sorry

    • illustrious.felice

      Not enough bid information when submit
      Support • • illustrious.felice

      5
      0
      Votes
      5
      Posts
      708
      Views

      illustrious.felice

      @support Thanks for your respond. Now I understand the cause and fixed it

    • S

      How to install Python Talib
      Support • • spancham

      5
      0
      Votes
      5
      Posts
      2599
      Views

      support

      @sheikh It is fine, please just submit, check the result and let us know if you see any issue. It should work fine.

    • magenta.grimer

      Some clarifications
      General Discussion • • magenta.grimer

      5
      0
      Votes
      5
      Posts
      2087
      Views

      support

      @magenta-grimer Hi, we cannot provide the list of strategies we are still trading and the payouts. However, all the statistics are public, the new ones (since Q15) and the old ones at:
      https://legacy.quantiacs.com/Systems.aspx

    • cespadilla

      Leaderboard not updating?
      Support • competition leaderboard q16 • • cespadilla

      5
      1
      Votes
      5
      Posts
      2436
      Views

      cespadilla

      @support Hi again guys, I think the leaderboard is not updating again 😳

    • magenta.grimer

      Importing external data
      General Discussion • • magenta.grimer

      5
      1
      Votes
      5
      Posts
      1408
      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.

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