Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

carltonp

IB Trades Executing at Bid and Ask Rather Than Last Price

Recommended Posts

Hello Traders,

 

I'm using IB as my broker. For some reason, my trades were continually executed at bid/ask rather than last price. For example, I submitted a long trade to be executed at 11824. The trade was executed at 11830 at ask price, even though the last price never reached 11830.

 

Can someone please enlighten me.

 

Cheers

 

Carlton

Share this post


Link to post
Share on other sites

You might want to enlighten us first:

- what are you trading?

- what type of orders are you using?

- are you entering them directly on tws and if not do you know what was on tws?

and

- when you say the last price never reached x, the ask and your execution, what do you mean (what data are you looking at?)

Share this post


Link to post
Share on other sites

Carlton,

 

If you put a limit order at 11824, you would have been filled at 11824 or not at all.

 

You obviously used a market order. A market order will be filled at the best bid/ask at the time of the order.

 

Once your order was filled at 11830, that became the 'last print' so 11830 had to have been reached.

Share this post


Link to post
Share on other sites
  Kiwi said:
You might want to enlighten us first:

- what are you trading?

- what type of orders are you using?

- are you entering them directly on tws and if not do you know what was on tws?

and

- when you say the last price never reached x, the ask and your execution, what do you mean (what data are you looking at?)

 

Gents, thanks for responding.

 

I'm trading mini dow(YM).

 

I'm placing buy-stop orders.

 

I'm entering them directly on TWS.

 

So, yesterday I placed a buy-stop order at 11824. The trade was executed at 11830. I don't have a problem with that. The problem is, the last price never reached 11830, however the ask price did. I've attached a snapshot of the exact trade as it happened yesterday. You will see that I have placed a buy stop at 11824. You will also see that the trade has executed at 11830 at the ask. However, you notice that the last price is 11826. What you won't we is that the actual last price never reached 11830. Normally, my the trades will be executed at the last price and not at bid / ask.

 

I hope this visual helps you to help me understand.

 

Thanks

YMPrice.jpg.86073b85f9d9c415b134893025ccc82d.jpg

Share this post


Link to post
Share on other sites

A stop order (not stop limit) will execute at the extreme of current range.

 

IB's data feed (not the 5 second bar version but the real time one) shows a price every 100ms. Its the last price in that 100ms and if the extreme is greater it doesn't show. So you can get filled and the price not show up. Not every price is necessarily shown.

 

If you ask IB to confirm it they can check but it will have filled at the extreme.

Share this post


Link to post
Share on other sites

another thing to check on TWS.

If submitting some orders and they are filled, the reported price they are filled at can easily be confused with the limit price sent

 

In this example below, I sent a LMT order to buy at 1.302...the actual trades were done at 1.3018 in two tranches.

 

- BOT 50K EUR EUR.USD Cash 1.302 USD IDEALPRO 15:27:29

BOT 20K EUR EUR.USD Cash 1.30180 USD IDEALPRO 15:27:29

BOT 30K EUR EUR.USD Cash 1.30180 USD IDEALPRO 15:27:29

Share this post


Link to post
Share on other sites

A buy stop limit order doesn't ensure execution, but it will ensure that you get the price you want or better.

 

What I do with my own trading interface to IB when trading the CL is, if I want in the market immediately but don't want a market order which could slip me 2-4 ticks, I go 1 tick inside the bid on a buy limit or 1 tick inside the ask on a sell limit.

 

If I am staggering buy orders ahead of where the last is in an uptrend (e.g. 20 ticks between entries), I'll put in stop limit orders when my averaged up buy-ins are closer to my initial position abd have the ones farther away with stop order triggers where the slippage isn't going to threaten my overall cost average within the trade.

 

I'll give you an example of an actual pleasant experience I have had with limit orders. I'll have my software set to trigger a limit buy (or sell if going short) on touching, say, a 20 ema on a 5 min chart. The CL can get pretty jumpy on such an event so by the time my limit buy at, for example, hits 95.50 and got executed, I found that I got filled at 95.45...5 ticks better than what I wanted and then price is suddenly at 95.55 or better, 10 ticks to the positive in the blink of an eye. Had I placed that limit order directly in the market beforehand, I would have gotten filled at 95.50.

 

