Giter Site home page Giter Site logo

xau-trading's Introduction

GOLD(XAU/USD) Price Prediction Using LSTM

Daily close Prediction of gold Using LSTM & XGB.

Dataset:

The dataset is taken from yahoo finace's website in CSV format. The dataset consists of Open, High, Low and Closing Prices of gold from 2nd january 1996 to 30th July 2021 - total 6660 rows.

Price Indicator:

We added some famous technical indicators such as RSI, ROC, Bollinger Bands, etc.

Data Pre-processing:

After converting the dataset into daily close, it becomes one column data. This has been converted into multi column time series data. All values have been normalized between 0 and 1.

Model:

Two/Three sequential LSTM layers have been stacked together and one dense layer is used to build the RNN model using Keras deep learning library. Since this is a regression task, 'linear' activation has been used in final layer.

Version:

Python 3.7 and latest versions of all libraries including deep learning library Keras and Tensorflow.

Training:

75% data is used for training. Adagrad (adaptive gradient algorithm) optimizer is used for faster convergence.

Test:

Test accuracy metric is root mean square error (RMSE).

HyperParam Tuning:

Go to lstm.py

Daily activation & send signal:

In lstm_predict.py a bot is created when everynight we try to predict tomorrow daily close & the signal will be sent to a telegram channel.

xau-trading's People

Contributors

0xiden avatar

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.