DDE usage with Java instead of Excel

 
Hi,

I was wondering whether anybody has ever tried using the dde through something other than Excel (or OpenOffice).

Following is a small piece of the code i use to try and make it work.

// Connect to MetaTrader
metaTrader.connect("MT", "BID"); // This seems to go ok
// Request an item
String usdchf = new String(metaTrader.request("USDCHF")); // Error thrown

This is the exception thrown.
com.javaparts.dde.DDEException: Request transaction has failed [4009]
A transaction has failed (was rejected by server).

I'm aware that this is java but maybe someone has gotten the dde link from java to MT to work and i'm just not seeing something.

Any help or suggestion appreciated.

tia
Fermin DCG
 
You can export indicators and prices from MT4 to Excel and execute orders from excel to several MT4s + other cool staff. It is explained here www.fxdialogue.com.
 

* are you sure it has connected to MT? I believe it should be MT4

* is metaTrader.request("USDCHF") supposed to be a string?


I created a similar application but using .NET, and its working. I used MT4 instead of MT.


give it a try. :)

 
hi ace.aaaacbc! is is really posibble to use .NET with uniDDE? were you able to get a lot of data like trades, traders, quotes, etc.? can you send me some help. thanks. email me at charlotte.ayao@gmail.com
 
helo...ace.aaacbc please send me a sample code of mt4 to java.. this is my email add conrad_f17@yahoo.com.ph