Giter Club home page Giter Club logo

nityansuman / warren Goto Github PK

View Code? Open in Web Editor NEW
276.0 8.0 68.0 38.14 MB

Web app to predict closing stock prices in real time using Facebook's Prophet time series algorithm with a multi-variate, single-step time series forecasting strategy.

License: GNU General Public License v3.0

Python 1.78% CSS 24.09% HTML 1.03% Jupyter Notebook 73.10%
stock-price-prediction neural-networks fbprophet forecasting-model yahoo-finance python flask final-year-project series-forecasting stock-market-prediction

warren's Introduction

nityan

warren's People

Contributors

codacy-badger avatar dependabot[bot] avatar imgbotapp avatar nityansuman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

warren's Issues

Requitements

When I try to install the requirements through pip install -r REQUIREMENTS.txt
I get an error
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1

Any idea what can have gone wrong?

New complementary tool

My name is Luis, I'm a big-data machine-learning developer, I'm a fan of your work, and I usually check your updates.

I was afraid that my savings would be eaten by inflation. I have created a powerful tool that based on past technical patterns (volatility, moving averages, statistics, trends, candlesticks, support and resistance, stock index indicators).
All the ones you know (RSI, MACD, STOCH, Bolinger Bands, SMA, DEMARK, Japanese candlesticks, ichimoku, fibonacci, williansR, balance of power, murrey math, etc) and more than 200 others.

The tool creates prediction models of correct trading points (buy signal and sell signal, every stock is good traded in time and direction).
For this I have used big data tools like pandas python, stock market libraries like: tablib, TAcharts ,pandas_ta... For data collection and calculation.
And powerful machine-learning libraries such as: Sklearn.RandomForest , Sklearn.GradientBoosting, XGBoost, Google TensorFlow and Google TensorFlow LSTM.

With the models trained with the selection of the best technical indicators, the tool is able to predict trading points (where to buy, where to sell) and send real-time alerts to Telegram or Mail. The points are calculated based on the learning of the correct trading points of the last 2 years (including the change to bear market after the rate hike).

I think it could be useful to you, to improve, I would like to share it with you, and if you are interested in improving and collaborating I am also willing, and if not file it in the box.

error installing requirements on Mac

error installing requirements on Mac

Last login: Sat Jul 24 21:51:34 on ttys002
(base) erfan@Erfans-Mac-mini ~ % cd Projects/warren
(base) erfan@Erfans-Mac-mini warren % mc

(base) erfan@Erfans-Mac-mini warren % pip3 install -r REQUIREMENTS.txt
Collecting fbprophet==0.6
  Using cached fbprophet-0.6.tar.gz (54 kB)
Requirement already satisfied: Flask==1.1.2 in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from -r REQUIREMENTS.txt (line 2)) (1.1.2)
Collecting matplotlib==3.3.1
  Downloading matplotlib-3.3.1-cp38-cp38-macosx_10_9_x86_64.whl (8.5 MB)
     |████████████████████████████████| 8.5 MB 2.4 MB/s
Collecting numpy==1.19.1
  Downloading numpy-1.19.1-cp38-cp38-macosx_10_9_x86_64.whl (15.3 MB)
     |████████████████████████████████| 15.3 MB 63.8 MB/s
Collecting pandas==1.1.0
  Downloading pandas-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl (10.6 MB)
     |████████████████████████████████| 10.6 MB 3.2 MB/s
Collecting yfinance==0.1.54
  Using cached yfinance-0.1.54.tar.gz (19 kB)
Requirement already satisfied: Pillow==8.2.0 in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from -r REQUIREMENTS.txt (line 7)) (8.2.0)
Collecting plotly==4.9.0
  Using cached plotly-4.9.0-py2.py3-none-any.whl (12.9 MB)
Collecting protobuf==3.13.0
  Downloading protobuf-3.13.0-cp38-cp38-macosx_10_9_x86_64.whl (1.3 MB)
     |████████████████████████████████| 1.3 MB 17.6 MB/s
Collecting requests==2.24.0
  Using cached requests-2.24.0-py2.py3-none-any.whl (61 kB)
Collecting rsa==4.7
  Using cached rsa-4.7-py3-none-any.whl (34 kB)
Collecting scipy==1.4.1
  Downloading scipy-1.4.1-cp38-cp38-macosx_10_9_x86_64.whl (28.8 MB)
     |████████████████████████████████| 28.8 MB 4.8 MB/s
Collecting setuptools-git==1.2
  Downloading setuptools_git-1.2-py2.py3-none-any.whl (10 kB)
Collecting SQLAlchemy==1.3.18
  Downloading SQLAlchemy-1.3.18-cp38-cp38-macosx_10_14_x86_64.whl (1.2 MB)
     |████████████████████████████████| 1.2 MB 6.7 MB/s
Collecting tensorboard==2.3.0
  Downloading tensorboard-2.3.0-py3-none-any.whl (6.8 MB)
     |████████████████████████████████| 6.8 MB 6.8 MB/s
Collecting tensorboard-plugin-wit==1.7.0
  Downloading tensorboard_plugin_wit-1.7.0-py3-none-any.whl (779 kB)
     |████████████████████████████████| 779 kB 97.7 MB/s
Collecting tensorflow>=2.3.1
  Downloading tensorflow-2.5.0-cp38-cp38-macosx_10_11_x86_64.whl (195.7 MB)
     |████████████████████████████████| 195.7 MB 241 kB/s
Collecting tensorflow-estimator==2.3.0
  Downloading tensorflow_estimator-2.3.0-py2.py3-none-any.whl (459 kB)
     |████████████████████████████████| 459 kB 11.1 MB/s
