MT4 + DLL

 

Hi,

What programming language is the best choice for creating a DLL file for MT4?

According to this: https://stackoverflow.com/questions/3921541/programming-language-for-creating-dll-c-or-c-sharp

C would be the best choice to avoid compatibility issues that could happen with C++. Is this true for MT4?

Programming Language for Creating DLL: C++ or C#
Programming Language for Creating DLL: C++ or C#
  • 2010.10.13
  • Swanand Swanand 3,731 10 10 gold badges 41 41 silver badges 68 68 bronze badges
  • stackoverflow.com
This is NOT a Programming doubt! I am going to write a DLL for some application. I have two options to choose from: C++ or C# In which language I should write DLL? Does that affects functionality? I am a completely...
 
oktaryn: What programming language is the best choice for creating a DLL file for MT4?

None. Can't sell in the market, can't use a VPS. Overly complicating the code (DLL can't trade, only the MT4 can.) Just write MT4 and be done.

 
oktaryn:

Hi,

What programming language is the best choice for creating a DLL file for MT4?

According to this: https://stackoverflow.com/questions/3921541/programming-language-for-creating-dll-c-or-c-sharp

C would be the best choice to avoid compatibility issues that could happen with C++. Is this true for MT4?

https://www.mql5.com/en/forum/292388

the DLL made with c # does not work at mt4.
the DLL made with c # does not work at mt4.
  • 2018.11.27
  • www.mql5.com
The DLL made with c # does not work at mt4. the following error occurs. I would appreciate if you help. 2018.11.27 17:15:12...
 
William Roeder:

None. Can't sell in the market, can't use a VPS. Overly complicating the code (DLL can't trade, only the MT4 can.) Just write MT4 and be done.

The goal is to implement machine learning strategy. I think it would be hard to use mql4 for everything in such scenario, thus I was thinking of using dll for ML output calculation, and trading / input data collection would be handled by MT4.

Other option is to use a bridge (ZeroMQ) but I think it could be a problem to run backtests (not sure).

Reason: