I Day Traded $1000 of Stocks using the LSTM Model

Sdílet
Vložit
  • čas přidán 27. 08. 2024

Komentáře • 38

  • @eminsh
    @eminsh Před rokem +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  Před rokem

      Glad it was helpful! Appreciate the feedback

  • @jA6s0T9m
    @jA6s0T9m Před rokem +3

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

  • @cornagojar
    @cornagojar Před rokem +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  Před rokem +1

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

  • @juaneshberger9567
    @juaneshberger9567 Před rokem

    great vids as always, keep it up👍🏻

  • @robharwood3538
    @robharwood3538 Před rokem

    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.

  • @n.m.c.5851
    @n.m.c.5851 Před rokem +2

    got my exam tomorrow, thanks

  • @fhashim
    @fhashim Před rokem +1

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

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w Před rokem +1

    I can't wait.

  • @pavybez
    @pavybez Před rokem

    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  Před rokem +1

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

  • @user-tq7xp6ev1y
    @user-tq7xp6ev1y Před rokem

    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?

  • @AbcXyz-rn2lz
    @AbcXyz-rn2lz Před rokem

    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

  • @andreas131298
    @andreas131298 Před rokem

    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  Před rokem +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 Před rokem

      @@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 Před rokem

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

    • @ritvikmath
      @ritvikmath  Před rokem

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

    • @andreas131298
      @andreas131298 Před rokem

      @@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 ;)

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w Před rokem

    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  Před rokem

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

  • @alang.2054
    @alang.2054 Před rokem +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

  • @Bhagavad-Gita-channel

    Are you building this LSTM model per ticker?

  • @justinnicholson8372
    @justinnicholson8372 Před rokem

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

  • @shahzaibsoomro5278
    @shahzaibsoomro5278 Před rokem +1

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

  • @ko-prometheus
    @ko-prometheus Před rokem

    ☢☢☢☢☢
    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!!