Git Product home page Git Product logo

joerndm / stock_portefolio_builder Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 31.49 MB

Using Machine Learning to predict future stock prices and creating a stock portfolio based on those predictions.

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%
data-science finance financial-analysis machine-learning machine-learning-algorithms numpy pandas portefolio python stock-market stock-price-prediction stocks yfinance data-analysis data-engineering

stock_portefolio_builder's Introduction

Stock Portfolio Builder

This repository contains scripts that fetch stock data and use it to build a machine learning model for predicting stock prices.

Prerequisites

  • Python 3.12.1 installed on your machine
  • Download the entire folder to your local machine

Installation

  1. Open a terminal or command prompt.

  2. Navigate to the project directory.

  3. Run the following command to install the required Python libraries:

    pip install -r requirements.txt
    

Running the Scripts

Windows

  1. Open a terminal or command prompt.
  2. Navigate to the project directory.

Predicting the Price of a Single Stock

  1. To predict the price of a single stock, run the following command:

    python3 ml_builder.py
    

    Note: Make sure you have the "index_symbol_list_single_stock.csv" file in the same directory as "ml_builder.py".

Predicting the Price of Multiple Stocks

  1. To predict the price of multiple stocks, run the following command:

    python3 stock_analyzer.py
    

    Note: Make sure you have the "index_symbol_list_multiple_stocks.csv" file in the same directory as "stock_analyzer.py".

iOS

  1. Open a terminal.
  2. Navigate to the project directory.

Predicting the Price of a Single Stock

  1. To predict the price of a single stock, run the following command:

    python3 ml_builder.py

    Note: Make sure you have the "index_symbol_list_single_stock.csv" file in the same directory as "ml_builder.py".

Predicting the Price of Multiple Stocks

  1. To predict the price of multiple stocks, run the following command:

    python3 stock_analyzer.py

    Note: Make sure you have the "index_symbol_list_multiple_stocks.csv" file in the same directory as "stock_analyzer.py".

Changing the Stock Ticker

To change the stock ticker that "ml_builder.py" predicts the price of, follow these steps:

  1. Open the "index_symbol_list_single_stock.csv" file in a text editor.
  2. Change the ticker to the desired stock symbol.
  3. Save the file.

Additional Requirements

  • "index_symbol_list_single_stock.csv" is required to run "ml_builder.py".
  • "index_symbol_list_multiple_stocks.csv" is required to run "stock_analyzer.py".

stock_portefolio_builder's People

Contributors

joerndm avatar

Stargazers

 avatar  avatar  avatar

Watchers

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