forex software

Create and Test Forex Strategies


eas-guide:export-expert-advisor

Export Expert Advisor

You can find the Export button on the toolbar of the Editor tab.

Export Expert Advisor

You export the current Expert that is shown in the Editor.

There are several Export options:

  • Expert Advisor for MT4 - exports an Expert Advisor for MetaTrader 4;
  • Expert Advisor for MT5 - exports an Expert Advisor for MetaTrader 5;

The exported Expert Advisor is 100% native MQL code and doesn't require third party libraries or indicators.

Loading an Expert Advisor in MetaTrader

MetaTrader 4

  1. Copy the Expert to the MetaTrader's 4 MQL folder. You can find it from File → Open Data Folder menu.
  2. Refresh the Experts in the MetaTrader list. To do it, right-click on the list end select Refresh.
  3. Attach the Expert to a chart. If you are running several Experts for one symbol, set a different Magic Number for each of them.

MetaTrader 5

  1. Find the MQL5 folder of your MT5 and copy the Expert. You can also use the File → Open Data Folder menu.
  2. Open the MetaQuotes Language Editor, load and compile your Expert.
  3. Your Expert must appear in the Experts list. If it is not visible there, right-click on the list and select Refresh.
  4. Attach the Expert to a chart. Please note that you cannot trade multiple Experts simultaneously on the same symbol in MT4.
  5. MT5 Hedging accounts can trade several experts per symbol. Set different Magic Numbers in this case.
  6. More Information

Run Expert Advisor

When you start the Expert Advisor on a MetaTrader chart, you can review its options in the Input tab.

Expert Advisor Input

Yuo can test the experts in the MetaTrader strategy tester.

Expert Advisor test in MetaTrader

You have to receive the same result in MetaTrader test as in EA Studio. In case of discrepancies, check if you are using the same data, spreads and commissions. If the discrepancy still exists, please open a topic in the support forum.