{"id":25132026,"url":"https://github.com/taleblou/lstm-price-prediction","last_synced_at":"2026-02-19T05:31:48.879Z","repository":{"id":268671100,"uuid":"904608235","full_name":"taleblou/LSTM-Price-Prediction","owner":"taleblou","description":"This repository contains an implementation of the LSTM (Long Short-Term Memory) model for predicting financial asset prices, including Open, High, Low, and Close prices. It includes code for price prediction of assets like Bitcoin, Gold, EUR/USD, and the S\u0026P 500 index.","archived":false,"fork":false,"pushed_at":"2024-12-22T12:14:54.000Z","size":5953,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T21:34:00.872Z","etag":null,"topics":["bitcoin","financial-price-prediction","long-short-term-memory","lstm"],"latest_commit_sha":null,"homepage":"https://taleblou.ir/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taleblou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-17T08:12:53.000Z","updated_at":"2025-09-24T11:18:12.000Z","dependencies_parsed_at":"2024-12-18T08:36:22.922Z","dependency_job_id":null,"html_url":"https://github.com/taleblou/LSTM-Price-Prediction","commit_stats":null,"previous_names":["taleblou/lstm-price-prediction"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/taleblou/LSTM-Price-Prediction","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taleblou%2FLSTM-Price-Prediction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taleblou%2FLSTM-Price-Prediction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taleblou%2FLSTM-Price-Prediction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taleblou%2FLSTM-Price-Prediction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taleblou","download_url":"https://codeload.github.com/taleblou/LSTM-Price-Prediction/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taleblou%2FLSTM-Price-Prediction/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29604552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T05:11:50.834Z","status":"ssl_error","status_checked_at":"2026-02-19T05:11:38.921Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","financial-price-prediction","long-short-term-memory","lstm"],"created_at":"2025-02-08T14:16:18.559Z","updated_at":"2026-02-19T05:31:48.855Z","avatar_url":"https://github.com/taleblou.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **LSTM Price Prediction**\r\n\r\n## **Introduction**\r\n\r\nThis is my initial implementation of the LSTM (Long Short-Term Memory) model for price prediction. I am releasing this code for public use to help others utilize and build upon it. Additionally, I have used other models for similar projects, and their source code is available on my GitHub repository.\r\n\r\nThe model predicts the *Open*, *High*, *Low*, and *Close* prices for various financial assets, including indices, cryptocurrencies, commodities, and currency pairs. The following sections present the performance metrics of the model.\r\n\r\n---\r\n\r\n## **Results**\r\n\r\n### **BTC-USD (Bitcoin)**\r\n\r\n| Metric | Open | High | Low | Close |\r\n| :---- | :---- | :---- | :---- | :---- |\r\n| Mean Squared Error | 0.0008489510 | 0.0009795529 | 0.0010661283 | 0.0011113042 |\r\n| Mean Absolute Error | 0.0239363016 | 0.0253854565 | 0.0252731072 | 0.0263076988 |\r\n| R-squared | 0.9618445615 | 0.9568933098 | 0.9511450073 | 0.9510090004 |\r\n| Median Absolute Error | 0.0209806155 | 0.0213325995 | 0.0199003023 | 0.0207255720 |\r\n| Explained Variance Score | 0.9694517512 | 0.9652160792 | 0.9537688306 | 0.9563388589 |\r\n\r\n### **![][image2]**\r\n\r\n### **GC=F (Gold Futures)**\r\n\r\n| Metric | Open | High | Low | Close |\r\n| :---- | :---- | :---- | :---- | :---- |\r\n| Mean Squared Error | 0.0102292391 | 0.0127224254 | 0.0086396166 | 0.0091730457 |\r\n| Mean Absolute Error | 0.0858521072 | 0.0955619372 | 0.0768300133 | 0.0785435058 |\r\n| R-squared | 0.5042878632 | 0.3761326958 | 0.5818894131 | 0.5498634680 |\r\n| Median Absolute Error | 0.0786604464 | 0.0893523749 | 0.0630110043 | 0.0646407916 |\r\n| Explained Variance Score | 0.8563785943 | 0.8134662843 | 0.8579252476 | 0.8404204121 |\r\n\r\n### **![][image1]**\r\n\r\n### **EURUSD (Euro/US Dollar)**\r\n\r\n| Metric | Open | High | Low | Close |\r\n| ----- | ----- | ----- | ----- | ----- |\r\n| Mean Squared Error | 0.0004678367 | 0.0004778843 | 0.0007748126 | 0.0005051806 |\r\n| Mean Absolute Error | 0.0179689022 | 0.0175163507 | 0.0231784207 | 0.0182077065 |\r\n| R-squared | 0.8915972721 | 0.8914169532 | 0.8243772347 | 0.8831130975 |\r\n| Median Absolute Error | 0.0148790617 | 0.0143152889 | 0.0205483317 | 0.0162848522 |\r\n| Explained Variance Score | 0.9207051173 | 0.9007113662 | 0.8749229833 | 0.9102028001 |\r\n\r\n\r\n### **![][image3]**\r\n\r\n### **GSPC (S\\\u0026P 500 Index)**\r\n\r\n| Metric | Open | High | Low | Close |\r\n| :---- | :---- | :---- | :---- | :---- |\r\n| Mean Squared Error | 0.0085264583 | 0.0081207582 | 0.0079891423 | 0.0076892149 |\r\n| Mean Absolute Error | 0.0805443270 | 0.0776077142 | 0.0769452674 | 0.0745821802 |\r\n| R-squared | 0.3710538626 | 0.4289697536 | 0.4101209639 | 0.4603227313 |\r\n| Median Absolute Error | 0.0754465075 | 0.0712171335 | 0.0714640949 | 0.0656625427 |\r\n| Explained Variance Score | 0.8424518479 | 0.8469419318 | 0.8395034957 | 0.8419850381 |\r\n\r\n\r\n### **![][image4]**\r\n\r\n---\r\n\r\n## **Websites**\r\n\r\nThese results and similar projects have been a part of my experience working on predictive models. I have developed free tools that provide valuable insights into financial markets. You can access these tools at the following websites:\r\n\r\n* [**Predict Price**](https://predict-price.com/)**:** Free AI-powered short-term (5/10/30 days) \u0026 long-term (6 months/1/2 years) forecasts for cryptocurrencies, stocks, ETFs, currencies, indices, and mutual funds.  \r\n* [**Magical Prediction**](https://magicalprediction.com/)**:** Get free trading signals generated by advanced AI models. Enhance your trading strategy with accurate, real-time market predictions powered by AI.  \r\n* [**Magical Analysis**](https://magicalanalysis.com/)**:** Discover free trading signals powered by expert technical analysis. Boost your forex, stock, and crypto trading strategy with real-time market insights.\r\n\r\n---\r\n\r\n## **Conclusion**\r\n\r\nThis LSTM implementation represents an initial effort to predict price movements across multiple asset classes. The model is open for public use, and I encourage everyone to build upon it. For further improvements and related projects, check out my GitHub repository.\r\n\r\n\r\n[image1]: \u003chttps://raw.githubusercontent.com/taleblou/LSTM-Price-Prediction/refs/heads/main/Plot/LSTM_BTC-USD.png\u003e\r\n[image2]: \u003chttps://raw.githubusercontent.com/taleblou/LSTM-Price-Prediction/refs/heads/main/Plot/LSTM_GC%3DF.png\u003e\r\n[image3]: \u003chttps://raw.githubusercontent.com/taleblou/LSTM-Price-Prediction/refs/heads/main/Plot/LSTM_EURUSD%3DX.png\u003e\r\n[image4]: \u003chttps://raw.githubusercontent.com/taleblou/LSTM-Price-Prediction/refs/heads/main/Plot/LSTM_%5EGSPC.png\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaleblou%2Flstm-price-prediction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaleblou%2Flstm-price-prediction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaleblou%2Flstm-price-prediction/lists"}