tws api

Discussion in 'Order Execution' started by shovel52, Feb 8, 2007.

  1. shovel52


    I searched for this and couldn't find it. I am trying to install the api
    to install tsim+ and it keeps telling me that this file c: windows\system32\olepro32.dll is busy and won't let me install.
    It will let me install if I click ignore but tsm+ doesn't work properly
    I get data from tws but stocks dissapper when I close it out. Has anyone had this problem? I did reboot several times
  2. rwk


    Boot into safe mode, re-do the install, then boot normally.
  3. shovel52


    Thank you, that did the trick on that. I am now getting a runtime
    error 450. the tsim+ instructions just say that there is some problem with the api. perhaps there is an answer to this one
    in the forum. There seems to be an answer to everything else!

    thanks John
  4. Hi,

    I am not familiar with APIs, but wanted to know if there is a possibility to a place bracket orders automatically with only entering a price. The orders then will appear in TWS.

    For example:

    I want to generate a bracket order for the emini SPX future (ESH7) with predifined parameters (+-6) from an entered price. For ESH7
    will be + - 6pts from the entered price (1400).

    1) The API will ask me a price for the ESH7
    2) I type in 1400
    3) the Api generates the follwoing orders:

    Buy ESH7 @ 1394.00
    Sell ESH7 @ 1396.00 (bracket order)

    Sell ESH7 @ 1406.00
    Buy ESH7 @ 1404.00 (bracket order)

    I do not want the stop loss of the bracket order.Is this possible?
    How should I do it with VBA, java? Could someone show me the correct path...