LSTMS for stock price predictions, worth it ?
@ rushi | Friday, Jul 3, 2020 | 2 minutes read | Update at Friday, Jul 3, 2020

The internet is now flooded with “predicting stock market prices using LSTM”. I went through 9 articles that I found on websites like medium, KDnuggets, etc. And I realized almost 6-7 out of them showed promising results. But none of them showed their real-life use-case; the question is is it beneficial?

LSTMS predict T+1th term by previous k terms of time-series, say k=2, So we need to have T and T-1 to predict T+2 so suppose my X for input is Open, High, Low, Close, Volume, and Y would be the next day’s Close

=> I need to have OHLCV values of the previous two days to predict the next day’s Close

=> If I need to know tomorrow’s Close, I need to wait till the current day ends to get its OHLCV values, i.e. it predicts only one candlestick in the future.

=> One article was like using previous k days Close to predict next days Close.

So for T+1, I would give it T’s and (T-1)’s Close as inputs and for T+2; T’s, and (predicted_T+1)’s Close as input.

Again, this is not useful because if there is an error in T+1, it gets propagated in the following sequence

Also, logically, we cannot predict movements based on only closing prices. OHLCV may work because it might detect a few candlestick patterns like Doji, Harami, etc., and consider volume.

LSTM’s in those articles showed good predictions because they predict only a single value instead of a range of values. So are they worth a single candlestick? Because even indicators like moving averages give a proper estimate for a single candlestick.

I think there should be a different approach to using LSTMS; I didn’t find any article. Please comment down below if you see something. I am not an expert in these fields — I am just putting forward the conclusions I got to after my explorations with this topic, so feel free to point out anything I missed. Thank you for your time.

关于我

g1eny0ung 的 ❤️ 博客

记录一些 🌈 生活上,技术上的事

一名大四学生

马上(已经)毕业于 🏫 大连东软信息学院

职业是前端工程师

业余时间会做开源和 Apple App (OSX & iOS)

主要的技术栈是:

  • JavaScript & TypeScript
  • React.js
  • Electron
  • Rust

写着玩(写过):

  • Java & Clojure & CLJS
  • OCaml & Reason & ReScript
  • Dart & Swift

目前在 PingCAP 工作

– 2020 年 09 月 09 日更新

其他

如果你喜欢我的开源项目或者它们可以给你带来帮助,可以赏一杯咖啡 ☕ 给我。~

If you like my open source projects or they can help you. You can buy me a coffee ☕.~

PayPal

https://paypal.me/g1eny0ung

Patreon:

Become a Patron!

微信赞赏码

wechat

最好附加一下信息或者留言,方便我可以将捐助记录 📝 下来,十分感谢 🙏。

It is better to attach some information or leave a message so that I can record the donation 📝, thank you very much 🙏.