Mohsin Ali Mohsin Ali - 1 month ago 11
C++ Question

Is there a way to use Metatrader4 C++ version dll with C# to connect to live server

My application is based on asp.net mvc , c# and my client want to connect this application with MT4 server.There is server api https://support.metaquotes.net/ru/docs/mt4/api/server_api
which is in c++.This api help to login at MT4.My application is in Asp.net mvc c# and i want to call these c++ methods in c#.
Is it possible to work with c#.
tAHNKS

Answer

Server API is tend to be used to write server plugins, which will be loaded into server memory at runtime. You can use .NET code there, however it's not the best idea.

There is Manager API, I think, it's functionality is sufficient for web application. However officially it has only C++ API. But you can use my wrapper to access it from ASP.NET: https://github.com/Uriil/MetaTrader4.Manager.Wrapper

But both options requires manager credentials

Comments