I Day Traded $1000 of Stocks using the LSTM Model

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 39

  • @cornagojar
    @cornagojar Год назад +6

    be sure to consider trading costs (commisions, bid-ask spread, financing, dividends...). Many strategies perform bad after costs. Also, the result should be compared with the index return as benchmark.

    • @ritvikmath
      @ritvikmath  Год назад +1

      good tip! and yes we'll definitely compare to the index return in the results video next week

  • @jA6s0T9m
    @jA6s0T9m Год назад +3

    Thanks for the video! I enjoy it much. The way you structure information is brilliant! Great job!

  • @poor_minshall
    @poor_minshall Год назад +3

    Really nice explanations of the concepts here. Probably the most difficult aspect to understand. I also really like the pen and paper style diagrams.

    • @ritvikmath
      @ritvikmath  Год назад

      Glad it was helpful! Appreciate the feedback

  • @robharwood3538
    @robharwood3538 Год назад

    One idea that may not have been covered yet -- but since you're already using a neural network it wouldn't be such a huge leap -- might be to use multiple (maybe even *all* of ) the ticker histories at once to predict multiple (or again, maybe all of) the returns at once. This would allow the neural network to utilize cross-industry information and correlations etc. to make a more accurate overall prediction. So, it might be able to pick out a 'portfolio' of stocks to make the overall investment less prone to risk.

  • @ismailkafi7682
    @ismailkafi7682 Месяц назад

    wonderful channel

  • @Bhagavad-Gita-channel
    @Bhagavad-Gita-channel Год назад

    Are you building this LSTM model per ticker?

  • @fhashim
    @fhashim Год назад +1

    Please do a video on stacked LSTM to generate single model for multiple stocks.

  • @pavybez
    @pavybez Год назад

    Hi Ritvik. Thanks for another excellent video. My only question is shouldn't one normalize the volume cause it's on a different scale to returns?

    • @ritvikmath
      @ritvikmath  Год назад +1

      Hey great comment, we did normalize the variables before passing them into the networks

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w Год назад +1

    I can't wait.

  • @juaneshberger9567
    @juaneshberger9567 Год назад

    great vids as always, keep it up👍🏻

  • @n.m.c.5851
    @n.m.c.5851 Год назад +2

    got my exam tomorrow, thanks

  • @justinnicholson8372
    @justinnicholson8372 Год назад

    Any chance you might share your code? I'd love to play around with the model!

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w Год назад

    your point about 90 days and generalization is kind of subtle. is there a way that you can explain again in another video possibly.

    • @ritvikmath
      @ritvikmath  Год назад

      It is quite subtle, I’ll try to go over it again in the next video!

  • @AbcXyz-rn2lz
    @AbcXyz-rn2lz Год назад

    You need a language model and news feature training to even have a chance at good averages. Regression off rsi, index, and volume alone will lose you money since trends have nothing to do with them; might as well be using standard deviation(drip) or curve equations(day trading); which work and are easy, by the way
    LSTM with regression is the right model, though. With good ML even a Perception network could work(simplest model)
    100% of regression with stocks is done with news correlation. Anything else is hard tolerances and index curves; unless you're sitting on cheap shares waiting for volume trends to cash out which just needs a simple bot

  • @VladimirSuravtsov
    @VladimirSuravtsov Год назад

    Great explanation, good luck with this experiment. I wounder if transformers is somehow applicable here as more computationally effective model for series data as ltsm?

  • @andreas131298
    @andreas131298 Год назад

    Thanks for the video as always, I'm curious about the backtesting part. What if you just randomize the training and test set, meaning that you don't need to train the model on the first half and test on the latter half, but rather just randomly pick 50% for training and 50% for testing?

    • @ritvikmath
      @ritvikmath  Год назад +2

      that's an idea worth trying! will keep it in mind for the next trading video. seems like it would add some non-determinism to the process.

    • @andreas131298
      @andreas131298 Год назад

      @@ritvikmath Yup, or applying k-fold dan give us some idea how stable/unstable the model is. Cheers! waiting how much money you’ll make out of this.

    • @cornagojar
      @cornagojar Год назад

      you can't with time series, as you would introduce lookahead bias

    • @ritvikmath
      @ritvikmath  Год назад

      very true that we'd need to be more careful in doing this with time series data

    • @andreas131298
      @andreas131298 Год назад

      @@cornagojar that’s a very good point! Thanks for pointing that out. However, I still think it might work, depending on the nature of the time series of course. I might be wrong, but here’s what I think, it’s true that only the past can determine the future. However, if a helpful pattern is found even in the future, then basically, it’s our assumption that the pattern is generalisable, meaning that if we found that pattern whether it’s a month ago or a year later, the outcome should be relatively similar, isn’t that what every time series prediction do? The prediction should be the same whether it’s in the future or it’s in the past as long as the input is the same. Let me put this in another way, say you have a pattern that is helpful in predicting a time series, if the pattern holds true in the future, then it should holds true for the past as well, shouldn’t it? If not, then I think we have no reason to predict anything really. The reason we use the training set to be the past time points is simply because we can’t have time points from the future. But in the training set itself, it seems there is no problem for me to rearrange it as I would like it, since we are just finding that general pattern, that hopefully will be useful in predicting the real test set.
      Sorry for the lengthy reply, but I’m genuinely curious about this, and I’m by no means an expert (as you might have notice already from my questions lmao). I only recently started learning time series analysis. Looking forward to your response ;)

  • @shahzaibsoomro5278
    @shahzaibsoomro5278 Год назад +1

    thanks for the video, I'm also working on trading bots. can i get your help and code for reference as well .

  • @alang.2054
    @alang.2054 Год назад +1

    Im not watching all that, but always remember to look at commisions and sharpe ratio! If everything was that easy, hedges wouldn't need 50 math phds, 50 data scientists and propably hundret of statisitcians

  • @ko-prometheus
    @ko-prometheus Год назад

    ☢☢☢☢☢
    For forecasting it is necessary to involve the knowledge and laws of MetapPhysics.
    Without MetaPhysics it is impossible to predict the future.
    Based on the theory of probability, on the theory of statistical analysis, the future is very, very difficult to predict.
    MetaPhysics is that window in the Universe that will allow you to look into the future!!