Code Monkey home page Code Monkey logo

trading_bot-18's Introduction

R.A.M. Trading

Purpose

This project works to find what stock trading strategy is the most successful when given the choice between a machine, people on a subreddit, and company/stock metrics. An LSTM Neural Network was used to predict stocks for the machine learning method, WSB was used to make the decisions for the reddit method, and value metrics such as price-to-earnings and price-to-book were used for the algorithmic value investing strategy. You can check out my live dashboard and the performance/holdings of each account here.

To use for youself, make sure you have:

  1. Python 3.10 installed
  2. A MYSQL Database named purchase_history
  3. Initialized tables under the aliases:
    • algo_method
    • net_method
    • reddit_method
      • Can be done by calling db_initializer and changing the table name at the bottom
  4. Run pip install -e .
  5. Run pip install -r requirements.txt
  6. Have filled in all the necessary information from config_template.py

To run bot:

  1. Call bot.py
  2. Choose which method to run
    • R = Reddit Method (WSB)
    • A = Algorithmic Method (Value Trading Strategy)
    • M = Machine Learning Method (LSTM time-series predictions)
  3. Allow loading time to finish and purchases to be made
  4. Check MYSQL tables to make sure purchases went through

To run streamlit app:

  1. Run sheet_writer.py by 4 a.m. (When account monitoring begins)
  2. Run streamlit run app.py
    • Local and remote links will be given once run to check the app
    • Feel free to use my powershell scripts by exporting the XML file to the Task Scheduler

trading_bot-18's People

Contributors

christot20 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.