Re: Can a bracket order have two take profit orders to exit a position at two different profit levels?
Forgot to attached a couple screen grabs.
First the five orders. Please note that 23.1 was placed with a quantity of 500.via the API.
Attempt to change quantity of 23.1 via API fails without error
By
Jürgen Reinold
·
#47155
·
|
Re: Can a bracket order have two take profit orders to exit a position at two different profit levels?
I actually tried that (and slight variations) when I saw your original post last night, but it did not work for me.
What happens is that IB automatically sets the quantity for #3 to the same full
By
Jürgen Reinold
·
#47154
·
|
Re: Can a bracket order have two take profit orders to exit a position at two different profit levels?
Ruh roh, the forum may have gotten pwned by IP support.
By
Nick <news1000@...>
·
#47153
·
|
Re: Can a bracket order have two take profit orders to exit a position at two different profit levels?
Unfortunately I did not have the luxury (time) to try this out myself, so a BIG thank you to Richard.
However, I managed to call IB API support and was suggested the following:
Create 5 (!!!)
By
Levente
·
#47152
·
|
Re: Custom Scanners?
Here is a list of available scancodes. I don't know if there are more.
TOP_PERC_GAIN , TOP_PERC_LOSE , MOST_ACTIVE , ALL_SYMBOLS_ASC , ALL_SYMBOLS_DESC , BOND_CUSIP_AZ , BOND_CUSIP_ZA ,
By
Despair
·
#47151
·
|
Re: Can a bracket order have two take profit orders to exit a position at two different profit levels?
I recommend that you create two sets of orders with size N/2. Each set includes a parent order and the bracket order (stop loss and target limit).
--
https://www.tradingsoftwarelab.com
By
Orionn
·
#47150
·
|
Re: Can a bracket order have two take profit orders to exit a position at two different profit levels?
I don't know the commission impact or if it fits with your strategy but perhaps you could place two brackets each for N/2 shares. This would leave you always protected and you wouldn't have to deal
By
Nick <news1000@...>
·
#47149
·
|
Re: Can a bracket order have two take profit orders to exit a position at two different profit levels?
Why not create two identical parent orders at the same price with 1/2 of total amounts each and just have two brackets at different stops/limits?
By
ds-avatar
·
#47148
·
|
Re: Can a bracket order have two take profit orders to exit a position at two different profit levels?
I tried out my suggestion and it seems to work fine. I bought 1000 shares of TSCO at market at the LSE, with a stop-loss STP order at 215 and a take-profit LMT order at 225.
After the entry market
By
Richard L King
·
#47147
·
|
Custom Scanners?
Hey guys, I've been looking through this page https://interactivebrokers.github.io/tws-api/market_scanners.html and it seems the ability to create scanners in Python is very limited. To my
By
Patrick C
·
#47146
·
|
Re: Can a bracket order have two take profit orders to exit a position at two different profit levels?
No, there's no easy way to do that.
Obviously you can program this so that you create a bracket order with a stop-loss but no take-profit: as soon as the entry order fills, create the two
By
Richard L King
·
#47145
·
|
Re: Inconsistent behaviour of WHATIF orders
I will test it again this weekend. Since it is now working flawlessly there is nothing to debug :-)
By
Despair
·
#47144
·
|
Re: Inconsistent behaviour of WHATIF orders
I guess yes, as I'm workaholic... But no matter, if it works fine when markets are open, then it works fine!
By
Francois G
·
#47143
·
|
Can a bracket order have two take profit orders to exit a position at two different profit levels?
I would like to know if there is a mechanism that would allow me to place a position opening order for N contracts, together with two take profit orders, each of size N/2 but at different price
By
Levente
·
#47142
·
|
Re: Inconsistent behaviour of WHATIF orders
@Francois: There is no error message. Everything is returned as it should just that both change in initial margin and change in maintenance margin are returned as zero.
I tested it now all week and
By
Despair
·
#47141
·
|
Re: Options contract volume and open interest
To get the current day's volume, a simple snapshot request via reqMktData( reqId, contract, "", true) is sufficient, and you'll receive the volume as one of the returned data fields.
If you also want
By
Yair Altman
·
#47140
·
|
Options contract volume and open interest
Hello.
What is the best way to get volume and open interest for an option contract?
Regards
By
Pirro Trader
·
#47139
·
|
Re: accountSummaryEnd only called once
Yes, you'll only see the "End" called when your initial download is complete.? Subsequent updates don't have an end per se, so it's up to you to manage how you trigger off the values changing over
By
Peter Drier
·
#47138
·
|
Re: Inconsistent behaviour of WHATIF orders
This is on a paper trading account, and WHATIF orders always worked fine.
By
Francois G
·
#47137
·
|
Re: Inconsistent behaviour of WHATIF orders
Despair, I just tried now (07:29 AM UTC) markets closed, and it works fine, either for single leg or combo whatif orders.
See attached screenshot, one is for single legs, one is for combo. I use
By
Francois G
·
#47136
·
|