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
·
|
Model Portfolios functionality in TWS API
Hello guys, my client needs the following functionality for their platform:
* Create a model portfolio through the API (not so important since they could create them through TWS which they can
*
By
wallstreetbets
·
#47135
·
|
Re: Inconsistent behaviour of WHATIF orders
@Francois G: One more question. Do the whatif orders work for you also when the market is closed (like on weekends)? I'm asking because I ran the program on the weekend and yesterday before the market
By
Despair
·
#47134
·
|
Re: Inconsistent behaviour of WHATIF orders
The only differences to my code that I can spot directly is that I use MKT orders. Also I don't explicitly set the transmit flag (I think it is true by default). Further I already experimented with
By
Despair
·
#47133
·
|
Re: Inconsistent behaviour of WHATIF orders
oups! Vrai means True (in french)
By
Francois G
·
#47132
·
|
Re: Inconsistent behaviour of WHATIF orders
The code I use, with dummy parameters:
IContractOrd is IBApi.Contract
...
IOrderLabo is IBApi.Order
stOrderState is
By
Francois G
·
#47131
·
|
Re: Inconsistent behaviour of WHATIF orders
Hmm Ok thanks, then there must be a bug in my code. I will debug it again :-)
By
Despair
·
#47130
·
|
Re: Inconsistent behaviour of WHATIF orders
Hi, I use WHATIF orders via API everyday and it always worked fine. One leg or multi-leg combos, everything OK.
Try to build the same order on TWS, and see the margin impact. You should get exactly
By
Francois G
·
#47129
·
|