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.

BlueHorseshoe

Ensuring a Fill at Limit Price - How Early Must an Order Be Placed?

Recommended Posts

Does anybody know of any study about just how far in advance one needs to place a limit order to be pretty much ensured of a position very near to the front of the order queue?

 

When I backtest intraday strategies, with orders entered sometimes just minutes before a potential fill, then I require price to trade through my limit order before the order is considered to have been executed by the backtest. I am backtesting a swing trade strategy where orders are placed a day before, and I'm wondering whether I need to do the same, or whether placing an order this early makes a fill at limit very highly likely?

 

Oh, and I'm looking at the @ES contract.

 

Many thanks.

 

Bluehorseshoe.

Share this post


Link to post
Share on other sites

Unless something is different, when price trades "Through" your limit you are guaranteed a fill... when it ticks your price that is a whole different matter.

 

For system design you must test with the assumption of worst conditions..you can never assume you were filled at the limit unless traded through..

Share this post


Link to post
Share on other sites
Unless something is different, when price trades "Through" your limit you are guaranteed a fill... when it ticks your price that is a whole different matter.

 

For system design you must test with the assumption of worst conditions..you can never assume you were filled at the limit unless traded through..

 

Hi Roztom,

 

Thanks for your reply. My understanding is exactly as you describe, and when I becktest I always do require price to trade through a limit order before considering it as filled. So I test with the assumption of worst conditions, as you suggest.

 

However, my purpose with this thread is to enquire how much worse might the backtest conditions be than what would actually have been realised trading the same (historical) market data.

 

Knowing the worst case scenario is obviously the essential piece of information for system design, but having a way to estimate a best case scenario with limit orders would also be useful. I then know a range of likely outcomes for trading in real time.

 

There are certainly circumstances in which a fill would be very likely at limit. For instance, suppose that I place a sell limit order today at a level three hundred points above the close. Now suppose that price does not trade up to that level until two years hence. Chances are (I imagine) that I'm front of the queue, even though thousands of orders may be queued there by the time the market trades to that level. There simply won't be many limit orders sitting on the order books for two years at any particular price level.

 

Many thanks if anyone is able to provide any more definite info on this . . .

 

Bluehorseshoe

Share this post


Link to post
Share on other sites

It is odd because I was going to ask the same question too. In the last two days I placed orders to buy or sell the SPemini about two hours prior to the price arriving at that location

 

I could not get filled unless the price went through my bid/offer location. I have trade station as my main execution platform but I have also Transact as my secondary platform

 

In the past I noticed that even when I placed the same price order but first I entered my order at Trade Station the order from Transact was executed first even though I placed the order last

 

I have each platform on a different computer I wonder why it has happened does anyone had the same problem?

 

Reflecting back on the situation I think since Trade Station “filters” the tick data this might be the reason why it is lagging, the second reason might be since Transact does not “filter “their tick data the price jumps back and forth so fast that I could not see it going through my bid /offer price

 

Do you have any reasonable idea to why this is happening I would like to hear from you as well?

Share this post


Link to post
Share on other sites
Hi Roztom,

 

Thanks for your reply. My understanding is exactly as you describe, and when I becktest I always do require price to trade through a limit order before considering it as filled. So I test with the assumption of worst conditions, as you suggest.

 

However, my purpose with this thread is to enquire how much worse might the backtest conditions be than what would actually have been realised trading the same (historical) market data.

 

Knowing the worst case scenario is obviously the essential piece of information for system design, but having a way to estimate a best case scenario with limit orders would also be useful. I then know a range of likely outcomes for trading in real time.

 

There are certainly circumstances in which a fill would be very likely at limit. For instance, suppose that I place a sell limit order today at a level three hundred points above the close. Now suppose that price does not trade up to that level until two years hence. Chances are (I imagine) that I'm front of the queue, even though thousands of orders may be queued there by the time the market trades to that level. There simply won't be many limit orders sitting on the order books for two years at any particular price level.

 

Many thanks if anyone is able to provide any more definite info on this . . .

 

Bluehorseshoe

 

I'm not sure what the point would be to want to assume you might be filled at your limit when the probabilities are you won't be..at least for system design you should always assume you won't.. As far\as the Que, that is not quantifiable...

 

