0

I have developed an trade automator in excel, but its too slow, now im trying to do this in matlab.

One of the links I use to feed my sheets in excel is :

=TWSVR|CMA!'0012PETR4;25'

I'm trying to receive the same data in matlab, here is what I did:

channel = ddeinit('TWSVR','CMA')

lastPetr = ddeadv(channel,'0012PETR4;25',callback)

So is this right? Where can I see the data? Where is stored?

This callback function is the one I have to developed to process the data?

Jon Lin
  • 142,182
  • 29
  • 220
  • 220
Leonardo Hermoso
  • 838
  • 12
  • 26

1 Answers1

1

Matlab does not support DDE any more. You can still use DDE, but you may run into troubles.

For data exchange with Excel, I would suggest using xlsread, xlswrite and xlsfinfo instead.

texnic
  • 3,959
  • 4
  • 42
  • 75