Skip to content
All library documents

Exporting MetaTrader 5 Data Through a DDE Server

Article MQL5 code base

Summary

The document describes a small Dynamic Data Exchange server that can pass information from MetaTrader to external applications such as Excel. Although originally designed for MetaTrader 4, it says the tool can also work with MetaTrader 5 after minor adjustments. An Expert Advisor can use a timer event to send selected values once per second, including the account's company name, server time, and a 21-period exponential moving average.

This is an integration example rather than a trading strategy: it shows how platform data can be made available for monitoring or further analysis outside the terminal. The document gives no performance results, testing details, or full implementation steps, so it does not establish reliability, latency, or suitability for live trading. It also does not explain how to validate exported values or handle connection failures.

Key ideas

  • A DDE server can transfer MetaTrader data to external applications such as Excel.
  • The described tool was designed for MetaTrader 4 and may need adjustments for MetaTrader 5.
  • A timer event can trigger periodic export of selected live values.
  • The example values include server time, account company, and a 21-period exponential moving average.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.