If you are designing a system it must work under adverse conditions not ideal ones... :2c:

Share this post


Link to post
Share on other sites
It is odd because I was going to ask the same question too. In the last two days I placed orders to buy or sell the SPemini about two hours prior to the price arriving at that location

 

I could not get filled unless the price went through my bid/offer location. I have trade station as my main execution platform but I have also Transact as my secondary platform

 

In the past I noticed that even when I placed the same price order but first I entered my order at Trade Station the order from Transact was executed first even though I placed the order last

 

I have each platform on a different computer I wonder why it has happened does anyone had the same problem?

 

Reflecting back on the situation I think since Trade Station “filters” the tick data this might be the reason why it is lagging, the second reason might be since Transact does not “filter “their tick data the price jumps back and forth so fast that I could not see it going through my bid /offer price

 

Do you have any reasonable idea to why this is happening I would like to hear from you as well?

 

This is just a guess, but going on the fact that there is a difference between the two platforms, I would guess that this may be to do with how you have the TS platform set up. There are options within tradestation whereby the limit order can be held on the exchange's order books, or where it can be held on tradestation's server until the limit price is hit, or where it can be held on your own computer until the limit price is hit. I'm guessing that you are set up with one of the latter two options and not the first. This means that your order doesn't reach the exchange until other limits at your desired price have begun to fill, and you get thrown in at the back of the queue.

 

I hope that's correct/helpful.

Share this post


Link to post
Share on other sites
I'm not sure what the point would be to want to assume you might be filled at your limit when the probabilities are you won't be..at least for system design you should always assume you won't.. As far\as the Que, that is not quantifiable...

 

If you are designing a system it must work under adverse conditions not ideal ones... :2c:

 

Hi Roztom,

 

I'm probably not doing a very good job of explaining myself. When I develop a strategy I do assume the worst case scenario. So my question about fills is for 'information' only - I just like to be aware the range of possibilites surrounding what I'm doing.

 

Bluehorseshoe

Share this post


Link to post
Share on other sites
Hi Roztom,

 

I'm probably not doing a very good job of explaining myself. When I develop a strategy I do assume the worst case scenario. So my question about fills is for 'information' only - I just like to be aware the range of possibilites surrounding what I'm doing.

 

Bluehorseshoe

 

Personally I don't think it is worth considering - but that's just me.. Good Luck

Share this post


Link to post
Share on other sites
Hi Roztom,

 

 

However, my purpose with this thread is to enquire how much worse might the backtest conditions be than what would actually have been realised trading the same (historical) market data.

 

