Skip to content

aljazmedic/stock-prediction

Repository files navigation

Stock prediction in python

Setup

In order to run the stock prediction, python 3.6.8 has to be installed

All the dependencies are found in requirements.txt file, install with

python -m pip install --upgrade pip
pip install -r requirements.txt

You need to set up api keys for Alpaca and Alphavantage. Sample .env.preview file can be found in root directory. Fill in your values and rename it:

# MS-DOS
move .env.preview .env
# bash
mv .env.preview .env

You can run the problem using stock and giving it the paramteres

Usage

stock -h shows all possible flags and commands

Main two functions are:

Display of graphs for given stock
  • Show graf of the stock AMZN
    stock display --stocks AMZN

  • Show graph of the stock MSFT
    with indicator SMA (10-day window)
    stock display --stocks MSFT --indicators SMA.10

  • Show graf of the stock AAPL
    with indicator VWAP (19-day window)
    and verbose output
    stock -v display --stocks AAPL --indicators VWAP.19

Stock prediction
  • Create a model based on the stock AMZN
    stock predict AMZN

  • Create a model based on the stock AAPL,
    display it
    stock predict AAPL --display

  • Create and train a model based on the stock MSFT,
    display it
    stock predict MSFT --display --train

About

Stock prediction in python with tensorflow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages