Regime Sniffing: The HFT Playbook
<p>When something smells foul in markets, you better believe that HFT already knows about it.</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:630/1*2nqmr5EH4T5KYkFiXMXXKw.png" style="height:430px; width:630px" /></p>
<p>High-frequency trading (HFT) algorithms are mainly known for their high speeds and positive effect of increasing liquidity in markets. While this is a proper recognition, very little is known about the intelligence used in these algorithms that allow them to survive for extended periods of time and not go bankrupt. As we’ll see, the story is much deeper than just buying at the bid and selling at the ask.</p>
<p>But before understanding the nuances of these algorithms, let’s take a look at how they get their essential nutrients (data):</p>
<h2>Data — Not Your Typical yFinance</h2>
<p>The bulk of HFT activities are related to market making, so instead of a quant fund that may use historical price data , HFT mainly uses real-time <strong>messaging </strong>data. The main provider of this data is CME’s Market Data Platfrom (MDP) 3.0.</p>
<p>This initial stage of the data represents the most raw form, just take a look:</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:700/1*VjRVBye0jQo3fO4MulT4jg.png" style="height:470px; width:700px" /></p>
<p>Source: <a href="https://www.cmegroup.com/confluence/display/EPICSANDBOX/MDP+3.0+-+Trade+Summary+Order+Level+Detail" rel="noopener ugc nofollow" target="_blank">CME Client Systems Wiki</a></p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:608/1*1cKRRhlQoiNsZJRdDHtxew.png" style="height:358px; width:608px" /></p>
<p>This is a visual representation of what CME returns for 1 customer trade. The FIX message represents how the order was processed by the exchange (we briefly touched on this <a href="https://medium.com/p/6495bf18e676" rel="noopener">here</a>), then the trade Trade Summary adds details like the aggressiveness of the trade (aggressive buy = buy over the lowest ask).</p>
<p><a href="https://quant-galore.medium.com/regime-sniffing-the-hft-playbook-d2c60e504e70">Click Here</a></p>