they will always be worse. :(....how much will largely be depandant on number of trades, magnitude of wins v losses v costs v slippagge etc;

backtesting only gives an indication of what would occur- what you would expect- if the same conditions where to occur in the future and the reality is you by adding extra volume into the live market then actually do affect the market.

All you can do is be conservative, overestimate slippage and then tweak systems once live by benchmarking the results of the continued backtested system v live trading to compare and see where improvements can be made. It might be the one or two trades that a missed that completely throw off a system.

Share this post


Link to post
Share on other sites
I am backtesting a swing trade strategy where orders are placed a day before, and I'm wondering whether I need to do the same, or whether placing an order this early makes a fill at limit very highly likely?

 

Unscientifically based opinion: with an order placed this far in advance, assume the fill.

Share this post


Link to post
Share on other sites

I could not get filled unless the price went through my bid/offer location. I have trade station as my main execution platform but I have also Transact as my secondary platform

..

Do you have any reasonable idea to why this is happening I would like to hear from you as well?

 

Sounds like a simulation trade?

Share this post


Link to post
Share on other sites
Unscientifically based opinion: with an order placed this far in advance, assume the fill.

 

Hi Joshdance,

 

Thanks for that. This is my suspicion also, and it has been confirmed by both the negligble difference in results when testing with the at/through fill requirements, and also in live trading. I'm just curious about where this starts to change really - I know that orders placed minutes before are are unlikely to be filled unless price trades through the limit. I was hoping that someone might be able to point me towards some information from the exchange or an independent report on this.

 

Thank you for your reply.

Share this post


Link to post
Share on other sites
they will always be worse. :(....how much will largely be depandant on number of trades, magnitude of wins v losses v costs v slippagge etc;

backtesting only gives an indication of what would occur- what you would expect- if the same conditions where to occur in the future and the reality is you by adding extra volume into the live market then actually do affect the market.

All you can do is be conservative, overestimate slippage and then tweak systems once live by benchmarking the results of the continued backtested system v live trading to compare and see where improvements can be made. It might be the one or two trades that a missed that completely throw off a system.

 

Hi SIUYA,

 

I agree that future system performance is likely to be worse, but accurate backtesting should closely resemble what would have been achieved trading that exact same historical data in real time. Slippage is not an issue - there is only positive slippage with limit orders.

 

When I backtest a strategy and require price to trade through my limit, then the result would be the absolute minimum that could have been achieved were I actually trading that market. And when I require price to trade only at limit, then that is the very best that could be achieved. The question is, how can I estimate what would actually have been achieved? Obviously this must lie somewhere between the minumum and maximum performance possibilities (it is likely to be the product of trades executed when price traded through the limit, with just some additional trades thrown in that were executed at limit because I was near the front of the order queue.

 

Bluehorseshoe

Share this post


Link to post
Share on other sites

I think thats the best you can get.....somewhere in between as JoshDance says its all a guess and you need to make assumptions.

Plus while take profit levels and entry levels can certainly be fairly accurately guesstimated, any stops might be a different story....so there is likely to be slippage - how much an impact is debatable (and later measurable)

Additionally there is the issue of missing trades - both winners and losers, unless you have 24 hours IT, trading and other support, you will go on holidays, your computers will crash etc; etc;....hence backtests are a guesstimate of what to expect - or at least thats the angle I take from them. :)

 

So yes - its one of those things where you have to understand the limitations of the system and expect the worst - then and its probably only a slim chance - you might be pleasantly surprised :)

In regard your first question - some brokers purge old orders as well, so placing some orders years in advance may still not be enough. There will be the additional issue of being able to replicate the assumptions in any test in the reality of not just the markets, but also the broker system.....eg; can the broker handle longs and shorts separately, will the system be able to know its 100% filled - what about partials, will the broker allow you leeway to offset hedged instruments or is margin, margin calls and increasing margin calls a possible issue.....etc; etc; etc;.....the never ending joys :)

Share this post


Link to post
Share on other sites
I think thats the best you can get.....somewhere in between as JoshDance says its all a guess and you need to make assumptions.

Plus while take profit levels and entry levels can certainly be fairly accurately guesstimated, any stops might be a different story....so there is likely to be slippage - how much an impact is debatable (and later measurable)

Additionally there is the issue of missing trades - both winners and losers, unless you have 24 hours IT, trading and other support, you will go on holidays, your computers will crash etc; etc;....hence backtests are a guesstimate of what to expect - or at least thats the angle I take from them. :)

 

So yes - its one of those things where you have to understand the limitations of the system and expect the worst - then and its probably only a slim chance - you might be pleasantly surprised :)

In regard your first question - some brokers purge old orders as well, so placing some orders years in advance may still not be enough. There will be the additional issue of being able to replicate the assumptions in any test in the reality of not just the markets, but also the broker system.....eg; can the broker handle longs and shorts separately, will the system be able to know its 100% filled - what about partials, will the broker allow you leeway to offset hedged instruments or is margin, margin calls and increasing margin calls a possible issue.....etc; etc; etc;.....the never ending joys :)

 

Hi SIUYA,

 

Thanks - that's a really helpful response. I was of course ignoring IT/technical issues, and hadn't really considered the brokerage issues that you mention (although my suggestion of placing orders years in advance was just an extreme example - but it is interesting to know that old orders can be purged). Nor have I really considered anything beyond a single contract in backtesting intraday - I've been making a rather lazy assumption that compounding will be beneficial, although I haven't really wondered about partial fills on large orders, so that's plenty to think/worry about. Cheers for your help!

 

Bluehorseshoe

Share this post


Link to post
Share on other sites

