NexusFi: Find Your Edge


Home Menu

 





Resting bids above market or offers below market?


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one tpredictor with 8 posts (1 thanks)
    2. looks_two RandBots with 2 posts (1 thanks)
    3. looks_3 Fat Tails with 1 posts (3 thanks)
    4. looks_4 addchild with 1 posts (0 thanks)
      Best Posters
    1. looks_one Fat Tails with 3 thanks per post
    2. looks_two HFF Trader with 1 thanks per post
    3. looks_3 RandBots with 0.5 thanks per post
    4. looks_4 tpredictor with 0.1 thanks per post
    1. trending_up 8,512 views
    2. thumb_up 8 thanks given
    3. group 14 followers
    1. forum 18 posts
    2. attach_file 2 attachments




 
Search this Thread

Resting bids above market or offers below market?

  #11 (permalink)
 
RandBots's Avatar
 RandBots 
Lima, Peru
 
Experience: Advanced
Platform: Propietary
Broker: IQ
Trading: Options
Posts: 14 since Jul 2017
Thanks Given: 37
Thanks Received: 9

Maybe this can help

At the CME, the GCC should help you (GLOBAL COMMAND CENTER)

TEXT

https://www.cmegroup.com/confluence/display/EPICSANDBOX/Matching+Algorithms

VIDEOS

Matching Algorithm Overview - [AUTOLINK]CME[/AUTOLINK] Group



Others:

Clearing Operations and Deliveries

Follow me on Twitter Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Increase in trading performance by 75%
The Elite Circle
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
REcommedations for programming help
Sierra Chart
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #12 (permalink)
 tpredictor 
North Carolina
 
Experience: Beginner
Platform: NinjaTrader, Tradestation
Trading: es
Posts: 644 since Nov 2011

@RandBots Thanks but I already studied that. My question is regarding the precise mechanics which are not answered there. I agree it is more theoretical and I suspect the process I hypothesized is the correct order. The question is whether there is a peg order type or something that gets priority. We're not talking about matching as much as we're talking about what happens a level in the depth clears.

There are a few possibilities.

1) A market order is able to hit the next level before the limits are able to replenish the depth. In this case, stop limits get priority. In this case we can expect HFT traders are using stop limits to enter trades. In this case, there is a hidden queue order that matter.

2) More likely, a market order cannot hit the next level before the HFT replenish the depth. A level clears but as soon as that happen then the HFT will refill the book.

But I agree, it is not entirely clear. The question is now basically in a race between stop limits and a limit order submitted by the HFT trader-- who wins.

Started this thread Reply With Quote
  #13 (permalink)
 
RandBots's Avatar
 RandBots 
Lima, Peru
 
Experience: Advanced
Platform: Propietary
Broker: IQ
Trading: Options
Posts: 14 since Jul 2017
Thanks Given: 37
Thanks Received: 9



tpredictor View Post
@RandBots Thanks but I already studied that. My question is regarding the precise mechanics which are not answered there. I agree it is more theoretical and I suspect the process I hypothesized is the correct order. The question is whether there is a peg order type or something that gets priority. We're not talking about matching as much as we're talking about what happens a level in the depth clears.

There are a few possibilities.

1) A market order is able to hit the next level before the limits are able to replenish the depth. In this case, stop limits get priority. In this case we can expect HFT traders are using stop limits to enter trades. In this case, there is a hidden queue order that matter.

2) More likely, a market order cannot hit the next level before the HFT replenish the depth. A level clears but as soon as that happen then the HFT will refill the book.

But I agree, it is not entirely clear. The question is now basically in a race between stop limits and a limit order submitted by the HFT trader-- who wins.

@tpredictor



Why are you giving priority to a market order before other types of orders. The simplest way to obtain priority is based on ETA & CTA (Estimated & Confirmed Time of Arrival)

Check the patent Assignee
https://www.google.com/patents/US20160035027

Follow me on Twitter Reply With Quote
  #14 (permalink)
 tpredictor 
North Carolina
 
Experience: Beginner
Platform: NinjaTrader, Tradestation
Trading: es
Posts: 644 since Nov 2011

Sorry randbots. I'm not giving priority to a market order. Based on everything everyone has said, you can't submit a limit order on a level offside from the market. We also know that (for the most part) that the first limit orders submitted will obtain the best position.

We know that if an HFT system is at the exchange and submits the limit orders then they are likely to get top of book. However, what we don't know is how the queue for the stop limit orders are processed for the limit order side.

There are two possibilities: the offer clears and replenishes before an order can hit the next level in the book or a market order hits the next level in the book first. If that's the case there is a race between the stop limits and the HFT. The architecture of the system determines what happens. It is somewhat obvious nobody here knows the answer or would have provided it already.