You can see what's going on here. The software sees a last of 95.50, sends the limit order to the exchange. Meanwhile, the exchange sees my limit order at 95.50 while its ask is touching 95.45. I get a much better fill in this case. It helps to keep me from getting stopped out on a sudden surge into support / resistance because my stop loss order, along with a target offset from the actual limit fill price reported by the exchange, is submitted as an OCO order on the execution status info from the entry. It doesn't happen a lot, but when it does, it's usually a good thing (for a change!)

 

Over the long term, if you're executing market orders based on something like X seconds before a bar close, you'll see price favoring you many times too relative to the actual closing price of that bar. You've got a lot of programs out there waiting for the exact close of a price bar (5 min being a common one) before they react so a market order like 3 secs before the close averages out pretty well to that close. I prefer this approach to finding out the closing price first and then entering a limit order because A) you can and will get skipped over at your ideal entry point and B) you're NOT going to like your at-the-market fills if your analysis is right and that closing price was what you wanted to have all along.

Edited by steveh2009

Share this post


Link to post
Share on other sites
  carltonp said:
Gents, thanks for responding.

 

I'm trading mini dow(YM).

 

I'm placing buy-stop orders.

 

I'm entering them directly on TWS.

 

So, yesterday I placed a buy-stop order at 11824. The trade was executed at 11830. I don't have a problem with that. The problem is, the last price never reached 11830, however the ask price did. I've attached a snapshot of the exact trade as it happened yesterday. You will see that I have placed a buy stop at 11824. You will also see that the trade has executed at 11830 at the ask. However, you notice that the last price is 11826. What you won't we is that the actual last price never reached 11830. Normally, my the trades will be executed at the last price and not at bid / ask.

 

I hope this visual helps you to help me understand.

 

Thanks

 

Carlton,

 

I trade live everyday with IB, and 95% of my entries are with a buy-stop or sell-stop. So maybe I can clear a few things up.

 

First of all, I see you're trading sim, so its possible you got a goofy fill that would not have been filled in a live account.

 

A typical buy stop is a market order placed above the current bid/ask. When the price you set your order at is printed (the last price) your order is sent to the exchange as a market order and your order is filled at the ask. If the market is moving fast, there's potential for slippage.

 

I don't trade the YM but I see it has decent liquidity, so the 6 tick slippage you received is probably unusual.

 

~Mike

Share this post


Link to post
Share on other sites
  mike21 said:
Carlton,

 

I trade live everyday with IB, and 95% of my entries are with a buy-stop or sell-stop. So maybe I can clear a few things up.

 

First of all, I see you're trading sim, so its possible you got a goofy fill that would not have been filled in a live account.

 

A typical buy stop is a market order placed above the current bid/ask. When the price you set your order at is printed (the last price) your order is sent to the exchange as a market order and your order is filled at the ask. If the market is moving fast, there's potential for slippage.

 

I don't trade the YM but I see it has decent liquidity, so the 6 tick slippage you received is probably unusual.

 

~Mike

 

Hey Mike, do you work for IB? (just joking). When I called their support team they virtually said what you mentioned. However, you're explanation made it really clear for my simple brain to comprehend.

 

As you use IB and TWS, can you tell me if its possible to place a 'buy stop limit order' as suggested by SteveH?

 

Cheers

Share this post


Link to post
Share on other sites

No, I don't work for IB, but I've used them for several years. :)

 

I read steve's post but I'm not sure I completely understand his approach.

 

Typically, a limit order (for a long trade) is placed below the current price and is filled if price moves down to your limit price. But just because price prints at your limit doesn't mean your order will be filled. Limit orders are time-stamped and filled in the order they're received at the exchange. (the queue) So when price prints at your limit -- first, market orders are filled, then the limit orders are filled in order. If there are not enough sellers, price will move back up without filling all the limit orders.

 

