DDE speed with IB

Discussion in 'Trading Software' started by the_dude, Jan 17, 2002.

  1. dlincke

    dlincke

    Unfortunately, IB decided to make the checking for uniqueness of IDs persistent across sessions in on of the recent TWS releases. Transactions the reuse IDs are dropped and ignored by TWS (check the TWS log files to see if this is happening to you). TWS stores the last used ID in the entry DdeId in the Settings section of the user.ini file. The only safe way to manage IDs is to manage your own IDs in the registry (or a multiuser capable DBMS if you have multiple applications interfacing simulatenously), compare with the entry in user.ini on startup and adjust new IDs to whichever is higher.

    Dave
     
    #21     Jan 25, 2002
  2. dlincke

    dlincke

    Sure. I've done that in order to integrate my QCharts with IB's TWS for order entry directly from QCharts. Now I don't miss those setups any longer that used to be long gone by the time I had a new market data line set up since I can transmit orders simply by doubleclicking on L2 quotes.

    Dave
     
    #22     Jan 25, 2002
  3. TraderWJ

    TraderWJ

    Hi, Dave

    Will it be possible for you to explain/show me how to do this??
    I'm currently using my own programs based on Qfeed to
    scan setups, but after that, I have to manually type into TWS.
    Any help will be greatly appreciated.

    WJ


    " Sure. I've done that in order to integrate my QCharts with IB's TWS for order entry directly from QCharts. Now I don't miss those setups any longer that used to be long gone by the time I had a new market data line set up since I can transmit orders simply by doubleclicking on L2 quotes. "
     
    #23     Jan 27, 2002
  4. dlincke

    dlincke

    QCharts uses application specific window messages to communicate trade information. So the only thing you have to do is register those messages and set up a handler for them which performs translation and submits them on a DDE advise loop to TWS.

    Dave
     
    #24     Jan 27, 2002