Collecting urllib3==1.26.5
  Downloading urllib3-1.26.5-py2.py3-none-any.whl (138 kB)
     |████████████████████████████████| 138 kB 13.9 MB/s
Requirement already satisfied: Cython>=0.22 in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from fbprophet==0.6->-r REQUIREMENTS.txt (line 1)) (0.29.23)
Collecting cmdstanpy==0.4
  Downloading cmdstanpy-0.4.0-py3-none-any.whl (22 kB)
Collecting pystan>=2.14
  Downloading pystan-3.2.0-py3-none-any.whl (13 kB)
Collecting LunarCalendar>=0.0.9
  Downloading LunarCalendar-0.0.9-py2.py3-none-any.whl (18 kB)
Collecting convertdate>=2.1.2
  Downloading convertdate-2.3.2-py3-none-any.whl (47 kB)
     |████████████████████████████████| 47 kB 13.2 MB/s
Collecting holidays>=0.9.5
  Downloading holidays-0.11.2-py3-none-any.whl (142 kB)
     |████████████████████████████████| 142 kB 60.5 MB/s
Requirement already satisfied: python-dateutil>=2.8.0 in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from fbprophet==0.6->-r REQUIREMENTS.txt (line 1)) (2.8.1)
Requirement already satisfied: Jinja2>=2.10.1 in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from Flask==1.1.2->-r REQUIREMENTS.txt (line 2)) (2.11.3)
Requirement already satisfied: itsdangerous>=0.24 in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from Flask==1.1.2->-r REQUIREMENTS.txt (line 2)) (1.1.0)
Requirement already satisfied: click>=5.1 in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from Flask==1.1.2->-r REQUIREMENTS.txt (line 2)) (7.1.2)
Requirement already satisfied: Werkzeug>=0.15 in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from Flask==1.1.2->-r REQUIREMENTS.txt (line 2)) (1.0.1)
Requirement already satisfied: kiwisolver>=1.0.1 in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from matplotlib==3.3.1->-r REQUIREMENTS.txt (line 3)) (1.3.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from matplotlib==3.3.1->-r REQUIREMENTS.txt (line 3)) (2.4.7)
Requirement already satisfied: certifi>=2020.06.20 in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from matplotlib==3.3.1->-r REQUIREMENTS.txt (line 3)) (2020.12.5)
Requirement already satisfied: cycler>=0.10 in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from matplotlib==3.3.1->-r REQUIREMENTS.txt (line 3)) (0.10.0)
Requirement already satisfied: pytz>=2017.2 in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from pandas==1.1.0->-r REQUIREMENTS.txt (line 5)) (2021.1)
Collecting retrying>=1.3.3
  Downloading retrying-1.3.3.tar.gz (10 kB)
Requirement already satisfied: six in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from plotly==4.9.0->-r REQUIREMENTS.txt (line 8)) (1.15.0)
Requirement already satisfied: setuptools in /Users/erfan/opt/anaconda3/lib/python3.8/site-packages (from protobuf==3.13.0->-r REQUIREMENTS.txt (line 9)) (52.0.0.post20210125)
INFO: pip is looking at multiple versions of protobuf to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of plotly to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pillow to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pandas to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of numpy to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of matplotlib to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of flask to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of fbprophet to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r REQUIREMENTS.txt (line 10) and urllib3==1.26.5 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested urllib3==1.26.5
    requests 2.24.0 depends on urllib3!=1.25.0, !=1.25.1, <1.26 and >=1.21.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
(base) erfan@Erfans-Mac-mini warren %

Good tutorial

Hi. Nice tutorial. I'm just wondering if we should keep 'Close' in the model. Isn't your model predicting today's close from today's close?

Getting errors during installing requirements

Collecting tensorflow>=2.3.1 (from -r REQUIREMENTS.txt (line 17))
  Could not find a version that satisfies the requirement tensorflow>=2.3.1 (from -r REQUIREMENTS.txt (line 17)) (from versions: 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.4.1, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.10.1, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.2, 1.12.3, 1.13.0rc0, 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)
No matching distribution found for tensorflow>=2.3.1 (from -r REQUIREMENTS.txt (line 17))
root@localhost:~/warren#

Fix to installing the dependencies

astroid==2.5
certifi==2021.5.30
charset-normalizer==2.0.4
click==8.0.1
cmdstanpy==0.9.5
colorama==0.4.4
convertdate==2.3.2
cycler==0.10.0
Cython==0.29.24
ephem==4.0.0.2
fbprophet==0.7.1
Flask==2.0.1
hijri-converter==2.1.3
holidays==0.11.2
idna==3.2
isort==5.7.0
itsdangerous==2.0.1
Jinja2==3.0.1
kiwisolver==1.3.1
korean-lunar-calendar==0.2.1
lazy-object-proxy==1.5.2
LunarCalendar==0.0.9
lxml==4.6.3
MarkupSafe==2.0.1
matplotlib==3.4.2
mccabe==0.6.1
multitasking==0.0.9
numpy==1.21.1
pandas==1.3.1
Pillow==8.3.1
pylint==2.7.1
PyMeeus==0.5.11
pyparsing==2.4.7
pystan==2.19.1.1
python-dateutil==2.8.2
pytz==2021.1
requests==2.26.0
scipy==1.7.1
setuptools-git==1.2
six==1.16.0
toml==0.10.2
tqdm==4.62.0
urllib3==1.26.6
Werkzeug==2.0.1
wincertstore==0.2
wrapt==1.12.1
yfinance==0.1.63

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.