Place automatic bracket orders IB -API

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...

Regards

JB
 
Can't you just save a template in TWS? I know you can do this with a basket order. So maybe you can put a bracket order into a basket.

About not having the stop loss. I tried in TWS and you can delete one of the 2 "legs" of the bracket order. However, I can't confirm this from trades.
 
Back
Top