https://github.com/edouardkombo/linear-regression-forecast
Simple linear regression prediction in Python for timeseries data
https://github.com/edouardkombo/linear-regression-forecast
forex-market forex-prediction linear-regression python stock-price-prediction
Last synced: 2 months ago
JSON representation
Simple linear regression prediction in Python for timeseries data
- Host: GitHub
- URL: https://github.com/edouardkombo/linear-regression-forecast
- Owner: edouardkombo
- Created: 2021-01-31T12:48:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-26T09:15:05.000Z (over 4 years ago)
- Last Synced: 2025-03-27T14:21:49.994Z (7 months ago)
- Topics: forex-market, forex-prediction, linear-regression, python, stock-price-prediction
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Linear Regression prediction for trading markets
This was my first prediction model in Python for my Phoenix Cartel expert advisors, before I:
- moved to Metatrader historical data
- started neural networks for self learning robotsOverall, you will reach an accuracy of 85-90% on next day (high, low, close) price, depending on your risk strategy.
!!! TRADE AT YOUR OWN RISKS !!!
I no longer use this code as I achieved better accuracy.# How to use it
from LinearRegressionForecast import LinearRegressionForecast
forecast = LinearRegressionForecast("EURUSD", "2009-01-01", "2021-01-30")
High = forecast.run_prediction("High")
Low = forecast.run_prediction("Low")
Close = forecast.run_prediction("Close")print(High[0], Low[0], Close[0])