Forex Price Prediction
Predict and analyze historical XAU/USD Forex prices using deep learning; make decisions on short/long positions with target profit and stop loss values.
Install / Use
npx skills add Ilia-Abolhasani/forex-price-predictionInstalls into whichever agent you are using.
README
Forex Price Prediction using LSTM

Overview
Welcome to the Forex Price Prediction project! This repository contains a Jupyter Notebook that utilizes deep learning techniques, specifically Long Short-Term Memory (LSTM) networks, to predict the price of XAU/USD (Gold/US Dollar) for a short period of time. The goal of the prediction is to assist in deciding whether to open a short or long position with target profit (TP) and stop loss (SL) values of 1$ or 2$. Please note that the dataset used for training and testing is simulated and consists of 300,000 minutes' worth of candle data.
Project Structure
The project repository is organized as follows:
notebooks/: Contains the Jupyter Notebookforex_price_prediction.ipynb, where the LSTM model is implemented and the prediction process is explained in detail.data/: This directory holds the simulated forex data in CSV format. It includes data for training, testing, and validation.images/: Contains any images used in the README or the Jupyter Notebook.README.md: The file you are currently reading, providing an overview of the project.
Requirements
To run the Jupyter Notebook and execute the LSTM model, you need the following dependencies:
- Python 3.x
- Jupyter Notebook
- Pandas
- NumPy
- Matplotlib
- TensorFlow
- Keras
You can install these packages using pip:
pip install jupyter pandas numpy matplotlib tensorflow keras
## Usage
1. Clone the repository to your local machine:
```bash
git clone https://github.com/Ilia-Abolhasani/forex-price-prediction.git
cd forex-price-prediction
-
Install the required dependencies as mentioned above.
-
Open the Jupyter Notebook file,
forex_price_prediction.ipynb, using Jupyter Notebook or Jupyter Lab. -
Follow the instructions provided in the notebook to preprocess the data, train the LSTM model, and make predictions.
-
Feel free to modify the code and experiment with different hyperparameters to improve the model's performance.
-
If you encounter any issues or have suggestions for improvements, please create an issue or submit a pull request.
License
This project is licensed under the MIT License.
You are free to use, modify, and distribute the code in this repository for personal or commercial purposes. However, we provide no warranty or support for any potential consequences of using this code.
Please see the LICENSE file for more details.
Contributing
We welcome contributions to enhance the project! If you find any issues or have ideas for improvements, please create an issue or submit a pull request.
Acknowledgments
We would like to thank the open-source community for their valuable contributions and support.
Related Skills
mcp
Use the `mcp_perplexity-ask_perplexity_search` tools to answer questions. You should use this instead of the `web_search` tool because it is a lot more accurate.
practical-power-systems-synthesis
This skill enables synthesis in the domain of power-systems (engineering). It represents research-level-level expertise and is designed for production use in research, industry, and educational contexts. Use this skill when you need to perform synthesis operations related to power-systems.
semi-supervised-optogenetics-testing
This skill enables testing in the domain of optogenetics (neuroscience). It represents intermediate-level expertise and is designed for production use in research, industry, and educational contexts. Use this skill when you need to perform testing operations related to optogenetics.
data-mining-interpretation-fundamental
This skill enables interpretation in the domain of data-mining (data-science). It represents fundamental-level expertise and is designed for production use in research, industry, and educational contexts. Use this skill when you need to perform interpretation operations related to data-mining.
