Interactive Brokers stop loss problems

jspot99

Active member
Joined
Mar 23, 2021
Posts
33
Likes
4
When connected to Interactive Brokers and I drag a stop loss on the chart to move it, Motive gives me a "duplicate order ID" error and will not move the stop loss.

Does anyone know the solution? It has to be something simple!

Is it a setting in Motivewave? Or is it a setting in the IB TWS API?

Any help appreciated!
 
Is anyone able to reliably set and adjust stop losses on IB?

I am intraday trading and trying to do short timeframe traders (sometimes less than 30 seconds).

I constantly get "Duplicate order ID" errors and "OrderId XXX that needs to be cancelled is not found." errors when adjusting a stop loss, or attempting to add a stop loss using the paperclip button in MotiveWave.

In TWS configuration, I have tried un/checking "API > Settings > Use negative numbers to bind automatic orders". But no effect.

Also in TWS configuration, I have also checked every single option in the Orders section.

I submitted a ticket to MotiveWave support, but no response yet.

If others are able to reliably use stop losses in IB for intraday? Anyone?
 
After working with MW support (which was excellent BTW) this is resolved:

For some instruments (stocks), the IB API provides a minmum tick of 0.0001.

I had a percent based exit strategy. MW was calculating the stop price resulting in fractions of 0.0001 and then IB would reject the order.

Solution was either:
(a) use a tick based exit strategy; or
(b) ensure MW was using a 0.01 min tick size (right click chart > Edit Instrument > Advanced).

To more efficiently set the min tick, I created the following AutoHotKey script, mapped to F10:

;==Set minimum tick
F10::
Click, right
Send, {down}{enter}+{tab 2}{left}{tab 3}
SendInput, 0.01
Send, {enter}
Return
 
Top