It probably can also vary. What probably happens because I have been able to watch other markets like BTC extremely closely is the following...

1. The offer is cleared and liquidity is pulled above the market.
2. The spread will widen.
3. There is a race to narrow the spread. The less aggressive HFT will fill the first levels and then more aggressive HFT detect this will jump the price to fill above them.
4. Finally the spread narrows.

If I submit enough orders to take out more then a single level on the book then it is logical to assume it will trigger the stop limits before the HFT can respond. On the other hand, if I clear a level normally then the HFT will probably be able to fill before the stop limits.

Started this thread Reply With Quote
  #15 (permalink)
 choke35 
Germany
 
Experience: Intermediate
Platform: Other
Trading: ES, YM, 6E
Posts: 2,668 since Feb 2013
Thanks Given: 5,101
Thanks Received: 6,558


tpredictor View Post
If I submit enough orders to take out more then a single level on the book then it is logical to assume it will trigger the stop limits before the HFT can respond. On the other hand, if I clear a level normally then the HFT will probably be able to fill before the stop limits.

Due to e.g. iceberg orders (which also can be cancelled) we can be pretty sure that an HFT will be able to
fill before the stop limits - even if you clear the first (visible) amount. (Keyword: Display quantity)


Source: https://www.cmegroup.com/globex/files/GlobexRefGd.pdf

Nevertheless: With the longstanding fights of the algo wars in mind, I wish you good luck and steady nerves
for your endeavor of achieving disclosure of matchmaking.

Reply With Quote
Thanked by:
  #16 (permalink)
 tpredictor 
North Carolina
 
Experience: Beginner
Platform: NinjaTrader, Tradestation
Trading: es
Posts: 644 since Nov 2011

What I suspect is that the CME keeps all the order machines at the same distance so your order will arrive randomly with a whole batch of other orders. I suspect also that if you just start pinging in advance to fill a level that you would get throttled or something unless you had market maker status. But, if you think about it, if the depth has dropped to say 10 orders then you could submit your post quote in advance.

I have to admit this is more academic because it is unlikely that one could do much with this without specialized hardware at the exchange.

Started this thread Reply With Quote
  #17 (permalink)
 Captain135 
Bay Area, CA
 
Experience: Intermediate
Platform: TradeStation, TOS
Trading: Futures, Equities, Options on Futures
Posts: 48 since Feb 2017
Thanks Given: 53
Thanks Received: 30

Limit orders on the exchange will be FIFO for a given price. So if you want to be at the front of the queue, submit a limit order at soonest opportunity. If for some reason you want it to sit outside the exchange until certain parameters are met, write an algo on the platform of your choice to submit the order on your conditions...but your order will go to the back of the queue.

Sent using the NexusFi mobile app

Reply With Quote
  #18 (permalink)
 iantg 
charlotte nc
 
Experience: Advanced
Platform: My Own System
Broker: Optimus
Trading: Emini (ES, YM, NQ, ect.)
Posts: 408 since Jan 2015
Thanks Given: 90
Thanks Received: 1,148

Hi tpredictor,

I like where you are going with this... I think you are correct and I wanted to verify that I am understanding this the way you are presenting it.

If a new level is created above the current level, then we know where the resting ask volumes come from because there is already several levels of resting orders that can be observed on various DOMS, but you are bringing up the topic of the bid volumes. Where do they come from since you can't submit limit orders (Buy Bid above the market, and Sell Ask below the market). But these new levels get filled almost instantly once the level is created with these types of orders. So where do they come from?

One of the ideas that you mentioned was stop limit orders that are sent as conditional market orders and not triggered until the new level gets created. Once the new level is created and the threshold price is triggered, the stop limit orders become a regular limit order and work accordingly from there.

Now from my research (Spreadsheet enclosed) I suspect the stop limit orders being first, is the most likely way this new level is being filled. The reason I think this is that I see in the data when a new level is created up for example, the side that get's worked first is usually the bids. By contrast if a new level is created down, then the side that gets worked first is the asks. The data I am enclosing comes from NinjaTrader / ES and I ran the data using the OnMarketData event handler to try to get every change as granular as possible. I sequenced the events of every level between Last = bid and Last = Ask to get a sense of how it moves. I think I am likely missing some of the granularity though because I never see volume drop close to 0 on either side, but this is as granular as NT / Kinetic had it. But the pattern I see is that on new levels, the side that gets served first was typically (90% or more of the time) the side that was not resting on the DOM but came into the level seemingly at the last second. So if this side is being given priority and served first, then this is likely due to using a different order type such as a stop limit order which gets executed first.