Personally I don't like limit orders because you are guaranteed to be filled on all your losing trades, but many of your 'potential' winning trades will never be filled.

 

Back to steve....By the time his limit order reached the exchange, price had moved down giving him a better fill. Couldn't price have, just as easily, moved up leaving him behind without a fill?

 

Maybe steve could chime in.

 

~Mike

Share this post


Link to post
Share on other sites
  mike21 said:
<<<< Personally I don't like limit orders because you are guaranteed to be filled on all your losing trades, but many of your 'potential' winning trades will never be filled. >>>>

 

I've seen variations of this, including "I don't buy pullbacks, I buy breakouts" based on the same logic.

 

Someone said "Simplicity is the peak of civilization" and such ideas fall into that camp. But someone exceptionally wise said "Everything should be made as simple as possible, but not one bit simpler." And overly simplifying heuristics such as the one above fall into the "one bit too simple" category.

 

As a trader you need to evaluate each possible trade for win rate, win/loss, variability in those, and thus expectancy and profit factor and reliability. You might find that the cost of paying the sometimes very large spread outweighed the number of trades you missed. Or you might not. But unless one does the numbers one doesn't ever know.

 

 

 

 

ps. My favourite quote on simplicity is Oscar Wilde's "I adore simple pleasures. They are the last refuge of the complex."

Share this post


Link to post
Share on other sites

Kiwi,

 

Another saying... 'There's more than one way to skin a cat.'

 

If you prefer to enter trades with limit orders... great. I don't.

 

The majority of my trades are buying/selling pullbacks. You don't have use limits to trade pullbacks. And guess what... I never miss a winning trade, but by using a buy stop I avoid some losers.

 

Yes I try to keep things simple. Warren Buffett once said "trading is simple but not easy"

I completely agree.

 

~Mike

Share this post


Link to post
Share on other sites
  mike21 said:
Back to steve....By the time his limit order reached the exchange, price had moved down giving him a better fill. Couldn't price have, just as easily, moved up leaving him behind without a fill?

 

Correct. That is the tradeoff. Apparently steve has found through his experience that he will typically not pick a price such that he will be one of the last ones filled (in other words, price will typically overshoot a bit), so he can afford the chance of doing a software-triggered order this way for the chance at a better price. Depends on the market; steve said, I think, that he trades CL. I used to, and can easily see this being useful in that market. In the market I trade, it is highly liquid and virtually no reason to do something like that.

Share this post


Link to post
Share on other sites

carltonp or anyone else using IB: have you considered using a different data feed for data only, while still using IB for your order routing (I am guessing you can do this in IB?)?

 

I ask because I can't imagine doing business with a data feed that does not accurately show transactions. I personally couldn't live even with the snapshot way they show transactions; I also knew another trader (a good one) who would say that the high and low prints would sometimes not be correct due to the snapshot being off. Why would you trade with this garbage of a data feed? It's almost as bad as spot forex; no accuracy not only in the timing of the transactions shown, but many transactions not even shown period!?

 

So you can get filled at a price that does not show on your chart as having printed... I know a trader who uses IB who this has happened to quite often... so what about IB makes you stay with them?

Share this post


Link to post
Share on other sites
  joshdance said:
carltonp or anyone else using IB: have you considered using a different data feed for data only, while still using IB for your order routing (I am guessing you can do this in IB?)?

 

I ask because I can't imagine doing business with a data feed that does not accurately show transactions. I personally couldn't live even with the snapshot way they show transactions; I also knew another trader (a good one) who would say that the high and low prints would sometimes not be correct due to the snapshot being off. Why would you trade with this garbage of a data feed? It's almost as bad as spot forex; no accuracy not only in the timing of the transactions shown, but many transactions not even shown period!?

 

So you can get filled at a price that does not show on your chart as having printed... I know a trader who uses IB who this has happened to quite often... so what about IB makes you stay with them?

 

IB is my primary broker and I use TWS to execute trades and have charts running IB data alongside another data feed. For me the test of reliability on executions is, am I getting the price I see on the screen? IOW, if I hit the bid or ask, do I get filled? Invariably the answer is yes. I'm on the ES most of the time, however, and the levels tend to be thick.

