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

      Holding period, execution simulation, feedback from live Quantiacs trading?
      General Discussion • • Penrose-Moore

      4
      0
      Votes
      4
      Posts
      807
      Views

      P

      @support yes coarse heuristics work well as long as you are conservative. For shorter term models I have started using minute bars despite the computational hit, because it helps in a lot of other ways.

      I may enter this contest, I am pretty rusty on predictive modelling and I am not sure I can do a good job using just daily prices, there is not a lot of data. I used to work at a CTA and I feel like we wasted a lot of man years using only prices, hoping better models would acheive more alpha. in the end the sharpe is similar to the S&P but uncorrelated, but you have gotten there with some simpler models and enjoyed life.

      I have some other questions about the platform and the contest that I will post here.

      Best
      P.M.

    • S

      Q22 submission, strategies excluded
      Support • • Sun-73

      4
      1
      Votes
      4
      Posts
      1334
      Views

      S

      Hi @support, everything is all right now. Thank you!

    • L

      Windows or Linux?
      Strategy help • • laudis

      4
      0
      Votes
      4
      Posts
      764
      Views

      L

      Thanks !

    • A

      Taking long time and no status update
      Support • • anshul96go

      4
      0
      Votes
      4
      Posts
      1092
      Views

      support

      @anshul96go Sorry for the late answer, we missed it somehow. Yes, all submissions sent before deadline will be processed and accepted.

    • O

      Where can I get the OHLC data of Nasdaq100 index?
      Support • • omohyoid

      4
      0
      Votes
      4
      Posts
      571
      Views

      O

      @support Thanks for ur help

    • S

      Cryptocurrency algos issues
      Support • • Sheikh

      4
      1
      Votes
      4
      Posts
      1223
      Views

      S

      @support
      Thanks.
      You guys are the best!🏆

    • magenta.grimer

      Help !
      Support • • magenta.grimer

      4
      0
      Votes
      4
      Posts
      712
      Views

      A

      @magenta-grimer There are 2 things you might want to change:

      1: the lookback_period is 365 but you want a 400-day SMA. This will only produce NaNs, so the boolean array sma20 < sma20_crypto will be False everywhere resulting in -1 weights. 2*365 as lookback does the trick for these settings.

      2: Bitcoin is trading 24/7, futures aren't. Better use crypto.time.values instead of futures.time.values for the output of load_data.

      There might be something else that I didn't catch but the resulting sharpe is at least close to what would be expected (1.109 with 5 and 385)

    • M

      Printing training performance of neural network models
      Support • • multi_byte.wildebeest

      4
      1
      Votes
      4
      Posts
      2792
      Views

      V

      @multi_byte-wildebeest Hello. I don't use machine learning models in trading.

    • X

      allocations and orders
      General Discussion • • xiaolan

      4
      0
      Votes
      4
      Posts
      776
      Views

      support

      @xiaolan Yes, allocations are translate to orders internally, it is enough to check the variation in the allocations and transform it into number of contracts bought/sold. When we designed the toolbox the goal was to simplify development as much as possible for the users.

    • T

      Calculation time exceeded on submission
      Support • • TheFlyingDutchman

      4
      1
      Votes
      4
      Posts
      991
      Views

      V

      @theflyingdutchman Hello,

      Another option is to rewrite your strategy for a single-pass version before submitting it. This approach will significantly speed up the calculations. However, it's important to note that the actual statistical values can only be tracked after submitting the strategy to the competition.

      For example:
      https://github.com/quantiacs/strategy-ml-crypto-long-short/blob/master/strategy.ipynb

      To adapt this strategy for a single-pass version, follow these steps:

      Comment out or delete the line where qnbt.backtest_ml is used. Insert the following code: import xarray as xr import qnt.ta as qnta import qnt.data as qndata import qnt.output as qnout import qnt.stats as qnstats retrain_interval = 3*365 + 1 data = qndata.stocks.load_ndx_data(tail=retrain_interval) models = train_model(data) weights = predict(models, data) In a new cell, insert code to save the weights: qnout.write(weights)

      To view the strategy's statistics, use the following code in a new cell:

      # Calculate stats stats = qnstats.calc_stat(data, weights) 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")

      The qnbt.backtest_ml function is a unique tool for evaluating machine learning strategies, which stands out from what is offered on other platforms. It allows users to set retraining intervals and analyze statistical metrics of the strategy, as opposed to the traditional evaluation of the machine learning model. This provides a deeper understanding of the strategy's effectiveness under various market conditions.

    • D

      Kelly criterion
      Support • • dark.pidgeot

      4
      0
      Votes
      4
      Posts
      696
      Views

      support

      @dark-pidgeot Yes, of course. Please note that we do not implement leverage, and the sum of the absolute values of the weights has to be equal or smaller than 1. If it is larger, they will be rescaled down.

    • C

      Different dataset locally and in jupiterLab
      Support • • cross_platform.zebra

      4
      0
      Votes
      4
      Posts
      545
      Views

      support

      @cross_platform-zebra Hi, there is no other limitation regarding local development. It is already configured to be exactly the same datasets for Nasdaq100 stocks, and returns the same statistics for trading system running locally or online.

    • A

      Correlation fails although Sharpe ratio > 1
      Support • • agent.hitmonlee

      4
      0
      Votes
      4
      Posts
      532
      Views

      A

      Thanks for the answer!

      I still think something is wrong with this correlation checker. I even used this function to randomize the weights a few times, and I got the same correlation error:

      def add_random_noise(weights, noise_level=0.01): noise = np.random.uniform(-noise_level, noise_level, size=weights.shape) return weights + noise

      I am pretty sure it's impossible to have 90% correlation in this case.

    • damnedlies

      What are Sharpe returns relative to?
      Support • • damnedlies

      3
      1
      Votes
      3
      Posts
      693
      Views

      support

      @damnedlies Hello:

      we are taking relative daily returns, in other words the ratio: [price(t)-price(t-1)]/price(t-1)

      we are using no benchmark.

      Note also that we apply reinvesting when computing the numerator of the Sharpe ratio (geometric mean)

    • M

      Error while loading Data
      Support • • magenta.kabuto

      3
      0
      Votes
      3
      Posts
      605
      Views

      support

      @magenta-kabuto Hi, yes, sorry for late answer. For the moment we can support only the default panda version you mention, sorry

    • O

      I was logged out automatically
      Support • • omohyoid

      3
      0
      Votes
      3
      Posts
      577
      Views

      O

      @support I got it
      Thanks for ur reply

    • C

      Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager
      Support • • cyan.gloom

      3
      0
      Votes
      3
      Posts
      3330
      Views

      C

      @support
      Thanks a lot !

    • S

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

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

    • G

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

      3
      0
      Votes
      3
      Posts
      1868
      Views

      G

      Thanks 🙏

    • A

      datatype for weights seems changed recently
      Support • • angusslq

      3
      0
      Votes
      3
      Posts
      3698
      Views

      A

      @stefanm Thank you for the details

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