Skip to content

Commit ef26c16

Browse files
committed
minor changes
1 parent b4f1801 commit ef26c16

File tree

2 files changed

+43
-6
lines changed

2 files changed

+43
-6
lines changed

src/clojure/footester.clj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,3 @@
3737
(println (com.Baz.Foo/value)))
3838

3939
(foo)
40-
41-
42-
43-
;; Make Excel a DDE Server
44-
45-
; =Excel|[stock.xls]Sheet1!'r2c2'

src/examples/MyNotes.txt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
** MyNotes.txt **
2+
3+
4+
To connect to two MT4 instances:
5+
6+
this one is free and you don't have to install, just run it.
7+
8+
get it from: http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm
9+
10+
If you open the terminal.exe file in the MT4 root directory with the HEX editor and do a search for MT4 you will find 7 instances. Simply change MT4 to MT1 and the DDE server name will change to MT1. In Excel you just use ='MT1'|BID!EURUSD for example. I can not take credit for this as it was passed to me thru another conversation, but I think it is ok to share.
11+
12+
13+
14+
15+
;; Make Excel a DDE Server
16+
17+
=Excel|[stock.xls]Sheet1!'r2c2'
18+
19+
20+
21+
22+
23+
24+
;; sample program:
25+
26+
DDEClient client;
27+
Conversation conv = null;
28+
byte[] data=null;
29+
client = DDEClient.getInstance();
30+
try {
31+
conv = client.connect("MT4", "BID");
32+
System.out.println("Connected to MT4");
33+
String Topic= conv.getTopic();
34+
data=conv.request("EURUSD", 5000);
35+
String sEURUSD = new String(data);
36+
System.out.println("EURUSD value: " + sEURUSD);
37+
} catch(DDEException e) {
38+
System.out.println(e);
39+
} finally {
40+
// disconnect in a finally clause
41+
try {conv.close();} catch (Exception e) {}
42+
}
43+
client.close();

0 commit comments

Comments
 (0)