The fact is that if you are backtesting then by default you are sim trading ie. with a strategy. In the sim mode and live trading mode the order within a strategy will always be resident to the computer until hit by price. If TS filters ticks this would be an issue when backtesting. If you are live trading manually and create a bracket or limit order within the matrix window or DOM then the order is resident to the exchange and not your computer. Unfortunately there is no way of knowing just how far in advance you must place the trade to be first in queue as there are to many variables as to lot size and so forth. You may get a partial fill if touched and wait as the other contracts are filled as the market trades through the price. I trade the Russell and I have been filled when the price of my limit is just touched and not traded through ( a trade that I placed sometimes seconds earlier). I would say when trading 1 lots ( live trading ) I have experienced a fill rate of 60+% on the Russell when price just touches my limit without trading through it this never happened for me on the ES.

Share this post


Link to post
Share on other sites
The fact is that if you are backtesting then by default you are sim trading ie. with a strategy. In the sim mode and live trading mode the order within a strategy will always be resident to the computer until hit by price. If TS filters ticks this would be an issue when backtesting. If you are live trading manually and create a bracket or limit order within the matrix window or DOM then the order is resident to the exchange and not your computer. Unfortunately there is no way of knowing just how far in advance you must place the trade to be first in queue as there are to many variables as to lot size and so forth. You may get a partial fill if touched and wait as the other contracts are filled as the market trades through the price. I trade the Russell and I have been filled when the price of my limit is just touched and not traded through ( a trade that I placed sometimes seconds earlier). I would say when trading 1 lots ( live trading ) I have experienced a fill rate of 60+% on the Russell when price just touches my limit without trading through it this never happened for me on the ES.

 

Hi Pittrader,

 

Thanks for your reply. TradeStation can be set up so that the a strategy order is resident to the exchange rather than sitting on the computer (resident to the TS servers is a third option). In other words, the order is placed exactly the same as if it were placed manually on the DOM.

 

Your information on the order fills for the Russell vs ES are extremely helpful.

 

Cheers,

 

