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.rdcenter.org/. 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:
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.
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).
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).
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.
Execute the Solution Explorer > Build Solution command.
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.
- 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. |
Related Articles
TickTrader Algo API
Users can create their own trade bots and indicators using TickTrader.Algo.Api. To create a custom trade bot or indicator, please follow the next steps: Install Visual Studio Install TT Algo Visual Studio Extension Follow the instructions how to ...
Creating a TickTrader Algo bot
To create a TickTrader Algo bot in Visual Studio, please follow these steps: Open the installed Visual Studio 2022 application. Create a new project by selecting the following command in the Visual Studio menu: File > New > Poject. In the window you ...
Launching Algo indicators in TickTrader Win Terminal
If the Ticktrader Win terminal is installed on the same machine on which you compiled the Algo package, then you can see the indicators (that are in the compiled package) in the Indicators List of this terminal. To add an Algo package to the specific ...
Examples of TickTrader Algo bots
Examples that will help you write your own bots can be found at: https://github.com/SoftFx/AlgoBots. This repository contains public indicators and bots for the Bot API: ImportAccountStateBot. This bot helps to integrate bots written on another ...
Running Algo bots on Algo server
To launch a bot, you need to add an account to the Algo server and upload a package with a bot, which should be launched. To add a package, select Upload Package command from the Explorer > Algo Server context menu. Then, select the Add Bot Instance ...