Coder Social home page Coder Social logo

lcm6097 / tensorflow-stockprediction Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.22 MB

Using the TensorFlow library for Python. I am aiming to create a Recurrent Neural Network to predict the stock value of a company.

License: GNU General Public License v3.0

Python 100.00%

tensorflow-stockprediction's Introduction

TensorFlow-StockPrediction

I was watching a stock trading conference video, the head of one of Canada’s top trading banks was talking about High Frequency Trading. It surprised me when he said that almost 60% of all trades in the stock market are decided by computers. It showed me the disadvantage any individual trader has when competing with big banks and trading firms in the stock market.

Although it seems hopeless to compete with the professionals, maybe a machine learning model could help close this gap between these giants and the individual traders.

As with most, if not all, machine learning models, it will not predict with perfect accuracy but if it is used in conjunction with other strategies and indicators, it could help these traders decide where to place their money to maximize their return on investments.

After some research I decided to try to use a Long-Short Term Memory network, which is a type of Recurrent Neural Network. This network will predict the stock prices of Microsoft (MSFT) and Apple (AAPL). The model will be trained to work with large cap companies since long-term investors will be more interested in those companies rather than medium or small cap stocks.

With stock price prediction and a well-rounded risk management method, I believe that machine learning will be more popular with individual traders and not only banks, hedge funds and other trading firms.

figure_1

  • Training Loss for Apple stock figure_2 -Prediction vs Real values, and test values loss for Apple stock

Built With

Authors

  • Lucas Magalhaes - Author

Paper

For more information on version 1 of this project, you can read the paper that I wrote. Paper

License

This project is licensed under the GNU General Public License v3.0 License - see the LICENSE.md file for details

Future Work

  • Add more tickers to the algorithm
  • Add different timelines of the stock pricing(now it only does 1 price/day)
  • Backtest algorithm to make sure it makes money
  • Add trading algorithm that will take risk management into account
  • Add portfolio management

tensorflow-stockprediction's People

Contributors

lcm6097 avatar

Stargazers

Elias Melul avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.