what is DDE?

Discussion in 'Trading Software' started by Gordon Gekko, Sep 21, 2002.

  1. i'm new to using IB. i noticed a lot of people that use them talk about DDE. what is it and what are some common usages?

    thanks
     
  2. sub7slak

    sub7slak

    DDE = Dynamic Data Exchange allows information to be shared or communicated between programs. It is a interprocess communication (IPC) that uses shared memory as a common exchange area and provides applications with a protocol or set of commands and message formats. It basically uses a client/server model in which the application requesting data is considered the client and the application providing data is considered the server.

    WRITING DATA TO EXCEL:
    /* The DDE link is established using */
    /* Microsoft Excel SHEET1, rows 1 */
    /* through 100 and columns 1 through 3 */
    filename random dde
    'excel|sheet1!r1c1:r100c3';
    data random;
    file random;
    do i=1 to 100;
    x=ranuni(i);
    y=10+x;
    z=x-10;
    put x y z;
    end;
    run;

    READING DATA TO EXCEL:
    /* The DDE link is established using */
    /* Microsoft Excel SHEET1, rows 1 */
    /* through 10 and columns 1 through 3 */
    filename monthly
    dde 'excel|sheet1!r1c1:r10c3';
    data monthly;
    infile monthly;
    input var1 var2 var3;
    run;
    proc print;
    run;