![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
DDETool makes it possible import any data in real time from Metatrader 4 to third-pary software (supported DDE protocol). For example, we can import quotations (or indicator's value) from MetaTrader to MS Excel for real time analysis.
Dynamic Data Exchange (DDE) is a technology for communication between multiple applications under Microsoft Windows or OS/2.Contents Overview Dynamic Data Exchange was first introduced in 1987 with the release of Windows 2.0. It used the "Windows Messaging Layer" functionality within Windows. This is the same system used by the "copy and paste" functionality. Therefore, DDE continues to work even in modern versions of Windows. Newer technology has been developed that has, to some extent, overshadowed DDE (e.g. OLE, COM, and OLE Automation), however, it is still used in several places inside Windows, e.g. for Shell file associations. The primary function of DDE is to allow Windows applications to share data. For example, a cell in Microsoft Excel could be linked to a value in another application and when the value changed, it would be automatically updated in the Excel spreadsheet. The data communication was established by a simple, three-segment model. Each program was known to DDE by its "application" name. Each application could further organize information by groups known as "topic" and each topic could serve up individual pieces of data as an "item". For example, if a user wanted to pull a value from Microsoft Excel which was contained in a spreadsheet called "Book1.xls" in the cell in the first row and first column, the application would be "Excel", the topic "Book1.xls" and the item "r1c1". DDETool Metatrader Software Installation: 1) Copy ddedlg.exe and ddesrv.dll to any folder together. 2) Launch ddedlg.exe 3) Copy e-DDE-Test.mq4 to C:\\Program Files\Metatrader\experts\ Switch on “Allow dll import” You can use 3 functions, for expert adjusting: bool CheckItem(string topic, string item) bool AddItem(string topic, string item) bool SetItem(string topic, string item, string val) CheckItem – check topic-item on existence AddItem - add topic-item (if do not existence) SetItem – reload values for topic-item 4) Add expert to any chart 5) Launch MS Excel add DDE links to cells DDE link in MS Excel looks like this: =Server|Topic!Item Server – we can not change server, server: MyDDE You can add any amount of Topic-Item couples with AddItem in expert |
![]() |
| Tags |
| forex, latest, software, tips. |
| Thread Tools | |
| Display Modes | |
|
|