hi i'm working hard since one month to train a profitable model. my question is why are you trying to make a model to do so much trades when i backtest my model trying to predict the next price, i have around 52% chance that my prediction is in the good direction. but i succeeded to narrow down certains market conditions where i have 60% + (these market conditions happens less than 1% of the time but i can compensate this low amount of trades using leverages) i'm still not testing with real money, i have to do adjustements first, i'll let u know
@vsevolodnedora777929 күн бұрын
Interesting work! Thank you for sharing. One key consideration when working with financial data is context. Your model is trained on relatively old data, but the market is extremely dynamic, influenced by numerous external factors that change over time. From my experience in forecasting energy prices, I have found it helpful to train the model multiple times on progressively larger time windows to evaluate its performance. Afterward, I train the model on all available data up to the present, incorporating as many relevant external signals as I can find. I then train a set of diverse models, such as gradient boosting models, decision trees, neural networks, and even transformers. These trained models are used to make out-of-sample predictions for the entire dataset. Next, I build an ensemble model that combines the external signals with these individual predictions. While the resulting model is quite complex and challenging to interpret, it often performs well even on similarly stochastic and complex data, such as stock prices.
@KilgoreTroutAsf2 ай бұрын
Classic
@Vlad-e9u2 ай бұрын
Is it possible to train a model using computer vision to recognize trading patterns and candlesticks on screen, and then use reinforcement learning to train an agent that can trade based on what's happening in real-time on the chart?
@DanielGarcia-d6t2 ай бұрын
Why are the RMSE values so low?
@doords2 ай бұрын
Hey Jin, do you think transformers can do a better job than LSTM on stock prediction
@dtex_zero2 ай бұрын
I always feel like Neural networks are overkill for trading. Feeding it random things like OHLC and technical signals will not get you very far, they almost always overfit them to the training peroid as well, and will often only see them perform for a couple months at best. Contextually markets change, markets do not stay static it's why almost all algorithmic systems must be monitored and swapped out due to different contexts. There are not random things in the market but trying to fit models to bar data isn't one of them... it will get you nowhere.
@mitchcook52522 ай бұрын
Hey Dr Choi, great video. Would love to hear more detail about any data driven value investing approaches you are aware of. Also would be interested to hear you compare the uses and popularity statistical modelling vs machine learning in quantitative analysis.
@depodtech2 ай бұрын
Hey Jin, if I want to add volume tick & RSI, what the best way to shape the data?
@pythoncoding10923 ай бұрын
Since this is the last video on the channel and it came out 6 months ago, I'm assuming the model works :DD
@HiltonFernandes3 ай бұрын
Congratulations for being very clear in your explanations and very honest in the model evaluation.
@HiltonFernandes3 ай бұрын
It would be nice, though, that you could be more conclusive and show either a case where LSTM does help predict stock prices, or state that it's not useful at all to predict them.
@ndeutsch3 ай бұрын
8:57 how did you link this code of your model to the main code?! Because the cod of your model is in another file!!
@Paul.Lisanti4 ай бұрын
We learn more from mistakes than successes, so thanks for sharing Jin!
@Paul.Lisanti4 ай бұрын
Interesting concept! Thanks Jin
@dennisdmenace24164 ай бұрын
Torch 2.0 isn't available anymore and changing it to torch 2.2 causes the program to crash.
@dennisdmenace24164 ай бұрын
I wonder if you chose stocks for your model that didn't have many or few options contracts if it would remove some of the randomness.
@devanshkm4 ай бұрын
would using a transformer based model be better? would love a video on that topic
@adamfillion7555 ай бұрын
Amazing video! is the code available like your other videos?
@VidaVoltaSoftware5 ай бұрын
Great video! How is the model doing?
@trhtkify5 ай бұрын
This is amazing, im just starting out with testing my own model and your points are clarifying, would love more videos on this
@PolarTheIcebear-xl8ts5 ай бұрын
The videos you produce are super helpful for me, since I am working hard on understanding the math and logic behind neural networks. When you were talking about it not being suitable for predicting just the next it got me thinking. You could try and predict the price tomorrow and the day after with the same input data. If the price is down tomorrow you do an close market order otherwise you could buy at market open. I am curious what you would think of such trading strategy and maybe issues that arise like for example it being harder to train maybe? Also won't this model perform much better if you were to add loads of extra data like indicators and such. I am so happy I found you, you are super helpful on this journey with your videos!
@mundhiralmamari20066 ай бұрын
I did a similar project using CPC + GRU. The results were great for training, evaluation and testing, however the problem is with the trades for I used RL with PPO to simulate a trading environment and to make the agent make his decisions based on the policy optimization, despite my good hardware training the PPO was very long and the results didn’t work that well but it was a fun experiment
@yangchong23586 ай бұрын
Great video
@jeraldgooch64387 ай бұрын
Insightful video. As you point out, certain things may be simple in concept but complex and difficult in execution. You make a comment about using AI to predict future values to be derived from a company. I presume you are talking about future free cashflow predictions using some form of an ML model? Have you done any videos on this? Thanks!
@dishcleaner27 ай бұрын
Great video, Jin. I'm collecting minute data on the total microcap market right now (over 11 GB a month) to train my first neural network model. In my previous attempts with random forest models, I was able to get about 60-70% precision on live data, but as my dataset grew, my model performance got worse. It made me think there may be some merit in having a model that is only trained on short term data, like the last 30 trading days for example. Do you think such a model could be viable?
@dtex_zero2 ай бұрын
You're going to find this doesn't work. Contextually markets change, bar data is random. Everytime the markets change, your model is going to break as its constantly overfit to the current peroid. Something will work for 2-3 months then break and then again and again.
@josugutierrez78108 ай бұрын
you should use better input variables maybe related to technical indicators and macroeconomic ones
@josugutierrez78108 ай бұрын
Hope you find the model that make you money!! Hard work pays off, if it was easy everyone would be rich. Well done!
@mohamedhassanmohamed11758 ай бұрын
I love your content but I wish you made more videos and explain the codes
@sweealamak6289 ай бұрын
Stumbled upon your video today after learning about backpropagation. Really appreciate the clarity in your presentation and being honest about the model's results. Sadly, 53% success rate is no better than flipping a coin. Another factor that lead to many fund managers giving up on Machine Learning in recent years is market reflexivity. Quants are able to predict with high probability using an ensemble of algos but once they place a trade, the prediction goes haywire, due to the trade meddling with the chart pattern. Stock Price prediction is possibly the only ML endeavour that the analyst "poisons" the data after acting on it. Weather prediction on the other hand, a time series I believe where LSTM is deployed, successfully makes predictions because meteorologists are simply observing the atmosphere. Still early days, but I have seen publishings about success predicting an Emerging Market: Vietnam, claiming that it was achieved through multiple inputs from Closing Price to Technical Indicators. No evidence of people profiting from it so it seems like just theory at this point in time... like you mentioned, these papers are meant to make the PhDs look good.
@jinchoi-moneygeek8 ай бұрын
You raise many good points. The reflexivity of the market is what makes this challenge so hard. However, a 53% accuracy would be more than enough to make billions with. RenTec supposedly only achieves 50.75% accuracy on each trade.
@eitan719 ай бұрын
that's exactly the reason why i am an algorithmic trader...
@emmang20109 ай бұрын
Great video. Thank you.
@jinchoi-moneygeek9 ай бұрын
My pleasure!
@zhangjason28799 ай бұрын
Awesome! Look forward to the upcoming videos regarding LSTM + CNN!
@EloisaBassett9 ай бұрын
I love your content 🫶 please do moreee
@jinchoi-moneygeek9 ай бұрын
Thank you for your support!
@anthony-som9 ай бұрын
Looking forward to your future videos Mr. Choi. Really interested in creating one of these models myself. Do you have any book recommendations to learn this type of stuff?
@jinchoi-moneygeek9 ай бұрын
Thank you for your kind words. The Deep Learning book is one of the best I've read. It's math heavy but there's unfortunately no way around that. www.deeplearningbook.org/
@anthony-som9 ай бұрын
This is exactly what I needed 🥲! I appreciate you so much for sharing this with me@@jinchoi-moneygeek
@FalconerCH9 ай бұрын
Love your vids Dr Choi
@jinchoi-moneygeek9 ай бұрын
Thanks for your kind words
@koonsickgreen62729 ай бұрын
enjoyed the content.
@jinchoi-moneygeek9 ай бұрын
thank you
@celeb99mu9 ай бұрын
Great to see hybrid models in action. Would love to have the code available to look through offline.
@jinchoi-moneygeek9 ай бұрын
Thank you. I'll see about releasing some code in the future.
@MrPotatoHeadFX9 ай бұрын
Hey bro. I love your content. Could you create a video showing what a ML model would look like for a classification Ny session bias problem. Thank you in advanced.
@jinchoi-moneygeek9 ай бұрын
Thanks for the support. Could you elaborate on what you mean by the 'classification Ny session bias' problem?
@MrPotatoHeadFX9 ай бұрын
@@jinchoi-moneygeek Train a model that will say if price closes above or below the session opening price
@SauersML9 ай бұрын
Goated
@OkSid30010 ай бұрын
In other words. I need to develop the solution myself. And it have to be out of the box, groundbreaking strategy that nobody would guess for. Interesting challenge even though that sounds impossible. But still the biggest question is still remains. How do regular traders are still earning money on market if mathematicians and data scientists are swarming WallStreet with all fancy tehnology?
@jinchoi-moneygeek9 ай бұрын
That's a good question. I have two answers to your question. One, very few traders actually make money consistently. I read one statistic that says only 3% of day traders make money - though I don't know how accurate that statistic is. Two, we should give more credit to the human mind, which can reason much better than machines can. Machines are really good at detecting repeated patterns, but they're not so good at contextualizing the patterns. Are stocks falling because of Federal Reserve action or because of Covid? Such contexts are hard for machines to comprehend, especially if the contexts are new.
@christopherrose62610 ай бұрын
Really very practical. A lot of people try to predict price instead of return which might appear to give results but is an illusion and is not what we trade on. It sounds like you are not a big believer in the utility of these models but I am curious as to how well they might do at predicting return over a week or a month. It seems counterintuitive that they would be more successful at this but then if looking for patterns that might work and in some ways looking over a time period might actually eliminate some of the noise. In addition I am thinking some of the other potential inputs like sentiment, interest rate future prices, equity option prices might then have more relevance as inputs. Thoughts?
@jinchoi-moneygeek10 ай бұрын
Hi Chris, thanks for the kind words. Predicting price instead of returns never made any sense to me either. I think you raise some good points on using longer timeframes. But there are also downsides to doing that. For one, you either have to choose between using fewer data points (there are fewer weeks than days in a year) or using data that overlaps (Mon-Fri and Tue-Mon would share 4 days). I'm not sure there are any downsides to using overlapping data, but there might be. You could use longer histories of data, but then you risk using data that's not relevant anymore (the behaviour of market participants change). There are no easy answers. That's one of the frustrating things about applying machine learning to finance. As for using a variety of different inputs, I support the idea. But a word of caution from someone who's trodden that road before - extracting actionable insights from those inputs won't be easy.
@larryvanwallendael245310 ай бұрын
Great video! I appreciate how you delve into various aspects, unlike other videos that skim over crucial details. One aspect that caught my attention is the delay in prediction. Correct me if I'm wrong, but you utilize a sequence of returns up until a certain date, let's say February 16th in your example, to forecast the return on February 18th (calculated as the closing price on the 18th minus the closing price on the 17th, divided by the closing price on the 17th). My concern is practicality. If the model predicts a +10% return, does it mean one should buy the stock at the closing price on the 17th? But is it feasible to execute a trade at the exact closing price on the 17th? I'm curious about how this works in real trading scenarios.
@jinchoi-moneygeek10 ай бұрын
That's a great question. Yes, if the model predicts a +10% return, it would be best to buy at the closing price on the 17th - doing so would be most consistent with the model. You can actually execute at that price by using the market-on-close order type with your broker. www.investopedia.com/terms/m/marketonclose.asp
@zhangjason287910 ай бұрын
Thanks for the great video Jin! Would like to see a future video about how to incorporate CNN with bi-directional LSTM to predict the stock prices. Keep up with the great content, all the best!
@jinchoi-moneygeek10 ай бұрын
Thanks for your support! I'll see about combining CNNs and LSTMs in a future video.
@amirghorbani792210 ай бұрын
Predict stocks using ICDST AI PREDICT.
@Scalykams7 ай бұрын
Damn, this is the project I'm currently working on. Hahaha. Ltsm for direction and CNN for the entry pattern. Mine is for trading. Im just happy to see that it's being thought about
@tompousssssКүн бұрын
What's the result of your project finally? @@Scalykams
@thoainguyen-s4u10 ай бұрын
Can you predict the low and high of the next day?
@jinchoi-moneygeek10 ай бұрын
That's an interesting thought. I can try, but I don't know how accurate or actionable the predictions would be.
@raphamejias10 ай бұрын
Hi thanks for the tutorial very useful! I think all are waiting for the version with multiple stock
@jinchoi-moneygeek10 ай бұрын
Noted
@kyleganse497811 ай бұрын
Dude this is great. Its funny I was watching videos of people making LSTM's speaking about the issues. One guy in comments pretty much said what you explained. He has been getting great results with a very complex LSTM, lots of dropout & batchNorm. Leaky relu activation and then uses Mean Squared Error %. I found it interesting. Then I find your video! Going to go play around with some models now :D
@christosmaroulis13211 ай бұрын
Could you please make a follow-up video or reference materials where you trained an LSTM using multiple stocks?
@jinchoi-moneygeek11 ай бұрын
I'll consider making a video if I get more similar requests.
@castral34911 ай бұрын
Please🥺 @@jinchoi-moneygeek
@doords2 ай бұрын
@@jinchoi-moneygeek I am just repeating the code for the main part for other stocks, keep the other parts like the training and NN parts and just save it as a different model. Is there a more convenient way to go about.
@christosmaroulis13211 ай бұрын
This is an extremely useful tutorial; very clear and info-rich. Two questions: The two-week time-sequences you use seem to all be the same length. Could you please share any thoughts that you may have on: a) using varying-length time-sequences, ie different history lengths and b) using time-sequences w/ varying history lengths initially, but that are subsequently padded with zeros so that we end up with the same fixed history length across all time-sequences?
@jinchoi-moneygeek11 ай бұрын
Thanks for the kind words! You can indeed use variable lengths. You'd want a clear rationale for having some inputs being longer than others, though. I'm not aware of a good rationale, but maybe you or others would have. You shouldn't need to pad inputs with 0s. LSTMs can handle variable lengths natively.
@christosmaroulis13211 ай бұрын
@@jinchoi-moneygeekThanks again! I also appreciated how you demonstrated that (vanilla) LSTMs can predict multiple timesteps. In your experience, do you find multiple timestep predictions to be more (or less) reliable from a vanilla LSTM vs an Encoder-Decoder LSTM?
@paulrelf11 ай бұрын
I really enjoyed the clarity in your video. It would be interesting to see how this model performs with dollar bars. I am new to this area and have been reading time bar sampling has inherent limitations. Thank you for sharing your code, I'd like to dig deeper and this helps tremendously.
@jinchoi-moneygeek11 ай бұрын
Thanks for the kind words, Paul. Applying dollar bars would be interesting indeed. I'll think about making a video about it.
@shivanjaydj556511 ай бұрын
incredible video, where can i discuss more about this with you ?
@jinchoi-moneygeek11 ай бұрын
Thank you! If you'd like to contact me, go to www.eddywealth.com/contact/