Skip to content

AI coding agent for MetaTrader 5

Build MetaTrader 5 Expert Advisors and indicators with Xen AI

Describe an automated strategy or custom indicator and develop complete MQL5 source for MetaTrader 5. Xen helps you clarify the rules, generate a first version and improve the project after testing.

Build with Xen

From an idea to a project you can test

Build Expert Advisors

Define entry and exit logic, position sizing, stops, targets and trade management. Make the account assumptions and intended behaviour clear before generation.

Create custom indicators

Describe calculations, chart plots, signals, alerts and configurable inputs. Use a visual reference when it helps explain how an indicator should look.

Plan the work

Prompt Builder helps resolve gaps in your specification. Build Plans organise larger projects into stages that you can compile and test progressively.

Improve existing MQL5

Bring your complete current source to add features, change behaviour or investigate faults. Saved projects and source history help you keep track of revisions.

Repair compiler diagnostics

Share the exact MetaEditor output and latest source. Xen can explain the fault and produce a revised file for you to compile and inspect.

Convert code to MetaTrader 5

Use the conversion workflow for MQL4 or source from another trading platform. Review API and trading-model differences before relying on the MQL5 result.

Your workflow

Build, check and refine in stages

01

Write the specification

Choose an Expert Advisor or indicator task and define the inputs, rules and expected output.

02

Review the MQL5 source

Check the generated file and use requirements verification to identify missing or partial implementation.

03

Compile in MetaEditor

Save the .mq5 source and compile it for MetaTrader 5. Return exact diagnostics when repairs are needed.

04

Test in MetaTrader 5

Use Strategy Tester and a demo environment, then ask for focused changes supported by your observations.

Learn from testing

Use Strategy Tester reports to guide your next check

Upload a MetaTrader 5 Strategy Tester workbook for analysis of trades and performance. Use the findings to identify questions worth investigating, then rerun the relevant tests in MetaTrader. Keep the source, settings and reports for each tested version so you can compare changes.

Read the Strategy Tester guide

Questions

Working with Xen for MetaTrader

Is this for MetaTrader 4 or MetaTrader 5?

MetaTrader Xen generates MQL5 for MetaTrader 5. Existing MQL4 source belongs in the conversion workflow and needs testing after conversion.

Do I receive editable source?

Yes. Xen returns MQL5 source that you can save as a .mq5 file, review and compile in MetaEditor for use in MetaTrader 5.

Can I begin without knowing MQL5?

You can describe your idea in plain English. You still need clear trading rules and a process for reviewing, compiling and testing the generated program.

Review and test every version. Generated code can contain errors. Compile in MetaTrader 5, check the logic and test with historical data and a demo or simulation environment before considering live use. Historical results do not guarantee future performance.

Start your next MetaTrader 5 project

Bring a clear idea or your existing source and work towards a tested first version.