Skip to main content

Export MT4 / MT5 bots

From a strategy detail or portfolio page you can export a MetaTrader Expert Advisor (EA).

Individual strategy

  1. Open the strategy in the Databank.
  2. Export bot → choose MT4 or MT5.
  3. Review the block coverage report.
  4. Download the .mq4 / .mq5.
The EA exposes execution parameters as inputs (sizing, ATR SL/TP/trail, magic, session, GMT offset, etc.) so you can calibrate in the terminal without rewriting logic.

Portfolio

Broker aliases (Settings → Instruments) map canonical symbols to broker names on portfolio export.

Block coverage

  • Supported blocks: exportable with expected parity.
  • Blocking unsupported blocks: UI/API prevents generating an incomplete EA by default.
  • Some blocks may export with an approximate warning — read the reason before live trading.
After major parity/TZ changes, re-export older EAs.

Inputs you should know

Realistic expectations

  • MT4 pending lists can show more states than the app (the app lists executed fills).
  • Excel reports use raw UTC; HTML uses display_tz.
  • Parity depends on aligned history, GMT offset, and costs (spread/commission).

Pre-live checklist

  1. Same history/TZ mental model as the backtest (or calibrated offset).
  2. Coverage without surprises.
  3. Correct broker aliases (portfolio).
  4. Test in Strategy Tester with the same InpBrokerGmtOffset you will use live (or document the difference).