Maybe I am off on how to interpret this, but I am throwing it out there. It looks like the data I have aligns with your theory about stop limits going first though. Have you gained any more insight into these mechanics since this original post?

Ian



tpredictor View Post
I still have not heard the precise mechanics that matter. I'm sure this can vary from product to product and exchange to exchange but what we're trying to get at is precisely how a new level is filled.

There are a few possibilities

1. The exchange processes a resting dark limit order pool, the stop limits first in fifo order
2. Next the exchange processes any submitted orders, i.e. low latency


If (1) is the case, do we know if the HFT are stacking the "dark" book as well with orders? I think a stop limit will still be slower because remember after the depth is cleared then the market doesn't need to trade at a higher level before the depth is filled. So, I'm thinking there is truly not a queue for latent side buy/sell capacity. But, if there were then notice it would level the playing field.

Here is what I think happens in something like the es, the market is moving up.

1. The offers clear. The spread widens by 1 tick but we do not see this.
2. HFT traders will submit new limit orders to fill the book in microseconds perhaps using peg orders ? or just using HFT software.
3. A trade triggers on the ask side.
4. Stop limits are processed in FIFO order after the HFT traders have filled the book.

With something BTC/USD here is what happens:

1. The offer clears. The spread widens to multiple cents usually
2. Traders will start to fill the levels closest to the bid.
3. Other more aggressive HFT traders will see the new fills and start to fill levels in front of them.
4. The spread will narrow to the minimum spread of 1 cent in most cases within moments.


Attached Files
Elite Membership required to download: NanoStructure Research.xlsx
Visit my NexusFi Trade Journal Reply With Quote
  #19 (permalink)
 tpredictor 
North Carolina
 
Experience: Beginner
Platform: NinjaTrader, Tradestation
Trading: es
Posts: 644 since Nov 2011

Thanks--yep you understand the question. I found there is a special "peg" order type for market makers too (correction, not sure if this is a CME order type or not cannot find it now). There is risk for being top in queue too. It is not just reward because you can be hit by aggressive market orders. However, the stop limit makes some sense as to the first orders that fill esp if these are traders who want to exit and thus want to get hit.

I think the question is who/if anyone gets priority when the new level is formed. We can imagine there might be (1) stop limits held by exchange and peg orders and (2) orders submitted by co-located HFT boxes.

One of my questions was who gets the priority. I guess you could ask the exchange. Please let us know what you find out. I suspect there is a lot more happening then we can see.

On second thought, it is possible the bid is filled by a large trader using market-limit order. Imagine a case where 50 are offered and a trader wants to buy 100 but not risk slippage, they submit a market-limit order and the first 50 are bought at market with the remaining 50 now resting as the new bid.

https://www.cmegroup.com/confluence/display/EPICSANDBOX/Order+Types+for+Futures+and+Options#OrderTypesforFuturesandOptions-Market-LimitOrder



iantg View Post
Hi tpredictor,

I like where you are going with this... I think you are correct and I wanted to verify that I am understanding this the way you are presenting it.

If a new level is created above the current level, then we know where the resting ask volumes come from because there is already several levels of resting orders that can be observed on various DOMS, but you are bringing up the topic of the bid volumes. Where do they come from since you can't submit limit orders (Buy Bid above the market, and Sell Ask below the market). But these new levels get filled almost instantly once the level is created with these types of orders. So where do they come from?

One of the ideas that you mentioned was stop limit orders that are sent as conditional market orders and not triggered until the new level gets created. Once the new level is created and the threshold price is triggered, the stop limit orders become a regular limit order and work accordingly from there.

Now from my research (Spreadsheet enclosed) I suspect the stop limit orders being first, is the most likely way this new level is being filled. The reason I think this is that I see in the data when a new level is created up for example, the side that get's worked first is usually the bids. By contrast if a new level is created down, then the side that gets worked first is the asks. The data I am enclosing comes from NinjaTrader / ES and I ran the data using the OnMarketData event handler to try to get every change as granular as possible. I sequenced the events of every level between Last = bid and Last = Ask to get a sense of how it moves. I think I am likely missing some of the granularity though because I never see volume drop close to 0 on either side, but this is as granular as NT / Kinetic had it. But the pattern I see is that on new levels, the side that gets served first was typically (90% or more of the time) the side that was not resting on the DOM but came into the level seemingly at the last second. So if this side is being given priority and served first, then this is likely due to using a different order type such as a stop limit order which gets executed first.

Maybe I am off on how to interpret this, but I am throwing it out there. It looks like the data I have aligns with your theory about stop limits going first though. Have you gained any more insight into these mechanics since this original post?

Ian


Started this thread Reply With Quote




Last Updated on January 15, 2018


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts