Qoyyuum / Forex-MT5-Bot

To auto learn, analyze and predict the Forex Market and autotrade with Metatrader 5 API and Python
12 stars 5 forks source link

Get a working Docker build #1

Open Qoyyuum opened 2 years ago

Qoyyuum commented 2 years ago

The docker build should be able to run the trading bot python script in a single container, while running as a celery task and handled by the environment's cron job (or cron tab). Separately, it should be able to communicate with a docker container running the mt5 running on wine (for easier deployment to any linux VPS/cloud/kubernetes cluster/etc)

Qoyyuum commented 2 years ago

Found this: https://pypi.org/project/ejtraderMT/ may probably easier to use than rebuilding from scratch?

Qoyyuum commented 2 years ago

To actually have full and better control, best to build my own docker image but combine all 3 services into 1. At least for now, that's the plan for a pilot project.

Qoyyuum commented 2 years ago

Found a new issue. When running in docker, for each new docker image build, the mt5 still needs to manually enable algotrading in order for the python script to send orders/manage account. Let's make this simpler:

That should do it.