Expert Advisor C/C++/MQL Compiler ~

WEB Trader Get it on Google Play
  • Post by Fintechee
  • Feb 11, 2021
Fintechee developed a Nodejs package to help traders compile C/C++/MQL-based expert advisors or custom indicators

Expert Advisor C/C++/MQL Compiler

Fintechee has developed a Node.js package to assist traders in compiling Expert Advisors or Custom Indicators based on C/C++/MQL. The use of the Expert Advisor Studio Download is not necessary.

An Expert Advisor aids traders in monitoring market movements. Developing an expert advisor can be time-consuming, especially when porting to a specific programming language that one is not familiar with.

The primitive SDK of Fintechee is JavaScript-based. JavaScript, being a single-thread, asynchronous programming language, makes it challenging to migrate C/C++/MQL-based programs to JavaScript.

Fintechee has created the Expert Advisor C/C++/MQL Compiler to help traders compile C/C++/MQL-based expert advisors or custom indicators, extending programming compatibility.


Prerequisites

Emscripten is required for executing the compilation of C/C++/MQL files. Ensure it is installed beforehand.

Please visit the official website to download Emscripten: Emscripten.

If compilation fails, the most likely issue is an incorrectly set PATH environment variable. Refer to this issue post for a discussion on the solution to resolve the problem.


Installation

Visit our GitHub repository: Expert Advisor C/C++/MQL Compiler.

  1. Download the git repository and extract the downloaded zip file.
  2. Navigate to the directory.
  3. Run “npm i”.

Run the Server Package

In the installation directory, run the command: “node app.js”. Upon successful execution, a program will be monitoring port 3000, awaiting further operation commands.


Compiling C/C++/MQL-based Source Codes

Begin by opening our WEB Trader. Click on the “Console” item in the menu bar (on the left side of the page) and choose the “C/C++” tab on the prompted panel.

Follow these steps:

  1. Drag and drop your C/C++/MQL source codes into the coding text area.
  2. Set the URL (where your C++ compiler is installed) and the name of your EA (or your custom indicator) in the two text boxes.
  3. Click “Generate Indicator” to generate meta-information for your indicator or click “Generate EA” for your EA. Alternatively, generate the source codes with an alternative tool.
  4. Replace the original data declarations with the generated source codes. If unsure how to replace the codes, refer to our other tool’s guide.
  5. Compile the new source codes by clicking “Compile Indicator” or “Compile EA” accordingly.
  6. Check the information output by the compiler.
  7. Set the “definition” parameter of “mql_indicator_loader_plugin” or “mql_ea_loader_plugin” to the generated JSON string, and then load the indicator or the EA.

Upon successful completion of these steps, you will observe the C/C++/MQL-based program running on our platform.

For any inquiries, please contact us via email or post an issue on Github. We will respond as soon as possible.