Software

Server for external communication to MetaTrader. Now, it is available for version 4. Server for MetaTrader 5 is being developed.

Interface can run on user port. Default port is set to 7894.

Now, no client library has been developed and it runs as a server service. The table of the requests follows.

 Table of MetaTrader requests

It is possible to download the server API at this link: MTAPI.7z or MTAPI.7z

It is necessary to install script MT-API to folder "Scripts" and both strategies "MT-API-HL" and "MT-API-OCO" to filter Experts to work everything properly. DLL file MTapi.dll should be installed to the same folder as MT-API.ex4. It means "Scripts".

After the script is launched all the available instruments history is updated according to the number of the set periods.

Both DLL import and live trading must be allowed.

Log file is located here: %USERPROFILE%\AppData\Local\Imcep\MT_API\

After the server is started it can be shutdown just by a client connected to the server. This little disadvantage is being repaired. The command necessary to be send by the client to shutdown the server is: 0;0;0;

For testing or shutdown the server can used any TCP client, i.e. Hercules http://new.hwg.cz/files/download/sw/version/hercules_3-2-8.exe

 

   

 

 MT server API

 

Disclaimer

Neither the owner nor the website operator nor the authors of the content can be responsible for any possible losses (especilly the economical or financial ones) caused by application of the information published on these web sites. There is absolutely no warranty of the accuracy, completeness of information, text, graphics, links etc of the content of these web sites.

Trading of stocks, CFD's and forex is highly risky and can lead to high losses.