AI code converter · MQL4 · MQL5

AI converter for trading robots: MQL4 to MQL5, cTrader, SharpTrader and Dukascopy JForex

Upload the source file of your own Expert Advisor (.mq4 or .mq5). The AI rewrites it for the platform you choose — keeping the trading logic, inputs and money management — and explains every place where the new platform works differently.

Your EA.mq4 · .mq5AI conversionlogic · inputs · ordersCompile checkerrors fixed by AIReady codeMQL5 · cTraderSharpTrader · JForex
Upload the source, choose the platform and download the converted code with a report of every difference. Compiler errors are fixed by the AI too.

Conversions

Six conversions between four platforms

MQL4 → MQL5

Ticket-based orders become positions and trade requests, indicator values become handles read with CopyBuffer — with the original bar shifts kept.

→ cTrader

From MQL4 or MQL5 to a cBot in C# for cTrader Automate: parameters with defaults, lots converted to volume units, stops in pips, new-bar logic in OnBar.

→ SharpTrader

From MQL4 or MQL5 to a C# bot for SharpTrader: inputs as bot properties, the robot’s positions marked by comment, indicators from the built-in library.

→ Dukascopy JForex

From MQL4 or MQL5 to a Java strategy for the JForex platform: configurable inputs, lots converted to JForex amounts, orders with unique labels.

What you get

More than a line-by-line translation

The same trading logic

Entry and exit conditions, stop-loss, take-profit, trailing, money management, trading hours and input parameters are carried over one by one.

Differences explained

Every package comes with a report: how each platform feature was mapped and where execution, time zone or lot size behave differently.

Compiler errors fixed

Paste the compiler messages and the AI corrects only what is needed to compile. Three fixes per conversion are free.

How it works

1

Open the converter and upload the .mq4 or .mq5 source file of your robot.

2

Choose the target platform and the quality: standard or deep.

3

Download a ZIP with the converted code and the report — usually within a few minutes.

4

Compile it. If the compiler reports errors, paste them on the conversion page and download the fixed revision.

Standard or deep conversion

The standard conversion uses a proven AI model and suits most robots. The deep conversion uses our newest, most capable AI model — for large or complex robots, custom indicators and tricky order logic.

Price

A conversion costs 10 tokens, a deep conversion 25 tokens. Three fixes of compiler errors are included; each further fix costs 1 token, a deep fix 3 tokens. If a conversion fails, the tokens are returned automatically.

Before you trade live

AI-converted code must be compiled and tested: compare it with the original robot in the strategy tester and run it on a demo account first. Platforms differ in order execution, time zones and lot sizes — the report lists these differences for your robot.

Can I convert a compiled .ex4 or .ex5 file?

No. Only source code (.mq4 or .mq5) can be converted. Compiled files are not decompiled.

Is my source code kept private?

The file is sent only to the AI model that performs the conversion and is stored in your account so that you can download and fix the result. It is visible only to you and is never published or shared.

What if the converted code does not compile?

Paste the compiler messages on the conversion page. The AI corrects only what is needed to compile; three fixes per conversion are free, further fixes cost 1 token.

Will the converted robot trade exactly like the original?

The trading logic is kept, but platforms differ in execution, time zones, lot sizes and price history. Test both versions on the same data and on a demo account before trading live.

Can it convert indicators and include files?

One source file per conversion, up to about 3,000 lines. Indicators are converted where the target platform supports custom indicators. Your own include files (.mqh) are not read: paste their code into the main file first.

Move your robot to a new platform

Upload the source, choose the platform and get compilable code with a report of every difference.