NavigationUser loginWho's new
Who's onlineThere are currently 0 users and 63 guests online.
|
Quotations exportHi folks, This quotations enables you analyze the market and to use your trading strategies then to make your trading decisions. In brief the price quotations are almost everything you need for your forex live. MetaTrader terminal enables you to export these quotations at the real-time by using the DDE technology. DDE stands for Dynamic Data Exchange. DDE protocol enables two running applications to share the same data. The program who sends the data called "DDE server", and the program who captures the data from server called "DDE client". In our case the DDE server is MetaTrader terminal itself and the client is the program you write in any programming language (The program shipped with MetaTrader wrote in Excel). How do the DDE servers work? The DDE servers (Including MetaTrader) working with a very simple protocol. Each data item that a server application can provide has a unique identifier consisting of three parts, a DDE Application Name, a DDE Topic, and a DDE Item Name. The DDE Application Name is almost always the executable filename for the server application (without the .EXE extension) in our case MT4 is the server name. The DDE Topic typically identifies the category of data in the server application and each data item that a server can provide has a unique DDE Item Name. Thus, the Application Name, Topic, and Item Name identify the exact source of the data in a server application that is to be linked. This is an example of a DDE request which MetaTrader can understand:
MT4|BID!EURUSD In the above request we are asking MT4 to send us the BID price of the EURUSD currency pair. MetaTrader DDE server understands these topics:
Between the server name and the DDE topic we put "|" symbol. In the Excel sample shipped with MetaTrader (DDE-Sample.xls file which you will find it in the path you installed MetaTrader in). You will find these requests: MT4|BID!GBPUSD MT4|BID!USDJPY MT4|BID!EURUSD And this is the result:
Enabling the DDE server: The DDE client will not be able to work if there is no server running. So you have to execute MetaTrader before starting your client or you'll get a message like figure 1.
Running of MetaTrader is not enough to make the DDE server on, that's because -by default- the DDE server of MetaTrader is disabled. To enable the DDE server go to Tools menu and choose Options (or hit CTRL+O hotkeys). That will bring the Options window (Figure 2), choose server tab then check the option "Enable DDE server". |