<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hack the market &#187; execution quality</title>
	<atom:link href="http://www.puppetmastertrading.com/blog/index.php/category/execution-quality/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.puppetmastertrading.com/blog</link>
	<description>Algorithmic trading experiences</description>
	<lastBuildDate>Wed, 21 Apr 2010 23:11:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>dingbat kabuki</title>
		<link>http://www.puppetmastertrading.com/blog/2010/01/28/dingbat-kabuki/</link>
		<comments>http://www.puppetmastertrading.com/blog/2010/01/28/dingbat-kabuki/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 13:08:01 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[execution quality]]></category>
		<category><![CDATA[market structure]]></category>
		<category><![CDATA[our managed markets]]></category>
		<category><![CDATA[post-trade analysis]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=973</guid>
		<description><![CDATA[ Like many Americans, last night I dutifully switched on my TV at 9pm to see the State of our Union.  Always a spectacle, America&#8217;s leadership have upped the surreality ante with the bizarre backdrop of Biden lip-synching amiably in the background whilst Madame Speaker sat with all the calm collection of a fish on [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="/images/kabuki.gif" alt="" width="200" height="304" /> Like many Americans, last night I dutifully switched on my TV at 9pm to see the State of our Union.  Always a spectacle, America&#8217;s leadership have upped the surreality ante with the bizarre backdrop of Biden lip-synching amiably in the background whilst Madame Speaker sat with all the calm collection of a fish on a hook and never seemed fully in control of herself or her eyebrows.  The spectacle of would&#8217;ve-been king McCain sitting there and glowering openly at the lecturn as his confederates sat in stony silence while their &#8216;opposition&#8217; applauded like drunken high schoolers at a home coming at every mundane utterance proved a bit much and I had turned off the glowing beacon of groupthink by 9:25 and gone to investigate something on my computer.  I was surprised and delighted to see that it was still available: dingbatkabuki.com</p>
<p><strong>Dingbat Kabuki and other <em>structural</em> market hacks</strong></p>
<p>When I first started puppetmaster trading, one of my dearest friends, a Yale-educated economist and professor of same, asked me an important question.  He asked:</p>
<blockquote><p>In the markets, there are always &#8216;insiders&#8217; who have the ability to trade on knowledge that you <em>can&#8217;t</em> know or with an advantage that you <em>can&#8217;t</em> have.  How are you going to compete with these players?</p></blockquote>
<p>I provided a variety of answers, but at the time my conception of the universe of people with both inside knowledge and the ability to trade on it was limited to cases like that of Mr Rajaratnam.  I believed that cases like these were constrained by clear laws that were duly surveilled and prosecuted by the appropriate authorities.  The problem seemed like a very real one, but constrained in size and not essential to my enterprise.  I still hope that my belief of the time was true, but since then I&#8217;ve certainly understood that there&#8217;s more than one way to hack the market.</p>
<p>For some, a market hack might consist of some kind of simple (or complex) algorithm(s) applied to some set of markets.  But this really isn&#8217;t a hack so much as it&#8217;s a trading strategy &#8211; like many that have long existed &#8211; only that it&#8217;s now implemented in software where originally it would have been implemented in wetware.  While implementing trading strategies in software does open up new vistas in terms of the kinds of strategies that you can look to implement &#8211; computers are faster than people by a noteworthy amount in many tasks &#8211; but, for the most part, you&#8217;re really still just trading and when you take on positions, you are still bearing risk.  You might be &#8216;hacking&#8217; but it&#8217;s really not a market hack as I&#8217;ve come to appreciate.</p>
<p><span id="more-973"></span></p>
<p><strong>hack the market structure </strong></p>
<p>Another area where my perspective has changed substantively since those halcyon days of &#8216;05 is my appreciation for market (micro) structure.  In futures, market structure is pretty plain as most contracts are effectively monopolies run by their listing exchanges.  There are a few cases of instruments which are tradable across markets, but a rich market microstructure is just not a core identifying characteristic for futures like it is in the fragmented and incredibly dynamic and quickly developing world of equities.  So, while there are some dozens of futures exchanges scattered about the globe, as a futures trader, routing algorithms just don&#8217;t enter the picture except in limited and relatively simple cases.</p>
<p>If I have a view on or a hedging need for interest rates that I see effectively expressed through futures, then I go to e.g. the cme and I don&#8217;t need to worry my pretty head about getting a great execution because the exchange is in one place and it&#8217;s all lit up and filled to the brim with liquidity.  Easy peasy.  But if I have a view on, say, General Electric that I want to express with an equity position and I&#8217;m trading in sufficient size or sufficiently close to the market that I really want to ensure best execution, then I might find the need to look around some dozens of lit exchanges and maybe even ping about in a dark pool or twelve.  This is decidedly not easy peasy and is one of the reasons wall st has an insatiable hunger for propeller heads with advanced degrees in seemingly unrelated fields.</p>
<p>Last summer&#8217;s brouhaha about &#8216;flash&#8217; orders first illuminated for many a rich ground for genuine market hacks: the incredibly dynamic terrain of equity market micro structure which changes almost daily with the emergence of new exchanges, ATSes, order types, rebates and pricing structures and all of the many other critical minutia that differentiate the many venues.  Some of these undoubtedly provide meaningful and important services; contrary to populist inclination, dark pools are largely a defense <em>against</em> frothy HF trading strategies.</p>
<p>But the concern (if perhaps not all of the attention) is <a title="Rosenblatt's view on HF Trading" href="http://hft.thomsonreuters.com/files/2009/11/Rosenblatt-HFTexcerpt4Reuters2.pdf" target="_blank">merited</a>.   Equity microstructural &#8216;rules&#8217; change so quickly that even independent and upright regulators could hardly be expected to keep up.  This is clearly fertile ground for genuine &#8211; if perhaps fleeting &#8211; market hacks.</p>
<p><strong><a title="Wiki: Steganography" href="http://en.wikipedia.org/wiki/Steganography" target="_blank">steganography</a> and hacking the market<br />
</strong></p>
<p>What characteristics make equity market structure a fertile ground for these kinds of genuine market hacks which I&#8217;m describing?  I think the main answer is to be found in the ancient art of steganography &#8211; hiding in plain site.  Everything about equity market microstructure is public.  All of the rules for each of the venues are available to the people who might make use of them.  Unraveling what they <em>imply</em> about where you should be executing for any given order is the tricky bit which is hardly revealed through a simple reading of all of the various rules.</p>
<p>Where else do we see this phenomenon?  The US Tax code comes to mind (sort of like the iPhone: &#8220;there&#8217;s a loophole for that&#8221;).  The 2,000 page health care bill comes to mind.  Everybody seems to care about health care, but who&#8217;s actually read that bill?  Who could?</p>
<p>Totally public yet it may as well be encrypted.  Steganography.</p>
<p>Elizabeth Warren has also made this observation in the context of contracts made between banks and their retail clientele.  Noted scholar Scott Adams dubbed it a &#8216;<a title="Wiki: Confusopoly" href="http://en.wikipedia.org/wiki/The_Dilbert_Future" target="_blank">confusopoly</a>.&#8217;</p>
<blockquote><p><em>a group of companies with similar products who intentionally confuse customers instead of competing on price</em></p></blockquote>
<p>So, could people hack the tax code?  <a title="Hanky panky" href="http://www.puppetmastertrading.com/blog/2009/01/08/and-this-little-piggy-hollowed-out-our-nation/" target="_blank">Hank</a> and I think so.  So do my friends in the <a title="Play by the rules" href="http://www.puppetmastertrading.com/blog/2009/04/13/playing-by-the-rules/" target="_blank">lobbying business</a>.  How about all those recently converted bank holding companies &#8211; hack much?  In my last post we read one insider&#8217;s view that Madoff had effectively hacked the SEC&#8230; perhaps regulatory organizations themselves are also hackable instruments!  How about that health care bill?  &#8230;</p>
<p><strong>misdirecting the hack</strong></p>
<p>A lot of attention has focused recently on exchange traded markets and people are up in arms about HF traders and proprietary trading.  I&#8217;ve argued <a title="it's not about microstructure" href="http://www.puppetmastertrading.com/blog/2009/08/07/its-not-about-microstructure/" target="_blank">before</a> that this appears to be a great ploy to take attention away from the real issues at hand; in the worst case, HFT improprieties might account for no more than 1% of the money <em>disappeared</em> in the last few years as part of the so-called &#8216;credit crisis&#8217;.  It&#8217;s easy for non-finance-professionals not to understand that the big bad wolves of the credit crisis essentially all happened off market in essentially unregulated multi-trillion dollar otc markets of <a title="perfect crime" href="http://www.puppetmastertrading.com/blog/2009/11/02/perfect-crime/" target="_blank">ingeniously engineered</a> structured products. These are the <em>real</em> market hackers.  Exchange traded instruments had effectively nothing to do with our current circumstances but remain a convenient scapegoat.</p>
<p>Some argue persuasively that there are fundamental, <a title="Murray Rothbard: The Case Against the Fed" href="http://mises.org/books/fed.pdf" target="_blank">structural market hacks</a> at the very foundations of our financial system.  I wouldn&#8217;t know.  But it is the kind of thing one might think about while watching the highly stylized performance of our leaders last night.</p>
<p><strong>dingbat kabuki and the transparent market hack</strong></p>
<p>To my knowledge, Cal&#8217;s (go bears!) Professor Brad DeLong coined the term &#8216;dingbat kabuki&#8217; back in 2005 in <a title="the original" href="http://delong.typepad.com/sdj/2005/10/dingbat_kabuki_.html" target="_blank">shrill response</a> to a Washington Post article.  He reprised the term this week in response to the latest bit of <a title="Andrew Mellon's rotting corpse" href="http://delong.typepad.com/sdj/2010/01/barack-herbert-hoover-obama.html" target="_blank">macroeconomic genius</a> out of washington.  What an inspired phrase.  Yesterday at 2:30 and last night at 9pm the markets voiced their applause and cheered on the performance.</p>
<p>Indeed, it is masterful.</p>
<p>&#8211;</p>
<p>A technical note about this post.  While writing it, I seem to have accidentally published it at some point and then realized the error and &#8216;unpublished&#8217; it.  I apologize if this had any untoward effects on you or your RSS reader.</p>
<p><strong><br />
</strong></p>
<p style="text-align: center;"><img class="aligncenter" src="/images/musashi.jpg" alt="" width="677" height="325" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2010/01/28/dingbat-kabuki/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>more on moos</title>
		<link>http://www.puppetmastertrading.com/blog/2008/10/02/more-on-moos/</link>
		<comments>http://www.puppetmastertrading.com/blog/2008/10/02/more-on-moos/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 17:42:30 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[execution quality]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog-test/?p=93</guid>
		<description><![CDATA[
A reader, Chris P, (following up on this post) recently inquired by email about the specific rules on Market-On-Open orders.  In particular, he was interested in the cut-off times for MOO orders.  Market-On-Close orders have a cut-off time of 3:40 and 3:50 on the NYSE and Nasdaq, respectively.  That is, MOC orders [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://puppetmastertrading.com/images/moo.jpg" /></p>
<p>A reader, Chris P, (following up on <a title="Execution quality at the open &#038; close" target="_blank" href="http://puppetmastertrading.com/blog/2008/08/01/execution-quality-at-the-open-close/">this post</a>) recently inquired by email about the specific rules on Market-On-Open orders.  In particular, he was interested in the cut-off times for MOO orders.  Market-On-Close orders have a cut-off time of 3:40 and 3:50 on the NYSE and Nasdaq, respectively.  That is, MOC orders can&#8217;t be entered, modified or cancelled after the cut-off.</p>
<p>He pointed me to two documents, one excellent and concise <a title="Nasdaq guide to open/close" target="_blank" href="http://www.nasdaqtrader.com/content/TechnicalSupport/UserGuides/TradingProducts/crosses/openclosequickguide.pdf">guide</a><a title="Nasdaq guide to open/close" target="_blank" href="http://www.nasdaqtrader.com/content/TechnicalSupport/UserGuides/TradingProducts/crosses/openclosequickguide.pdf"> to the open and close</a> from the Nasdaq and another relatively useless piece of documentation from the NYSE.  The Nasdaq doc indicates that MOO orders must be entered by 9:28am and my own informal experiment confirms this.  MOO orders bound for the Nasdaq after 9:28 will be rejected as invalid orders.</p>
<p>The NYSE doc was less precise (didn&#8217;t specify any time) and I was able to enter a MOO order after 9:28 which was filled, while orders after the 9:30 open were rejected.Â  If any reader has more precise information or some experiences to share on the topic, kindly use the comments to do so.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2008/10/02/more-on-moos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>execution quality at the open &amp; close</title>
		<link>http://www.puppetmastertrading.com/blog/2008/08/01/execution-quality-at-the-open-close/</link>
		<comments>http://www.puppetmastertrading.com/blog/2008/08/01/execution-quality-at-the-open-close/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 15:50:35 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[back-testing]]></category>
		<category><![CDATA[execution quality]]></category>
		<category><![CDATA[performance analysis]]></category>
		<category><![CDATA[post-trade analysis]]></category>
		<category><![CDATA[strategy development]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog-test/?p=77</guid>
		<description><![CDATA[
I&#8217;ve been trading an increasing amount at the open and close of the equity markets using market-on-open (MOO) and market-on-close (MOC) order types and have found that the quality of executions varies enormously between the two types and have spent a bit of time analyzing the differences which I share below.
The quick scoop is that [...]]]></description>
			<content:encoded><![CDATA[<p><img align="middle" title="Execution Quality" alt="Execution Quality" src="http://puppetmastertrading.com/images/mouseExecution.jpg" /></p>
<p>I&#8217;ve been trading an increasing amount at the open and close of the equity markets using market-on-open (MOO) and market-on-close (MOC) order types and have found that the quality of executions varies enormously between the two types and have spent a bit of time analyzing the differences which I share below.</p>
<p>The quick scoop is that MOC orders almost invariably fill at the exchange&#8217;s published closing price, while MOOs vary very substantially from the published open price.  Below I quantify my findings in a bit greater depth.</p>
<p><span id="more-77"></span></p>
<p>I looked at 846 recent MOO and MOC equity trades made over the past two months.  Of all of these trades, only one MOC trade didn&#8217;t execute at the published close and the price I got was only off by one penny.  Across all of the trades, I received the open or close price 55% of the time.</p>
<p>The remaining 45% of the time I varied from the open by an average of +.04%  This means that I actually saw a slight price <em>improvement </em>in the average case.  That is, if I was shorting then I executed at a price above the listed open and vice-versa for longs.  I&#8217;ll take it!</p>
<p>In the below chart I plot the trades against their variance, positive or negative, from the listed open or close.</p>
<p><img align="middle" alt="Variance from listed open/close" title="Variance from listed open/close" src="http://puppetmastertrading.com/images/openCloseExecs.jpg" /></p>
<p>The biggest difference was a whopping 8.56% but at least it went in my favor.  The stdev across all of the trades was .87% so we&#8217;re not looking at too disperse a grouping.</p>
<p>This data is a bit skewed as the majority of the MOO orders are going short.  This is also a pretty limited universe of trades, so I&#8217;ll continue to look at the execution quality I&#8217;m getting on these order types and will revisit it if I see any interesting changes.</p>
<p>My interpretation is that my broker is making a best-effort to get a fair open price and they&#8217;re doing a creditable job of it.  The exchanges are doing a nearly perfect job with MOC orders.</p>
<p>What impact does this have on my strategies?  I&#8217;m not sure yet, but my first blush impression is that it might be worthwhile to try to get some price improvement over the posted open price as a means of both improving the results and extending the capacity of such strategies.  It&#8217;s a favorable result as it means that strategies which back-test well on open/close data have a pretty good chance of executing well in reality.</p>
<p>A related issue, which I&#8217;m still researching, concerns the capacity of such strategies and may be the topic of a future post&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2008/08/01/execution-quality-at-the-open-close/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>execution quality in equity markets</title>
		<link>http://www.puppetmastertrading.com/blog/2008/07/30/execution-quality-in-equity-markets/</link>
		<comments>http://www.puppetmastertrading.com/blog/2008/07/30/execution-quality-in-equity-markets/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 15:47:36 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[dereferenced]]></category>
		<category><![CDATA[execution quality]]></category>
		<category><![CDATA[performance analysis]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog-test/?p=75</guid>
		<description><![CDATA[
While doing some research on the quality and volume of executions at the open and close of US equity markets, I came across two topical research reports by Celent, a finance consultancy.  The first report is a detailed look at execution quality on nasdaq issues while the second addresses the same topic for the [...]]]></description>
			<content:encoded><![CDATA[<p><img align="middle" alt="execution quality at the nasdaq" title="execution quality at the nasdaq" src="http://puppetmastertrading.com/images/NasdaqExecutions.jpg" /></p>
<p>While doing some research on the quality and volume of executions at the open and close of US equity markets, I came across two topical research reports by <a title="Celent " target="_blank" href="http://www.celent.com/">Celent</a>, a finance consultancy.  The first report is a detailed look at execution quality on nasdaq issues while the second addresses the same topic for the nyse.  An abstract of the first report can be found <a target="_blank" title="Nasdaq execution quality" href="http://www.celent.com/PressReleases/20080723/ExecutionQualityNasdaq.asp">here</a> and of the second <a target="_blank" title="NYSE execution quality" href="http://www.celent.com/PressReleases/200806172/ExecutionQualityNYSE.asp">here</a>.  Both are interesting enough on their own, though I&#8217;ve yet to acquire the full reports.<br />
<span id="more-75"></span> <img align="middle" title="NYSE Execution Quality" alt="NYSE Execution Quality" src="http://puppetmastertrading.com/images/NYSEExecutions.jpg" /></p>
<p>Apart the story told by these two graphics, the articles highlight a few further trends. One is that execution quality is dramatically improving across the board in terms of both speed and price; since 2006, NYSE execution speeds have dropped a remarkable 92%.  At the same time, the difference in price quality across venues has diverged, such that everyone will get you filled faster and better than before, but some do so with much more consistently good prices.</p>
<p>If I can get a hold of the original reports, I&#8217;ll write a more detailed review of their contents, but for now I just include the links, the catchy speed-charts and these few high-points.  For shops dealing with smart order routing algorithms, the reports might be well worth purchasing and studying directly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2008/07/30/execution-quality-in-equity-markets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
