How to run an MQL4 program on the server?

I have implemented an Expert Advisor in MQL4, which will be executed in MetaTrader.

Now, if I need to execute it, I always need to launch MetaTrader and attach my EA program to the currency pair chart in it.

I want to know if there is a method to execute MQL4 scripts on servers so that I don't have to keep my computer on all the time. I googled this question but couldn't find a suitable answer for it.

I found that there is a way to transfer data from MetaTrader to a web server (from MQL to PHP), but I don't know if this is helpful for solving my question ( http://mql4-php.iinuu.eu/ )

Thank you in advance.

+4


source to share


3 answers


Yes, there are several DLL-based methods for passing "just" DATA

ZeroMQ DLL for socket based approaches.

Windows raw-sockets for low-level socket programming.

Several other DLL-based tools for transferring data to / from remote or parallel processes.

No, there are no known ways to run MQL4-CODE on the server

Each MQL4 source code is first compiled into a file . Such "executable" files are loaded and executed in a similar proprietary piece of software - in .EX4

MetaTrader4 Terminal... There are still no known server processes for this functionality, and MetaQuotes, Inc. does not sell or develop any apparent effort to release such software. For legal reasons, it is unlikely that there will be any open source programs that will work in this direction, since any similar efforts have brought legal consequences initiated in the name of protecting intellectual property in any case where the unpublished nature of the data transfer and / or operation distributed between MetaTrader4 Terminal [localhost-side] and / or MetaTrader4 Server [broker-side] must have been affected or otherwise analyzed and / or redesigned.



But there is a way to solve your wish

It is common practice to use a piece of software with local hosting - MetaTrader4 Terminal- hosted on a remote machine that runs 24/7/365 in a professional DataCentre.

Using this approach, your code still runs in native mode within a software process , however the machine (Windows O / S machine) is virtualized in the VM and hosted in the DataCentre infrastructure. MQL4

MetaTrader4 Terminal

However, there are some steps and measures required to protect your privacy and intellectual property rights when thinking about the virtual machine / host mode of your EA / script.

Using this mode of operation will allow you to connect from your localhost to the DataCenter just at the time you want to visually inspect and / or manually fix and / or modify your full-time code MetaTrader4 Terminalin non-stop mode.

0


source


Noting the following requirement:

"I want to know if there is a way to execute MQL4 scripts in servers so that I don't have to keep my computer on .



You can subscribe to VPS (Virtual Private Server) services to which you can attach EA files (.ex4). Basically, it acts like a hosting server (but very small, just enough to run your MT4 terminal).

There are many VPS offerings. Just google Metatrader4 VPS

. In fact, Metaquotes also offers this service, right from your MT4. After you subscribe to this service and attach your .EX4, you can turn off your computer and EA will still run on the VPS. You can find the details here Link .

0


source


Most brokers nowadays offer aka solutions that aim to reduce delays and slippage in your trades. This means that your system will be "practically" closer to brokers 'services, reducing the time spent on orders, pricing and order fulfillment from yours to the brokers' servers. Virtual Private Server

VPS

VPS

0


source







All Articles