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.
AI coding agent for MetaTrader 5
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
Define entry and exit logic, position sizing, stops, targets and trade management. Make the account assumptions and intended behaviour clear before generation.
Describe calculations, chart plots, signals, alerts and configurable inputs. Use a visual reference when it helps explain how an indicator should look.
Prompt Builder helps resolve gaps in your specification. Build Plans organise larger projects into stages that you can compile and test progressively.
Bring your complete current source to add features, change behaviour or investigate faults. Saved projects and source history help you keep track of revisions.
Share the exact MetaEditor output and latest source. Xen can explain the fault and produce a revised file for you to compile and inspect.
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
Choose an Expert Advisor or indicator task and define the inputs, rules and expected output.
Check the generated file and use requirements verification to identify missing or partial implementation.
Save the .mq5 source and compile it for MetaTrader 5. Return exact diagnostics when repairs are needed.
Use Strategy Tester and a demo environment, then ask for focused changes supported by your observations.
Learn from testing
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 guideQuestions
MetaTrader Xen generates MQL5 for MetaTrader 5. Existing MQL4 source belongs in the conversion workflow and needs testing after conversion.
Yes. Xen returns MQL5 source that you can save as a .mq5 file, review and compile in MetaEditor for use in MetaTrader 5.
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.
Bring a clear idea or your existing source and work towards a tested first version.