An open API service indexing awesome lists of open source software.

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

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 robots

Overall, 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])