Thread: Is it possible?
View Single Post
  #3 (permalink)  
Old 02-25-2006, 12:21 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Unhappy DDE Server!

Quote:
Originally Posted by Nicholishen
Additionally, I am wondering if it is possible to Export quotes from multiple versions of MT running on different brokers to ONE Excel sheet thru the DDE server? Then would it be possible to write a VBasic to analyze data then pass a signal to an external program (dll?) then import back to MT to execute trades?
I don't think the DDE client (The visual basic or Excel program) has the ability to connect to multi MetaTrader instances. Because the idea behind the DDE is connecting to the server by it's exe name. Maybe if we change the name of the MeteTrader.exe it works, I didn’t try!

But, if we create our own DDE server- it's an easy task for a c++ guru- it will be possible.
This is the algorism:

Step1: We build a DDE server (DLL) which assign a unique id for every MetaTrader instance (the id maybe the account number or anything unique).
Step2: Making a visual basic DDE client which able to connect to multi DDE servers.
Step3: The visual basic program will store the data in an Excel sheet.
Step4: We build another DLL to restore the already saved data.

But this require TIME
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote