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: 22nd November 2024.   BTC flirts with $100K, Stocks higher, Eurozone PMI signals recession risk.   Asia & European Sessions:   Geopolitical risks are back in the spotlight on fears of escalation in the Ukraine-Russia after Russia reportedly used a new ICBM to retaliate against Ukraine’s use of US and UK made missiles to attack inside Russia. The markets continue to assess the election results as President-elect Trump fills in his cabinet choices, with the key Treasury Secretary spot still open. The Fed’s rate path continues to be debated with a -25 bp December cut seen as 50-50. Earnings season is coming to an end after mixed reports, though AI remains a major driver. Profit taking and rebalancing into year-end are adding to gyrations too. Wall Street rallied, led by the Dow’s 1.06% broadbased pop. The S&P500 advanced 0.53% and the NASDAQ inched up 0.03%. Asian stocks rose after  Nvidia’s rally. Nikkei added 1% to 38,415.32 after the Tokyo inflation data slowed to 2.3% in October from 2.5% in the prior month, reaching its lowest level since January. The rally was also supported by chip-related stocks tracked Nvidia. Overnight-indexed swaps indicate that it’s certain the Reserve Bank of New Zealand will cut its policy rate by 50 basis points on Nov. 27, with a 22% chance of a 75 basis points reduction. European stocks futures climbed even though German Q3 GDP growth revised down to 0.1% q/q from the 0.2% q/q reported initially. Cryptocurrency market has gained approximately $1 trillion since Trump’s victory in the Nov. 5 election. Recent announcement for the SEC boosted cryptos. Chair Gary Gensler will step down on January 20, the day Trump is set to be inaugurated. Gensler has pushed for more protections for crypto investors. MicroStrategy Inc.’s plans to accelerate purchases of the token, and the debut of options on US Bitcoin ETFs also support this rally. Trump’s transition team has begun discussions on the possibility of creating a new White House position focused on digital asset policy.     Financial Markets Performance: The US Dollar recovered overnight and closed at 107.00. Bitcoin currently at 99,300,  flirting with a run toward the 100,000 level. The EURUSD drifts below 1.05, the GBPUSD dips to June’s bottom at 1.2570, while USDJPY rebounded to 154.94. The AUDNZD spiked to 2-year highs amid speculation the RBNZ will cut the official cash rate by more than 50 bps next week. Oil surged 2.12% to $70.46. Gold spiked to 2,697 after escalation alerts between Russia and Ukraine. Heightened geopolitical tensions drove investors toward safe-haven assets. Gold has surged by 30% this year. Haven demand balanced out the pressure from a strong USD following mixed US labor data. Silver rose 0.9% to 31.38, while palladium increased by 0.9% to 1,040.85 per ounce. Platinum remained 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. Andria Pichidi 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.
    • A few trending stocks at support BAM MNKD RBBN at https://stockconsultant.com/?MNKD
    • BMBL Bumble stock watch, pull back to 7.94 support area with high trade quality at https://stockconsultant.com/?BMBL
    • LUMN Lumen Technologies stock watch, pull back to 7.43 support area with bullish indicators at https://stockconsultant.com/?LUMN
×
×
  • Create New...

Important Information

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