Share this post


Link to post
Share on other sites
  gosu said:
IB is my primary broker and I use TWS to execute trades and have charts running IB data alongside another data feed. For me the test of reliability on executions is, am I getting the price I see on the screen? IOW, if I hit the bid or ask, do I get filled? Invariably the answer is yes. I'm on the ES most of the time, however, and the levels tend to be thick.

 

Maybe I'm spoiled because I have a good broker, but seems to me that this should be pretty much the minimum requirement and only major requirement for any broker, namely, you should get filled at the proper price on a market order. Since you're running another data feed which is reliable, I get this. But some people use IB for data and execution, and given the truly terrible quality of their data, I can't imagine trying to trade with it alone, unless it's a long term swing trader who doesn't care about a few ticks missing from the chart here and there, and who doesn't look at the immediate order flow.

Share this post


Link to post
Share on other sites
  joshdance said:
Maybe I'm spoiled because I have a good broker, but seems to me that this should be pretty much the minimum requirement and only major requirement for any broker, namely, you should get filled at the proper price on a market order. Since you're running another data feed which is reliable, I get this. But some people use IB for data and execution, and given the truly terrible quality of their data, I can't imagine trying to trade with it alone, unless it's a long term swing trader who doesn't care about a few ticks missing from the chart here and there, and who doesn't look at the immediate order flow.

 

I find IB data to be very reliable and have no problems monitoring on charts fed by IB data. I trade stock indexes intraday and the fastest chart I monitor is YM 2m. I have used many data feeds over the years and cost is not an issue for me when it comes to getting quality data. My current monitoring setup with 2 data feeds is a result of years of simplifying what I do. At one time I was subscribed to 4 data providers and running 3 different charting packages concurrently on 3 computers and another charting package for EOD that I had to use with Qcollector. None of the data feeds was IB.

 

For how I trade, only a minimum requirement is necessary and getting a "better" data feed doesn't add to my bottom line. Reliability is the key for me and IB has proved to be very reliable over the years, so much so that I found the costly feeds redundant. I've also simplified my charting down to just one provider running on one computer with APC backup. My current cost for data and charts is under $100 per month.

Share this post


Link to post
Share on other sites
  joshdance said:
carltonp or anyone else using IB: have you considered using a different data feed for data only, while still using IB for your order routing (I am guessing you can do this in IB?)?

 

I ask because I can't imagine doing business with a data feed that does not accurately show transactions. I personally couldn't live even with the snapshot way they show transactions; I also knew another trader (a good one) who would say that the high and low prints would sometimes not be correct due to the snapshot being off. Why would you trade with this garbage of a data feed? It's almost as bad as spot forex; no accuracy not only in the timing of the transactions shown, but many transactions not even shown period!?

 

So you can get filled at a price that does not show on your chart as having printed... I know a trader who uses IB who this has happened to quite often... so what about IB makes you stay with them?

 

joshdance,

 

I think the trader you know may be exaggerating a bit.

 

IB does bundle their data. (I think 20 times a second). But all that means is, if there are transactions with no price movement, they may not show up as tick data. So, for example, If you compare a 100 tick chart with unfiltered data next to a 100 tick chart with IB data, the unfiltered chart will have more candles, BUT time and price will be the same. If you compare 5 minute charts they will be exactly the same.

 

I use ensign for my charting with a TraderBytes data feed, but I also have an IB chart up when trading. (I like the 'drag and drop' feature on IB charts for adjusting stops and limits). I have never seen a price print that didn't show up on the IB chart. I'm not saying it can't happen but I haven't seen it.

 

~Mike

Share this post


Link to post
Share on other sites

Actually, Josh's trader was 100% correct.

 

With IB's live feed as you use it with ensign the highs and lows of bars and swings can and surprisingly often do miss the extreme ticks.

 

I tried to get IB to fix this a few years back and they came halfway to the party with a 5 second feed (OHLCVT bars at the end of each 5 second period) that is correct but is also 0 to 5 seconds delayed.

 

