MQL4 to TickTrader Algo Converter

MQL4 to TickTrader Algo Converter

If you have Expert Advisors or Indicators written in MQL4 (for working in MetaTrader 4), then you can use a free converter to convert them into TickTrader Algo bots and indicators. The converter is located at: https://mql4-ttalgo-converter.digigex.net/. It really makes things easy if you want to adapt your existing code to run on the TickTrader Algo platform.

To convert MQL4 expert advisors and indicators to TickTrader Algo bots and indicators, please follow these steps:
  1. Upload your .mq4 code file by using 'Select .mq4 file' control. The maximum file size you can upload is 1.0 MB.
    Select the 'Auto-Detect Program Type' checkbox to automatically detect whether you upload an indicator or EA.

  2. Click the Convert and download button. As a result, you receive an archive that contains the source code of the converted advisor/indicator and has the same name as the original downloaded file (e.g. MACDSammple.zip). The solution with converted code (.sln file) can be opened and built in .NET IDE (e.g. Visual Studio).

  3. Extract the archive. The structure of the resulting source code is as follows:


    • Solution, which has the same name as the source file (MACDSample.sln).
    • Project with base classes that you do not need to change - TickTrader.Algo.Mql4ToCSharp.
    • Project with the name of the source file (MACDSample), which contains the converted code (MACDSample.cs).

  4. Open the Solution (MACDSample.sln) by double-clicking. It should open in Visual Studio 2022 or offer you a program selection where you can select Visual Studio.

  5. Execute the Solution Explorer > Build Solution command.

  6. If the conversion was successful, you will see a message in the Output window stating that the build was successful. It will also indicate the path where the Algo package (output file) you built is located.



  7.  If, as a result of executing the 'Build Solution' command, errors are indicated in the Output window and 'Error List' appears, then, you need to correct these errors yourself and rebuild the advisor/indicator.

    Errors listed in Output window


    Error List with detailed description
The converted Expert Advisors will only work correctly on TT ECN GROSS accounts in the TickTrader trading platform.
It is strongly not recommended to run EAs written in MQL4 and converted with 'MQL4 to TickTrader Algo Converter' on the Ticktrader ECN NET and CASH accounts.

See also

  1. Installing Visual Studio
  2. Running Algo bots on Algo server
  3. Launching Algo indicators in TT Win Terminal