How to download data from MT server in real-time in C++ program?

 

Hello everyone,

I have a small problem with MetaTrader. I want to write an app in C++ that will download data from MetaTrader server in realtime and then save it in my program as a variable. Any ideas how to do it ? I have already written a version that obtains the data from .csv file with historical data.

 

Hello,

Help of MetaTrader 4 tells: "The terminal allows to export the current quotes to other programs in the real-time mode through " DDE " (Dynamic Data Exchange) protocol."

Reason: