¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

How are stops triggered?


 

I have an algorithm I'm testing and I'm trying to figure out if I should implement stops and what level is appropriate.? I downloaded a bunch of historical bid data from my recent trades but the bids are all over the place -- sometimes at 50% of the current market price of the stock.? On close reading of the I noticed that it doesn't really specify what "price" actually will trigger a stop.? I have typically?been forced to choose a bid or ask level (or percentage) to trigger a stop or trailing stop in the past on other trading platforms.? Does IB use the actual trades to determine price at a given moment?? This implies I should be using the historical trade data as a price determinant rather than bids (or asks)? That does seem to be available from IB.

Any insights here would be appreciated...

Thanks


 

There are about half a dozen different stop trigger methods. They are documented (C#) under?IBApi.TriggerMethod enumeration and specified using Order::TriggerMethod property, as well as when manually submitting an order in TWS. Rules governing these methods are sometimes somewhat intricate so pay attention to what documentation say, and I suggest you should ideally?look at documentations for both API and TWS since IBKR docs can be somewhat sparse. Trigger methods can make a lot of difference especially in the less liquid stocks.


 

The Order class has a field to specify what price(s) to use to define the trigger point. It is called TriggerMethod(). This might be of help to you:? http://interactivebrokers.github.io/tws-api/classIBApi_1_1Order.html


 

Thanks ds-avatar this is very helpful.? Looks like for stocks the Last Price method this default which is what was hoping for in any case.? Now that I know which data to review hopefully my analysis will be more productive.