With Sierra Chart the two feeds can be combined so that the live feed controls the current price, bid and ask and that the 5 second feed is used to fill in any lost highs and lows. So you get a feed that never lags and is correct. But the software needs to take both feeds and combine them or this won't happen.

 

 

Note: if you are using an ib tws chart to show prices then they use the 5 second feed which is why the data is correct. Feed it into ensign and you'll see a different story.

 

Note 2: on ib charts, drop down to 1minute on something that moves reasonably fast like hsi and watch it. They combine the true and live feeds but their algorithm is slightly screwed. Whereas Sierra Chart correctly combines them and if you get a high or low on a bar it's right IB sometimes shortens a bar soon after the new bar starts (realizes the combination is wrong when new true data comes in) - which should never happen.

Edited by Kiwi

Share this post


Link to post
Share on other sites

I don't use IB's data feed for my charts, but since IB's data appears to be correct on IB charts I assumed their data feed was not that bad. Apparently I'm wrong.

 

I'll take Kiwi's word that there are still major problems with IB's data feed.

 

Kiwi, who's data feed do you use?

Share this post


Link to post
Share on other sites
  Kiwi said:
Actually, Josh's trader was 100% correct.

 

With IB's live feed as you use it with ensign the highs and lows of bars and swings can and surprisingly often do miss the extreme ticks.

 

I tried to get IB to fix this a few years back and they came halfway to the party with a 5 second feed (OHLCVT bars at the end of each 5 second period) that is correct but is also 0 to 5 seconds delayed.

 

With Sierra Chart the two feeds can be combined so that the live feed controls the current price, bid and ask and that the 5 second feed is used to fill in any lost highs and lows. So you get a feed that never lags and is correct. But the software needs to take both feeds and combine them or this won't happen.

 

 

Note: if you are using an ib tws chart to show prices then they use the 5 second feed which is why the data is correct. Feed it into ensign and you'll see a different story.

 

Note 2: on ib charts, drop down to 1minute on something that moves reasonably fast like hsi and watch it. They combine the true and live feeds but their algorithm is slightly screwed. Whereas Sierra Chart correctly combines them and if you get a high or low on a bar it's right IB sometimes shortens a bar soon after the new bar starts (realizes the combination is wrong when new true data comes in) - which should never happen.

 

I am on Ensign and it is true that IB's feed will produce slightly different charts especially in fast markets. I always have another feed side by side and have been comparing IB's feed for years.

 

An example was this morning's spike on 6:56 YM 2m, 7:00 YM 5m bar (bar end, PST). The initial IB chart did not show as deep a spike. A manual refresh updated it.

 

