To auto learn, analyze and predict the Forex Market and autotrade with Metatrader 5 API and Python
Find a file
2021-10-26 22:09:00 +08:00
.vscode 🚧 Still getting invalid stops tho 2021-09-30 10:56:56 +08:00
cron 🚧 dockerizing and composing 2021-09-25 11:43:06 +08:00
requirements 🏗️ pipenv docker precommit etc 2021-09-24 21:05:12 +08:00
xm 🚧 dockerizing and composing 2021-09-25 11:43:06 +08:00
.dockerignore 🏗️ pipenv docker precommit etc 2021-09-24 21:05:12 +08:00
.gitignore ️ Test Trading Bot v1 2021-10-25 19:11:47 +08:00
.pre-commit-config.yaml 🎨 pre-commit magic 2021-09-30 10:54:42 +08:00
__init__.py 🏗️ pipenv docker precommit etc 2021-09-24 21:05:12 +08:00
bot.py 🔧 Added control for concurrent trades 2021-10-26 22:09:00 +08:00
config.sample.py 🔧 Added control for concurrent trades 2021-10-26 22:09:00 +08:00
docker-compose.debug.yml 🏗️ pipenv docker precommit etc 2021-09-24 21:05:12 +08:00
docker-compose.yml 🚧 dockerizing and composing 2021-09-25 11:43:06 +08:00
Dockerfile 🏗️ pipenv docker precommit etc 2021-09-24 21:05:12 +08:00
fxstudy.ipynb ️ Test Trading Bot v1 2021-10-25 19:11:47 +08:00
logging.conf 🚧 Still getting invalid stops tho 2021-09-30 10:56:56 +08:00
Pipfile 🏗️ pipenv docker precommit etc 2021-09-24 21:05:12 +08:00
Pipfile.lock 🏗️ pipenv docker precommit etc 2021-09-24 21:05:12 +08:00
pyproject.toml 🏗️ pipenv docker precommit etc 2021-09-24 21:05:12 +08:00
README.md 🚧 dockerizing and composing 2021-09-25 11:43:06 +08:00
requirements.txt 🏗️ pipenv docker precommit etc 2021-09-24 21:05:12 +08:00
xmglobal5setup.exe 🚧 dockerizing and composing 2021-09-25 11:43:06 +08:00

Trading ML Experiment

This is a study on how different Neural Networks would be able to find the right way of modelling and finding a pattern through limited past or backtests before attempting to place a trade.

Develop in Python 🐍 with all of the packages mentioned in the requirements.txt. Primarily using Pytorch to model a Neural Network.

Actually, Pytorch is a bit advanced for a noob like me. So I used sci-kit learn and just get a working model with the defaults first.

Usage

Other than the required pip to install, the Metatrader client must have "Autotrading" mode enabled.

Copy and paste the config.sample.py file to config.py and change the contents to fit for your account and pairs that you want to trade.

Then run,

python3 app.py

Development and Contribution

This repo utilises pre-commit and manages package management with pipenv.

To set up the dev environment, pipenv install -d and pre-commit install.

TODO

  • [] Get a working docker container of MT5 running
  • [] Have the local app.py file point to the running MT5 docker container instance
  • [] Containerize app.py while pointing to the running MT5 docker container instance
  • [] Add cron job to execute app.py container while pointing to the running MT5 docker container instance