Re: Placing Trailing Stop Limit Orders
Hey please try this with PAPER account and assume everything I am saying is wrong, but from my experience it corresponds to the pct so trailingPct = 3 is 3% NOT 0.03. I talk about the specific example
By
adidror005@...
·
#113
·
|
Re: Placing Trailing Stop Limit Orders
Got it, thank you. Guess I'm unclear about the purpose of order.trailStopPrice and order.lmtPriceOffset fields. Is the following accurate?
order.trailStopPrice is calculated by the system as
By
R Malhotra
·
#112
·
|
Re: Update order
?
This is what I thought too. I have updated my code, let’s see on Monday.
When I attach the stop loss order, I enter transmit=False to all orders, except the last attachment. I realised earlier
By
Gonzalo Saenz
·
#111
·
|
Re: Update order
The only other thing I can think of is that the STP isn’t getting transmitted (transmit=False) but I believe the default is transmit=True, however I don’t know offhand how a non-transmitted
By
Jason
·
#110
·
|
Re: Placing Trailing Stop Limit Orders
Hi,
TWS documentation has good examples
https://interactivebrokers.github.io/tws-api/basic_orders.html#trailingstop?
And the order
By
Gonzalo Saenz
·
#109
·
|
Placing Trailing Stop Limit Orders
Hello,
Anyone who uses this order type, can you please confirm whether this code
is correct to create an order with 1% trail? Most interested in the
'trailingPercent' field i.e. whether to pass the
By
R Malhotra
·
#108
·
|
Re: Update order
Yes, STP has it’s parentId=MOO.orderId
Do you think this might be to problem?
By
Gonzalo Saenz
·
#107
·
|
Re: Incorrect
Thanks, that is helpful
I had position = 800, order to sell 800, it initially filled 692/800
115708.497 positionEvent, position=108
115708.506 execDetailsEvent, Fill shares=692, cumQty=692, fill
By
Scott Kister
·
#106
·
|
Re: Incorrect
I don’t have much to add except to say that he’s 100% correct. I do the exact the same. Glad to hear others are doing what I do too
By
nkulki
·
#105
·
|
Re: Update order
Are you linking the STP order to the MOO via parentId?
By
Jason
·
#104
·
|
Update order
Hi,
I’m running an algo that triggers Market-on-Open orders. As it’s a MOO order the price is not known (although my logic will use a ticker to decide to trigger or not) at the time the order is
By
Gonzalo Saenz
·
#103
·
|
Re: unexpected keyword argument 'conid' in Contract()
The attribute is case sensitive, making conid an unsupported attribute verses conId.
Contract(conId=270639)
By
Jason
·
#102
·
|
Re: unexpected keyword argument 'conid' in Contract()
Case sensitive bro! conId
By
adidror005@...
·
#101
·
Edited
|
unexpected keyword argument 'conid' in Contract()
In the docs of Contract() ( https://ib-api-reloaded.github.io/ib_async/api.html#module-ib_async.contract ) there is an example: Contract ( conId = 270639 ) which should return a Contract Object. But I
By
Papageno
·
#100
·
|
Re: Quantity for MIDPRICE orders
Correct. But it is possible for forex pairs. You can specify quantity in
Cash. Using cashQty field of order. This is to specify the quantity in
second currency in pair.
[email protected]>
By
Pratik Babhulkar
·
#99
·
|
Re: Incorrect positionEvents received
It's not necessarily a bug, but rather how the events are sent.
orderStatusEvent is also my go to after finding similar patterns like you.
By
biney59@...
·
#98
·
|
Re: Quantity for MIDPRICE orders
No, the API does not provide it directly. You need to get your cash amount and calculate yourself.
https://ib-api-reloaded.github.io/ib_async/api.html#ib_async.ib.IB.accountValues
By
biney59@...
·
#97
·
|
Quantity for MIDPRICE orders
Hello,
When placing a Midprice order via the TWS API, I do not have the quantity, since the actual price isn't known yet. But I do have the $ amount to use for the order.
I know that TWS, mobile app
By
R Malhotra
·
#96
·
|
Re: Incorrect positionEvents received
As a workaround I started verifying if the positionEvent or execDetailsEvent received matches the last verified position plus any fills since then. This is an improvement and caught some cases, but I
By
Scott Kister
·
#95
·
|
Re: Sell orders executing as soon as I buy
https://interactivebrokers.github.io/tws-api/trigger_method_limit.html
These are the ones. They assume the default method if not set.
I think then mostly the problem is your prices. Some of the
By
Pratik Babhulkar
·
#94
·
|