Whether it makes a difference in a person's trading, that's for each person to judge for himself. For me it doesn't make a difference, but then I'm not watching every tick either.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Topics

  • Posts

    • AMZN Amazon stock, nice buying at the 187.26 triple+ support area at https://stockconsultant.com/?AMZN
    • DELL Dell Technologies stock, good day moving higher off the 90.99 double support area, from Stocks to Watch at https://stockconsultant.com/?DELL
    • MCK Mckesson stock, nice trend and continuation breakout at https://stockconsultant.com/?MCK
    • lmfx just officially launched their own LMGX token, Im planning to grab a couple of hundred and maybe have the option to stake them. 
    • Date: 2nd April 2025.   Market on Edge: Tariff Announcement and Volatility Ahead!   The US economic and employment data continues to deteriorate with the job vacancies figures dropping to a 5-month low. In addition to this, the IMS Manufacturing PMI also fell below expectations. However, both the US Dollar and Gold declined simultaneously following the release of the two figures, an uncommon occurrence in the market. Traders expect a key factor to be today’s ‘liberation day’ where the US will impose tariffs on imports. USDJPY - Traders Await Tariff Confirmation! Traders looking to determine how the USDJPY will look today will find it difficult to determine until the US confirms its tariff plan. Today is the day when Trump previously stated he would finalize and announce his tariff plan. The administration has not yet released the policy, but investors expect it to be the most expansionary in a century. President Trump is due to speak at 20:00 GMT. On HFM's Calendar the speech is stated as "US Liberation Day Tariff Announcement". Currently, analysts are expecting Trump’s Tariff Plan to impose tariffs on the EU, chips and pharmaceuticals later today as well as reciprocal tariffs. Economists have a good idea of how these tariffs may take effect, but reciprocal tariffs are still unspecified. In addition to this, 25% tariffs on the car industry will start tomorrow. The tariffs on the foreign cars industry are a factor which will particularly impact Japan. Although, traders should note that this is what is expected and is not yet finalised. Last week, President Trump stated that he would implement retaliatory tariffs but allow exemptions for certain US trade partners. Treasury Secretary Mr Bessent and National Economic Council Director Mr Hassett suggested that the restrictions would primarily target 15 countries responsible for the bulk of the US trade deficit. However, yesterday, Trump contradicted these statements, asserting that additional duties would be imposed on any country that has implemented similar measures against US products. The day’s volatility will depend on which route the US administration takes. The harshness of the policy will influence both the Japanese Yen as well as the US Dollar.   USDJPY 5-Minute Chart   US Economic and Employment Data The JOLT Job Vacancies figure fell below expectations and is lower than the previous month’s figure. The JOLT Job Vacancies read 7.57 million whereas the average of the past 6 months is 7.78 million. The ISM Manufacturing Index also fell below the key level of 50.00 and was 5 points lower than what analysts were expecting. The data is negative for the US Dollar, particularly as the latest release applies more pressure on the Federal Reserve to cut interest rates. However, this is unlikely to happen if the trade policy ignites higher and stickier inflation. In the Bank of Japan’s Governor's latest speech, Mr Ueda said that the tariffs are likely to trigger higher inflation. USDJPY Technical Analysis Currently, the Japanese Yen Index is the worst performing of the day while the US Dollar Index is more or less unchanged. However, this is something traders will continue to monitor as the EU session starts. In the 2-hour timeframe, the USDJPY is trading at the neutral level below the 75-bar EMA and 100-bar SMA. The RSI and MACD is also at the neutral level meaning traders should be open to price movements in either direction. On the smaller timeframes, such as the 5-minute timeframe, there is a slight bias towards a bullish outcome. However, this is only likely if the latest bearish swing does not drop below the 200-Bar SMA.     The key resistant level can be seen at 150.262 and the support level at 149.115. Breakout levels are at 149.988 and 149.674. Key Takeaway Points: Job vacancies hit a five-month low, and the ISM Manufacturing PMI missed expectations, adding pressure on the Federal Reserve regarding interest rate decisions. Traders await confirmation on Trump’s tariff policy, which is expected to impact the EU, chips, pharmaceuticals, and foreign car industries. The severity of the tariffs will influence both the JPY and the USD, with traders waiting for final policy details. The Japanese Yen Index is the worst index of the day while the US Dollar Index is unchanged. Always trade with strict risk management. Your capital is the single most important aspect of your trading business.   Please note that times displayed based on local time zone and are from time of writing this report.   Click HERE to access the full HFM Economic calendar.   Want to learn to trade and analyse the markets? Join our webinars and get analysis and trading ideas combined with better understanding of how markets work. Click HERE to register for FREE!   Click HERE to READ more Market news.   Michalis Efthymiou HFMarkets   Disclaimer: This material is provided as a general marketing communication for information purposes only and does not constitute an independent investment research. Nothing in this communication contains, or should be considered as containing, an investment advice or an investment recommendation or a solicitation for the purpose of buying or selling of any financial instrument. All information provided is gathered from reputable sources and any information containing an indication of past performance is not a guarantee or reliable indicator of future performance. Users acknowledge that any investment in Leveraged Products is characterized by a certain degree of uncertainty and that any investment of this nature involves a high level of risk for which the users are solely responsible and liable. We assume no liability for any loss arising from any investment made based on the information provided in this communication. This communication must not be reproduced or further distributed without our prior written permission.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.