Bluehorseshoe

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

    • Date: 1st April 2025.   Will Gold’s Rally Hold Strong as New Trade Tariffs Take Effect Tomorrow?   Gold continues to increase in value for a sixth consecutive day and is trading more than 17% higher in 2025. Amid fear of higher inflation, a recession and the tariffs war escalating investors continue to invest into Gold pushing demand higher. The trade policy from April 2nd onwards continues to be a key factor for the whole market. Can Gold maintain its upward trend? Trade Policy From Tomorrow Onwards Starting as soon as tomorrow, a 25% tariff will be imposed on all passenger cars imported into the United States. While this White House policy is anticipated to negatively affect European industrial performance, it will also lead to higher transportation and maintenance costs for everyday American taxpayers. The negative impact expected on both the EU and US is one of the reasons investors continue to buy Gold. Additionally, last month, President Donald Trump announced reciprocal sanctions against any trade partners that impose import restrictions on US goods. Furthermore, tariffs on products from Canada and the EU could increase even more if they attempt to coordinate a response. Overall, investors continue to worry that new trade barriers will prompt retaliatory measures, particularly from China, the Eurozone, and Japan. Any retaliation is likely to escalate the trade conflict and prompt another reaction from the US. Experts at Goldman Sachs and other investment banks warn that this will lead to rising inflation and unemployment. They also caution that it could effectively halt economic growth in the US.   XAUUSD 1-Hour Chart   The Weakness In The US Dollar Another factor which is allowing the price of XAUUSD to increase in value is the US Dollar which has been unable to maintain any bullish momentum. Despite last week’s Core PCE Price Index rising to its highest level since February 2024, the US Dollar has been unable to see any significant rise in value. Due to the US Dollar and Gold's inverse correlation, the price of Gold is benefiting from the Dollar weakness. Investors worry that new trade barriers will prompt retaliatory measures from China, the Eurozone, and Japan, potentially escalating the conflict. Experts at The Goldman Sachs Group Inc. believe that such actions by the US administration will drive rising inflation and unemployment while effectively halting economic growth in the country. Can Gold Maintain Momentum? When it comes to technical analysis, the price of Gold is not trading at a price where oscillators are indicating the instrument is overbought. The Relative Strength Index currently trades at 68.88, outside of the overbought area, since Gold’s price fell 0.65% during this morning’s session. However, even with this decline, the price still remains 0.40% higher than the day’s open price. In terms of fundamental analysis, there continues to be plenty of factors indicating the price could continue to rise. However, the price movement of the week will also partially depend on the employment data from the US. The US is due to release the JOLTS Job Vacancies for February this afternoon, the ADP Non-Farm Employment Change tomorrow, and the NFP Change and Unemployment Rate on Friday. If all data reads higher than expectations, investors may look to sell to lock in profits at the high price. Key Takeaway Points: Gold’s Rally Continues – Up 17% in 2025 as investors seek safety from inflation, recession fears, and trade tensions. Trade War Impact – New US tariffs and potential retaliation from China, the EU, and Japan drive uncertainty, boosting Gold demand. Weak US Dollar – The Dollar’s struggle supports Gold’s rise due to their inverse correlation. Gold’s Outlook – Uptrend may continue, but US jobs data could trigger profit-taking. 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.
    • Date: 31st March 2025.   Trump Confirms Tariffs on All Countries, Sending Stocks Lower.   The NASDAQ continues to trade lower due to the US confirming the latest tariffs will be on all countries. In addition to this, bearish volatility also is largely due to the higher inflation data from Friday. The NASDAQ declines to its lowest price since September 11th 2024. Core PCE Price Index - Inflation Increases Again! The PCE Price Index read 2.5% aligning with expert forecasts not triggering any alarm bells. However, the Core PCE Price Index rose from 0.3% to 0.4% MoM and from 2.7% to 2.8% YoY, signalling growing inflationary pressure. This increases the likelihood that the Federal Reserve will maintain elevated interest rates for an extended period. The NASDAQ fell 2.60% due to the higher inflation reading which is known to pressure the stock market due to pressure on consumer demand and a more hawkish Federal Reserve. Boston Fed President Susan Collins recently commented that tariffs could drive up inflation, though the long-term impact remains uncertain. She told journalists that a short-term spike is the most probable outcome but believes the current pause in monetary policy adjustments is appropriate given the prevailing uncertainties. Although, certain investment banks such as JP Morgan actually believe the Federal Reserve will be forced into cutting rates. This is due to expectations that the economy will struggle under the new trade policy. For example, JP Morgan expects the Federal Reserve to delay rate cuts but will quickly cut towards the end of 2025. Market Risk Appetite Takes a Hit! A big factor for the day is the drop in the risk appetite of investors. This can be seen from the VIX which is up almost 6%, Gold which is trading 1.30% higher and the Japanese Yen which is the day’s best performing currency. Most safe haven assets, bar the US Dollar, increase in value. It is also worth noting that all indices are decreasing in value during this morning's Asian session with the Nikkei225 and NASDAQ witnessing the strongest decline. Previously the stock market rose in value as investors heard rumours that tariffs would only be on certain countries. This bullish swing occurred between March 14th and 25th. Over the weekend, President Donald Trump indicated that the upcoming tariffs would apply to all countries, not just those with the largest trade imbalances with the US. NASDAQ - Technical Analysis In terms of technical analysis, the NASDAQ continues to obtain indications that sellers control the price action. The price opens on a bearish price gap measuring 0.30% and trades below all Moving Averages on all timeframes. The NASDAQ also trades below the VWAP and almost 100% of the most influential components (stocks) are declining in value.     The next significant support level is at $18,313, and the resistance level stands at $20,367.95. Key Takeaway Points: NASDAQ falls to its lowest since September 2024 as the US confirms tariffs on all countries, adding to inflation concerns. Core PCE inflation rises to 0.4% MoM and 2.8% YoY, increasing the likelihood of prolonged high interest rates. Investor risk appetite drops as VIX jumps 6%, gold gains 1.3%, and safe-haven assets outperform. NASDAQ shows strong bearish momentum, trading below key technical levels with support at $18,313 and resistance at $20,367.95. 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.
    • PM Philip Morris stock, top of range breakout at https://stockconsultant.com/?PM
    • EXC Exelon stock, nice range breakout at https://stockconsultant.com/?EXC
    • UTZ Utz Brands stock, watch for a bottom breakout at https://stockconsultant.com/?UTZ
×
×
  • Create New...

Important Information

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