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: 24th April 2024. Market News – Stock markets strengthen as tech rally widens. Economic Indicators & Central Banks:   The bulls are back in town for now. Wall Street climbed, led by tech and especially the Magnificent 7 — all cohorts rallied, even Tesla which broke a 7-session losing streak even as its earnings news was awaited. US: The weaker than expected PMI data from S&P Global was the excuse needed to underpin a short covering rally in Treasuries after the big selloff in April. Record US Auction boosted demand! A well bid 2-year sale also added to the gains in Treasuries, while signs of future price pressures saw the long end underperform. Demand petered out into the finish, however, especially with the surge on Wall Street, and yields edged off their lows. Australia: The hot inflation print pointed to sticky local price pressures and reinforced the case for the RBA to hold rates at a 12-year high. The CPI rose to 3.6% y/y VS 3.5% estimate, while core CPI rose 4%, also higher than forecast and well above the RBA’s 2-3% target. Japan: Strong warning for intervention by officials. The BoJ is widely expected on Friday to leave policy settings & bond purchase amounts unchanged. NEW YORK (AP) — The Biden administration has finalized a new rule set to make millions more salaried workers eligible for overtime pay in the US. Financial Markets Performance:   The USDIndex slumped, falling to 105.39 largely on profit taking and as haven demand faded. USDJPY flirts with 155 after FM Suzuki issued the strongest warning to date on the chance of intervention, saying last week’s meeting with US and South Korean counterparts had laid the groundwork for Tokyo to act against excessive Yen moves. AUDUSD up for a 3rd day in a row, to 0.6528 amid a broadly weaker USD but also a strong Aussie post a hot inflation print. USOIL steady at $83 ahead of sanctions against Iran and shrinking US Inventories. Gold closed slightly lower at $2332, but off yesterday’s $2289 nadir. Market Trends:   The NASDAQ increased 1.59%, with the S&P500 up 1.20%, while the Dow rallied 0.69%. Dissipating geopolitical risks also supported. EU stock futures are posting gains, after a largely stronger close across Asia. Nikkei and Hang Seng gained more than 2% amid a strengthening tech rally. Australian shares underperformed. Tesla Inc. (+13.33% after hours) spiked after its statement for the launch of more affordable vehicles despite a sales miss. The stock halted a 7-day plunge, climbing alongside other members of the group. Microsoft Corp., Meta Platforms Inc. and Alphabet Inc. are also due to report earnings this week. Profits for the “Magnificent Seven” group — which also includes Apple Inc., Amazon.com Inc. and Nvidia Corp. — are forecast to rise about 40% in the Q1 a year ago, according to Bloomberg Intelligence data. The group of tech megacaps is crucial to the S&P 500 since the companies carry the heaviest weightings in the benchmark. Visa revenue advanced by 17% as Consumer Card spending increased. 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 on how markets work. Click HERE to register for FREE! Click HERE to READ more Market news. Andria Pichidi Market Analyst 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 FX and CFDs 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.
    • $TDW Tidewater stock, sweet bounce off the 88.65 support area, https://stockconsultant.com/?TDW
    • $SKYW Skywest stock another great day on the breakout, https://stockconsultant.com/?SKYW
    • $CVNA Carvana stock great day off 71.27 support area, from Stocks To Watch, https://stockconsultant.com/?CVNA
    • $VNOM Viper Energy stock, strong trend back to 39.02 support area, https://stockconsultant.com/?VNOM
×
×
  • Create New...

Important Information

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