<?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; our managed markets</title>
	<atom:link href="http://www.puppetmastertrading.com/blog/index.php/category/managed-markets/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>&#8220;the SEC made Madoff&#8221;</title>
		<link>http://www.puppetmastertrading.com/blog/2010/01/17/the-sec-made-madoff/</link>
		<comments>http://www.puppetmastertrading.com/blog/2010/01/17/the-sec-made-madoff/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 14:32:59 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[dereferenced]]></category>
		<category><![CDATA[our managed markets]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=944</guid>
		<description><![CDATA[Bill Harts, a friend of mine who has, as they say, forgotten more about electronic trading and market structure than most will ever be burdened by, has recently taken an interest in the public letters written to the SEC in response to their requests for public comments on dark pools.  Mostly, these letters are funny [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Bill Harts &amp; Co." href="http://hartsandco.blogspot.com/" target="_blank">Bill Harts</a>, a friend of mine who has, as they say, forgotten more about electronic trading and market structure than most will ever be burdened by, has recently taken an interest in the <a title="public letters to the SEC on dark pools" href="http://hartsandco.blogspot.com/2010/01/dark-pool-letters-to-sec.html" target="_blank">public letters written to the SEC</a> in response to their requests for public comments on dark pools.  Mostly, these letters are funny and reveal people&#8217;s propensity to point shoot and aim in that untidy order.</p>
<p>But some are revealing and one in particular is <a title="Steve Wunsch letter to SEC" href="http://www.sec.gov/comments/s7-27-09/s72709-32.pdf" target="_blank">100% required reading</a> for anyone interested in electronic markets.</p>
<p>The writer introduces himself thusly:</p>
<blockquote><p>I am Steve Wunsch, the principal inventor of two SEC‐regulated stock exchanges, the Arizona Stock Exchange “AZX” (originally called Wunsch Auction Systems, Inc. “WASI”) and the ISE Stock Exchange, both of which include dark pools. In fact, both of them, like all modern stock exchanges, have both lit and dark components and, thus, have provided me with potentially useful perspective on the dark pool question and on transparency in general. I will focus heavily on the latter, for it is impossible to understand the dark pool issues raised without understanding the value of transparency or, if improperly applied, the lack thereof. The AZX experience was, I believe, particularly instructive in this regard. Its highly transparent call market structure, combined with its unique regulatory status as a “low volume exempt”exchange, enabled me to see transparency and the role of regulation in promoting it from a perspective that I don’t believe anyone else has.</p></blockquote>
<p>He deftly mixes snark and a historical perspective on regulation with an opinionated and informed view on the forces driving current equity markets&#8217; microstructure arguing that the worst issues are due to regulatory failures.  He concludes, logically enough, that the SEC should be disbanded.  Perhaps his most inflammatory bit is his claim that the &#8220;SEC made Madoff.&#8221;  For effect, the section is entitled &#8220;An American Oligarchy&#8221;:</p>
<blockquote><p>AN AMERICAN OLIGARCHY</p>
<p>It is not in the Commission’s interest to admit failures of policy, such as the ones I have described in this letter, and I have never seen it done. It was not in the Commission’s interest to admit that Bernie Madoff was the SEC’s most trusted and intimate confidante in formulating and selling transparency, electronic trading and<br />
the whole NMS concept to Wall Street, the public and Congress. His legitimate business was the epitome of the kind of transparent electronic competition that NMS’s leveling policies were trying to create, and he occupied the most favored place of all industry advisors on policy and rules as NMS was being created. In a very real and literal sense, Madoff’s legitimate business and NMS were made for each other. NMS cleared a path for the application of continuous transparency by new electronic competitors, very visibly led by Madoff, enabling him to become at one time the third largest market in the United States, even though he wasn’t officially registered as anything but a broker‐dealer.</p>
<p>Had the SEC not emasculated the rules by which the NYSE controlled its members, Madoff would never have happened. In the time before NMS, when the exchange had Rule 390 or the stronger Rule 394 before it, diverting orders away from the floor or selling them to Madoff would have been banned. But on antitrust principles, the SEC wanted to foster NYSE‐busting competition in NMS, and Madoff became its PosterBoy for such competition. In order to make way for him, the SEC opened up a variety of loopholes that allowed orders to be diverted from NYSE to Madoff and printed on regionals like Cincinnati. Rules 19c‐1, 19c‐2 and 19c‐3 were in this vein. There were perennial attempts by the NYSE to plug the loopholes and rein in the membership, but the SEC batted them all away, enabling Madoff to continually grow his business. Eventually, the NMS environment forced the NYSE to abandon Rule 394, then Rule 390 and ultimately its membership organization altogether when it demutualized. This was all very good for Madoff. And Madoff was very good for NMS, giving it industry cred far in excess of what this poorly articulated socialist leveling theory could have had without his support.</p>
<p>In spite of a 457‐page SEC investigation into Madoff and how his Ponzi scheme was missed, the most obvious reasons were not considered, namely, that Madoff played a central role in helping the Commission design and sell NMS, and that NMS made him rich long before the Ponzi scheme. Most importantly, the credibility that theCommission’s collaboration with Madoff on NMS conferred on him was the principal factor enabling him to bring in money for the Ponzi scheme. Although the investigation’s report notes his credibility in the industry, it is mentioned as if itwere just a fact of life and was already there. Not mentioned is that his superior access to the SEC and apparent influence over the Commission, both of which were implicitly proved by his ability to get rich on NMS, are the most important reasons that he had such extraordinary credibility in the industry. The truth is that the SEC made Madoff. He could not have existed as a threat to investors without the Commission’s active and dedicated support over several decades.</p></blockquote>
<p>Although, in typical blogger fashion, I&#8217;ve highlighted his spiciest claim, the rest of the letter is more technical and informative while just as entertaining.  I encourage you to read it and then engage in a thought experiment in which You are the designer of an electronic exchange and must balance the needs of a very heterogeneous set of users and stakeholders while ensuring transparency, liquidity, profitability, &#8220;fairness&#8221;, performance (he references an exchange targeting 100M executions per second) and utterly fail-safe transactional integrity&#8230;</p>
<p>I have embedded the full letter below the break&#8230;</p>
<p><span id="more-944"></span></p>
<p><object style="width: 600px; height: 475px;" classid="clsid:166b1bca-3f9c-11cf-8075-444553540000" width="600" height="475" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0"><param name="sound" value="true" /><param name="progress" value="true" /><param name="autostart" value="true" /><param name="swliveconnect" value="false" /><param name="swstretchstyle" value="meet" /><param name="swstretchhalign" value="none" /><param name="swstretchvalign" value="none" /><param name="src" value="/images/steveWunsch.pdf" /><param name="align" value="left" /><embed style="width: 600px; height: 475px;" type="application/x-director" width="600" height="475" src="/images/steveWunsch.pdf" align="left" swstretchvalign="none" swstretchhalign="none" swstretchstyle="meet" swliveconnect="false" autostart="true" progress="true" sound="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2010/01/17/the-sec-made-madoff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>peaky</title>
		<link>http://www.puppetmastertrading.com/blog/2009/12/08/peaky/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/12/08/peaky/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 14:41:51 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[dereferenced]]></category>
		<category><![CDATA[market data]]></category>
		<category><![CDATA[our managed markets]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=894</guid>
		<description><![CDATA[I came across this compelling site which uses a hardware-based ticker plant (Exegy) in a colo environment to measure peak bandwidth across scads of NA feeds and then, every minute, updates a chart like the above to capture the average messages/sec across all of them.  Pretty swank.
While the uninformed may rail against colocation rather than [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 453px"><a href="http://www.marketdatapeaks.com/"><img title="peaky" src="/images/peaky.png" alt="messages per second across all feeds" width="443" height="294" /></a><p class="wp-caption-text">messages per second across &quot;all&quot; feeds</p></div>
<p>I came across this compelling <a title="Market Data Peaks" href="http://www.marketdatapeaks.com/" target="_blank">site</a> which uses a hardware-based ticker plant (<a title="Exegy ticker plant" href="http://www.exegy.com/" target="_blank">Exegy</a>) in a colo environment to measure peak bandwidth across scads of NA feeds and then, every minute, updates a chart like the above to capture the average messages/sec across all of them.  Pretty swank.</p>
<p>While the uninformed may rail against colocation rather than focus on less intriguing issues like banana-variety corruption, they miss the basic point that colo can be done by anyone with the checkbook and the wish to do so.</p>
<div class="wp-caption alignright" style="width: 144px"><img class="   " src="/images/forrest-gump-shrimping.jpg" alt="unfair advantage?" width="134" height="134" /><p class="wp-caption-text">unfair advantage?</p></div>
<p>It&#8217;s sort of like that boat in Forrest Gump.  Forrest wanted to be a shrimper.  So he invested in a boat.  With his initial capital, hard work, perseverance and a bit of luck, Forrest made a go of it.  He might easily have not made it.  Colo is like that.  You can shrimp without a boat if you have a mask and fins, but it&#8217;s likely not a sustainable model&#8230; either way, it&#8217;s hard to see the harm in Gump&#8217;s boat.  Or colocation.</p>
<p>Hat-tip to <a title="Rodrick's Web Log !!" href="http://rodrickbrown.com/blog/" target="_blank"><em>Rodrick&#8217;s Web Log !!</em></a> for spotting the market data peaks site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/12/08/peaky/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>perfect crime</title>
		<link>http://www.puppetmastertrading.com/blog/2009/11/02/perfect-crime/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/11/02/perfect-crime/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 12:42:04 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[dereferenced]]></category>
		<category><![CDATA[options pricing]]></category>
		<category><![CDATA[our managed markets]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=754</guid>
		<description><![CDATA[or: a computational complexity model for derivatives fraud
Derivatives pricing has always been a notoriously complex, computationally expensive and potentially breathtakingly remunerative undertaking.  This is true enough for relatively vanilla, exchange-traded options, but once one goes off-market and starts applying creative financial engineering, it can get much more complicated.  Products like CDOs, CDSs, CDO^2s and their [...]]]></description>
			<content:encoded><![CDATA[<h4><span style="color: #000000;">or: a computational complexity model for derivatives fraud</span></h4>
<div class="wp-caption alignleft" style="width: 196px"><img src="/images/lemon.jpg" alt="lemon law arbitrage?" width="186" height="248" /><p class="wp-caption-text">lemon-law arbitrage?</p></div>
<p>Derivatives pricing has always been a notoriously complex, computationally expensive and potentially breathtakingly remunerative undertaking.  This is true enough for relatively vanilla, exchange-traded options, but once one goes off-market and starts applying creative financial engineering, it can get much more complicated.  Products like CDOs, CDSs, CDO^2s and their ilk have exploded in recent years creating opaque markets of trillions of notional dollars and accounting complexities we&#8217;re still only beginning to understand.</p>
<p>A recent paper, <a title="Computational Complexity and Information Asymmetry in Financial Products" href="http://www.cs.princeton.edu/~rongge/derivative.pdf" target="_blank">Computational Complexity and Information Asymmetry in Financial Products</a>, by Arora, Barak, Brunnermeier and Ge take things a step or two further as they illustrate using information theory that it may be far worse than imagined as <strong><em>totally undetectable fraud</em></strong> <em><strong>can be engineered into these products</strong></em>.  They show that fraud with these products can be undetectable in the sense that the pricing process is a <em>formally</em> <em>intractable</em> problem when the informational asymmetry inherent in the development of these products is taken into consideration. In this context, &#8220;informational asymmetry&#8221; is a polite way of saying &#8220;fraud.&#8221;</p>
<p>The authors, from the Department of Computer Science and Center for Computational Intractability at Princeton (man, I want one of their business cards!), demonstrate that if the designer of, say, a CDO wants to cherry-pick amongst bundled assets to maximize their own return, they can do so in a way such that it would be impossible for a buyer of the derivative to know they were being stiffed.  The problem can be so hard that if you got the NSA&#8217;s mythic clusters humming on a pricing model, they might chug away until the sun falls from the sky before they accurately price it&#8230;  Co-author Rong Ge provides a FAQ to the paper <a title="FAQ" href="http://www.cs.princeton.edu/~rongge/derivativeFAQ.html" target="_blank">here</a> and I must hat-tip Andrew Appel for his <a title="Freedom to Tinker" href="http://www.freedom-to-tinker.com/blog/appel/intractability-financial-derivatives" target="_blank">informative post</a> on the paper.</p>
<p>The &#8220;perfect crime&#8221; is a puzzle that has occupied the (criminal and otherwise) mind of many a bright and motivated soul from time immemorial.  While some may indulge towards the vulgar or base through violence or vice and others might ponder the perfect crime of passion, the cerebral Queen of Crime is surely some form of regulatory arbitrage: committing the crime for which the law has yet to be written or creatively engineering a legal loophole for a crime one has perpetrated or is about to perpetrate.  The developers of CDOs are to be lauded as it appears they have materially upped the state-of-the-art of the perfect crime.</p>
<p>hmmm&#8230; Is there a Nobel for that?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/11/02/perfect-crime/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>meritocracy, redefined</title>
		<link>http://www.puppetmastertrading.com/blog/2009/08/25/meritocracy-redefined/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/08/25/meritocracy-redefined/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 14:42:26 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[our managed markets]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=564</guid>
		<description><![CDATA[Meritocracy is a system of a government or other organization wherein appointments are made and responsibilities assigned based on demonstrated talent and ability (merit)[1], rather than by wealth (plutocracy), family connections (nepotism), class (oligarchy), friendship (cronyism), seniority (gerontocracy), popularity (democracy) or other historical determinants of social position and political power. In a meritocracy, society rewards [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 422px"><img style="margin-top: 3px; margin-bottom: 3px;" src="/images/e-merit-us.jpg" alt="eveidently did something right..." width="412" height="273" /><p class="wp-caption-text">the good news: in the US, we don&#39;t stigmatize failure...</p></div>
<blockquote><p><strong><a title="Wikipedia's definition" href="http://en.wikipedia.org/wiki/Meritocracy" target="_blank">Meritocracy</a> </strong>is a system of a government or other organization wherein appointments are made and responsibilities assigned based on demonstrated talent and ability (merit)[1], rather than by wealth (plutocracy), family connections (nepotism), class (oligarchy), friendship (cronyism), seniority (gerontocracy), popularity (democracy) or other historical determinants of social position and political power. In a meritocracy, society rewards (by wealth, position, and social status) those who show talent and competence as demonstrated by past actions or by competition.</p></blockquote>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/08/25/meritocracy-redefined/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>it&#8217;s not about microstructure</title>
		<link>http://www.puppetmastertrading.com/blog/2009/08/07/its-not-about-microstructure/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/08/07/its-not-about-microstructure/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 20:30:59 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[dereferenced]]></category>
		<category><![CDATA[our managed markets]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=490</guid>
		<description><![CDATA[Steal a little and they call you &#8220;thief&#8221;&#8230; Steal a lot and they call you &#8220;King&#8221; &#8211; Bob Dylan
I try to avoid the news during the trading day.  I never trade manually and as I&#8217;ve mentioned before, I&#8217;ve never yet had much success trading the news and none of our models presently use news feeds [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Steal a little and they call you &#8220;thief&#8221;&#8230; Steal a lot and they call you &#8220;King&#8221; &#8211; Bob Dylan</p></blockquote>
<p>I try to avoid the news during the trading day.  I never trade manually and as I&#8217;ve mentioned before, I&#8217;ve never yet had much success <a title="trading the news" href="http://www.puppetmastertrading.com/blog/2008/11/18/trading-the-news/" target="_blank">trading the news</a> and none of our models presently use news feeds for decision-making.  So I really try to avoid keeping excessively abreast of the news as it&#8217;s just a distraction from real work.</p>
<div class="wp-caption alignright" style="width: 143px"><img src="/images/hankGreenberg.jpg" alt="would-be king" width="133" height="89" /><p class="wp-caption-text">would-be king</p></div>
<p>That said, this morning I noted a pretty good jump in our pre-market p&amp;l and wanted to see what splendid news had prompted the spike.  So I scanned some headlines.</p>
<p>On Bloomberg I saw:</p>
<p><span class="newbullet">•</span><a href="http://www.bloomberg.com/apps/news?pid=20601087&amp;sid=ajR8ZIdKCXrU">U.S. Payroll Cuts Slow, Jobless Rate Unexpectedly Falls as Recession Eases </a></p>
<p><span class="newbullet">•</span><a href="http://www.bloomberg.com/apps/news?pid=20601087&amp;sid=atloJejwn8YA">AIG Reports First Profit in Seven Quarters After Investment Losses Shrink </a></p>
<p><span class="newbullet">•</span><a href="http://www.bloomberg.com/apps/news?pid=20601087&amp;sid=agHzSEPBxTMc">Dollar Advances as U.S. Employers Cut Fewer Jobs Than Economists Estimated </a></p>
<p>Unemployment down?  AIG profitable?  Dollar rumbling to strength?  Splendid, splendid and splendid.</p>
<p>I also saw the bit about <a title="Hank Greenberg pays $15M SEC" href="http://online.wsj.com/article/SB124956529248610983.html">Hank Greenberg paying the SEC $15M</a> as he &#8220;thought it would be good to get it behind us.&#8221;  Indeed, good thinking.</p>
<p>And anyone looking at the news this week knows that regulators are likely going to put the <a title="Lions and tigers and flash orders, oh my! " href="http://online.wsj.com/article/SB124940289965505053.html" target="_blank">kabosh on flash orders</a> and that <a title="Good as Goldman" href="http://ftalphaville.ft.com/blog/2009/08/06/65666/how-good-are-goldman/" target="_blank">Goldman trades profitably</a>.  (And they <a title="Goldman: improving an incredible return distribution" href="http://www.puppetmastertrading.com/blog/2009/02/04/distributions-gone-pear-shaped/" target="_blank">improve</a>!)</p>
<div class="wp-caption alignnone" style="width: 539px"><img src="/images/goodAsGoldman.jpg" alt="now thats a fat tail..." width="529" height="286" /><p class="wp-caption-text">  my kind of fat tail</p></div>
<p><span id="more-490"></span></p>
<p>Within a few moments, I&#8217;d identified the likely causes for our spike in p&amp;l: optimism.  Thank you, optimists!</p>
<p>My immediate question was answered, but the news about Mr Greenberg stuck with me for a moment.  After all, one of the positions we made some money on this morning was AIG, a firm perhaps as central to our current financial crisis as any could possibly be.  A *personal* $15M fine over accounting um irregularities.  Ouch, that&#8217;s gotta hurt.  Could you imagine paying a $15M fine?  &#8220;Without admitting wrong-doing.&#8221;  Remarkable.  I&#8217;d own-up to a fair amount of wrong-doing if it meant saving me $15M.  Of course, if the average American got hit by a $15M fine they&#8217;d be bankrupt.  What&#8217;s it do to Mr Greenberg?</p>
<p>Last I could find him on the Forbes list of <a title="#79 in the world" href="http://www.forbes.com/static/bill2005/LIROJGR.html?passListId=10&amp;passYear=2005&amp;passListType=Person&amp;uniqueId=OJGR&amp;datatype=Person" target="_blank">&#8220;World&#8217;s Richest People&#8221;</a> was 2005 when he was ranked #79, weighing-in with a fortune of ~$3.2B.  Of course, it&#8217;s been a tough few years and he&#8217;s probably taken it on the chin.  How much?  No idea, but for the sake of argument, let&#8217;s say he&#8217;s down to a lightened but still respectable fortune of ~$1B.</p>
<p>The average American instead has a &#8220;fortune&#8221; of somewhere between $0 and $1M, according to the FED&#8217;s most recent <a title="FED Survey of Consumer Finances" href="http://www.federalreserve.gov/pubs/bulletin/2009/pdf/scf09.pdf" target="_blank">Survey of Consumer Finances</a>.</p>
<div class="wp-caption aligncenter" style="width: 444px"><img title="Average American Income &amp; Net Worth" src="/images/averageIncomeNetWorth.jpg" alt="Hank wins" width="434" height="280" /><p class="wp-caption-text">Hank wins</p></div>
<p>For the sake of our back-of-the-envelope calculation, we&#8217;ll say that the average American family is worth $1M, though this is surely fanciful.  This means that Hank is only about 1000 times richer than our fanciful American family who&#8217;s equivalent fine would be $15K.</p>
<p>Now, $15K will get you a beer and more, so I&#8217;ll never be the one to spit on $15K, but for a $1M family it is something that will look a lot like an ordinary item on their taxes.  Not fun, but a lot of people would rather part with $15K than pass a kidney stone.  Actually, when you pass a kidney stone in the US you also typically have to cough up something like $15K, but that&#8217;s another story altogether..</p>
<p>It&#8217;s just not the kind of fine you&#8217;d think would be very effective at getting people to not ruin the global economy so they can pocket a few quick billions, thank you very much.  If I know I stand to make billions at the cost of being fined in the millions, I just might spin the wheel.  Not much deterrent there.</p>
<p>So, Hank really didn&#8217;t do so badly as all that.</p>
<p>Now that that&#8217;s out of the way, regulators can address important items like flash orders, short sellers and high-frequency trading.  Meanwhile, an almost manufactured-looking populist backlash suggests darkly that Goldman&#8217;s trading gains are ill-gotten.</p>
<p>/pitchfork-mode-on</p>
<p>I don&#8217;t personally believe that Goldman is front-running their clients, but I&#8217;d prefer to avoid the possibility entirely by disallowing firms with proprietary trading operations from handling client accounts.  In programming, the best way to deal with concurrency issues is to prevent them from happening structurally by employing producer-consumer queues and other such mechanisms.  In just the same way, front-running should be structurally prevented by regulation.  Just make it effectively impossible.  But this eminently sensible model was over-written in the twilight of the Clinton I years by some of the super heroes who brought us all the marvelous financial innovations we&#8217;ve enjoyed over the subsequent decade.</p>
<div class="wp-caption aligncenter" style="width: 250px"><img class=" " src="/images/supermen.jpg" alt="more kings, yay!" width="240" height="316" /><p class="wp-caption-text">more kings, yay!</p></div>
<p>Back to Goldman.  While I don&#8217;t think they&#8217;re front-running, everyone ethical/sensible will agree that if they were, it would be bad.  How bad?  Well, 252 trading days times $100M of ill-gotten gains yields something like $25B annually.  Big money by my proletarian standards, but let&#8217;s say that <a title="that's a 'T'?" href="http://www.nytimes.com/2009/07/21/business/economy/21bailout.html?_r=1" target="_blank">Mr Barofsky overcooked his stew</a> by an order of magnitude and this bailout will only cost us ~$2.5T.  That would make the worst case scenario for HFT hijinks something like 1% of our crisis tab.</p>
<p>Worth pursuing, if there&#8217;s something there, but probably not the most bang for regulatory buck out there.</p>
<p>What&#8217;s an ambitious regulator to do?  Well, faced with symptoms like those evident in today&#8217;s US markets, the <a title="IMF advice" href="http://www.theatlantic.com/doc/200905/imf-advice" target="_blank">IMF would recommend breaking-up the finance oligarchy</a> outright:</p>
<blockquote>
<p id="blurb">The crash has laid bare many unpleasant truths about the United States. One of the most alarming, says a former chief economist of the International Monetary Fund, is that the finance industry has effectively captured our government—a state of affairs that more typically describes emerging markets, and is at the center of many emerging-market crises. If the IMF’s staff could speak freely about the U.S., it would tell us what it tells all countries in this situation: recovery will fail unless we break the financial oligarchy that is blocking essential reform.</p>
</blockquote>
<p>As Americans we are participants to a historic transfer of wealth from the US taxpayer to [?].  We don&#8217;t know how much, but we know it&#8217;s measured in Trillions.  And we really can&#8217;t say where it has gone.  Remarkable circumstance.</p>
<p>Some are saying that modern finance is so complex that we can&#8217;t hope to understand what just happened.  But I don&#8217;t think we need people with sophisticated intuitions about volatility smiles or nuanced appreciation for the creative engineering of structured products to solve these mysteries.</p>
<p><strong>We just need garden-variety, honest and empowered investigators. </strong></p>
<p><img class="alignleft" style="margin: 3px 5px;" src="/images/untouchables.jpg" alt="" width="255" height="204" /></p>
<p>The &#8220;Untouchables&#8221; and other real-life gang-busters come to mind.  The techniques they employed would be effective for identifying and bringing down the people who&#8217;ve contributed to this epic transfer of wealth.</p>
<p>Just as they identified the &#8220;associates&#8221; of their prime suspects and then pieced together their activities by following money trails, our own regulators need to do some straightforward investigation of the people involved in this mysterious money hole.  Some will be innocent, some will have committed crimes.</p>
<p>Start with someone central to the fracas.  AIG has a few candidates with both Greenberg and Cassano likely suitable, but there are any number of <a title="Blameworthy" href="http://www.time.com/time/specials/packages/0,28757,1877351,00.html" target="_blank">lists</a> out there implicating people with our &#8220;credit crisis.&#8221;  Pick one.  Look closely at his (or her) taxes, offshore holdings, business interests.  Identify 50 of their top social &amp; business contacts.  Again, start with taxes.  Do this for a few cycles and you&#8217;ll have unwittingly collected the cream and dregs of international finance.  Investigate them.  Look at their taxes.  Follow the money.</p>
<div class="wp-caption alignright" style="width: 310px"><img src="/images/theyCallItAFamily2.jpg" alt="" width="300" height="200" /><p class="wp-caption-text">identify the bad guys, follow the money, prosecute</p></div>
<p>People who committed crimes go to jail.  People who didn&#8217;t don&#8217;t.  Some new laws will need to be made and probably others will need to be taken off the books.  Minimal math required.</p>
<p>But what few honest and competent regulators we have are not empowered to do anything except kvetch pleasantly on <a title="Elizabeth Warren on John Stewart" href="http://www.thedailyshow.com/watch/wed-april-15-2009/elizabeth-warren-pt--1" target="_blank">the John Stewart show</a> and perhaps muck about with market microstructure.  They are certainly not empowered to take on the beneficiaries of the crisis we&#8217;ll spend a generation paying for.  It&#8217;s even difficult to imagine how a regulator could be empowered to take down the architects of this most ambitious of capers.  The arch-villains of Mario Puzo or David Chase&#8217;s most feverish moments never approached the sophisticated operations unfolding today.</p>
<p>Focusing on market microstructure in an environment like this is truly missing the forest for the leaves.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/08/07/its-not-about-microstructure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the trading frequency spectrum</title>
		<link>http://www.puppetmastertrading.com/blog/2009/07/28/the-trading-frequency-spectrum/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/07/28/the-trading-frequency-spectrum/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 13:42:45 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[hedge funds]]></category>
		<category><![CDATA[our managed markets]]></category>
		<category><![CDATA[startup]]></category>
		<category><![CDATA[strategy development]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=145</guid>
		<description><![CDATA[
I&#8217;ve been saving the above image in a stubbed-out blog post I&#8217;ve wanted to write since a conversation I&#8217;d had in Jerusalem last fall.  The recent attention to high frequency trading and all of its attendant evils has reminded me that the topic is relevant and so I relate various thoughts at the risk of [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" title="Frequency Spectrum" src="/images/frequencySpectum.gif" alt="" width="755" height="300" /></p>
<p>I&#8217;ve been saving the above image in a stubbed-out blog post I&#8217;ve wanted to write since a conversation I&#8217;d had in Jerusalem last fall.  The recent attention to high frequency trading and all of its attendant evils has reminded me that the topic is relevant and so I relate various thoughts at the risk of jumping on a cacophonous bandwagon of rumbling misinformation.</p>
<p>First of all, the conversation.  It was with a talented guy who acted as the CFO for a variety of companies including a small startup hedge fund which traded US equities at a high frequency.   Although he was a part-time cfo, he seemed pretty plugged-into their trading operations and noted that they use an agency-only brokerage service for automated traders I&#8217;m familiar with and that they were &#8220;looking at full data for many&#8221; hundred stocks concurrently. He remarked that their trading was going well but that their hit rate was something like 4% and dropping.  By hit rate, he meant that they were placing limits frequently and generally pulling the orders if they didn&#8217;t get hit immediately.  He didn&#8217;t specify, but I imagine that &#8220;immediately&#8221; might range from milliseconds out to a second or twenty.  If the market is composed of makers and takers, then these guys were definitely makers of liquidity in the strict sense that they were placing limits and making markets.</p>
<p>At the time I thought it was interesting because it seemed that so many people were focused on the very, very short term trade that the frequency was becoming saturated.  It looked like a reminder that trading frequencies populate a spectrum; in this case, this part of the spectrum was becoming so saturated that returns were becoming increasingly difficult to obtain as more players crowded into it.  I&#8217;m not sure how this hedge fund has fared, but at the time I remember thinking that they were going to have a tough time competing if they were only geared for high-frequency trading as the space becomes increasingly expensive to play in as the inevitable talent and technology arms race marches on.</p>
<p><a title="Lo &amp; Khandani" href="http://web.mit.edu/alo/www/Papers/august07_2.pdf" target="_blank">Lo and Khandani</a> provide the below image illustrating this phenomenon happening to a class of contrarian strategies Lo &amp; MacKinlay had described in 1990.  The strategies stop working as people squeeze out the alpha.</p>
<p><span id="more-145"></span></p>
<p><img class="aligncenter" title="contrarians crushed" src="/images/crushedContrarians.jpg" alt="" width="594" height="436" /></p>
<p>My conversation in Jerusalem mostly made me think that we were seeing a similar phenomenon amongst HF strategies.</p>
<p>What does it mean for a strategy to be high-frequency?  First of all, it&#8217;s a large class of strategies which probably shouldn&#8217;t be treated uniformly.  What they have in common is an intention to trade in and out of positions on a frequent basis where frequent will range from sub-seconds out to perhaps several seconds or even minutes in particularly felicitous cases.</p>
<p>Aside from the fact that one can trade at various frequencies, one can mix them and one might even be only peripherally aware of doing so.  A long-only, fundamentally-driven mutual fund (ie, not an algo or high-frequency trader) might call/fax/email/ftp/fix etc their trades into their brokers who might then execute the trades with their in-house or outsourced/white-labeled execution-quality algos.  Those algos might use some very clever close-to-the-market analytics to provide great execution for the client.  Or they might be traded profitably against.  Or both.</p>
<p>In any case, to me it seems clear that there is nothing intrinsically wrong about high-frequency trading itself.  People will always try to react to information as quickly as possible.  Why wouldn&#8217;t or shouldn&#8217;t they?  They also like to be clever.  Again, why wouldn&#8217;t this be expected and good?  I remember Lefevre recounting the use of personal teletypes by big speculators at the turn of the (prior) century.  Not your everyday household item at the time.  I also remember him recounting strategies for moving large positions which involved both buying and selling to hide one&#8217;s hand.  Why wouldn&#8217;t algos do the same and more?</p>
<p>That the loudest critics have been old-style execution traders &#8220;talking their book&#8221; to me tells the story here.</p>
<p>One other thing that my conversation evinces is the kinds of biz models being employed by brokers.  Like I said, this little hf hedge fund used an agency-only brokerage that caters to algo/hf traders.  Why is it important to note that it&#8217;s &#8220;agency only&#8221;?  Because, as the Goldman/Aleynikov story illustrates, strategies are organizationally porous in the sense that their value drips away as the human capital behind them moves from organization to organization and understanding of the strat&#8217;s internals become understood more broadly outside the organization.  This is likely the dynamic that drove Lo&#8217;s example above &#8211; more and more traders were employing similar strategies as the knowledge of the strategy leaked further and further from its original source(s).  Likewise, if I see all of your trading activity in sufficient detail, I might be able to reverse-engineer your strategy and work to steal your alpha.</p>
<p>Thus, traders are happy not to advertise their strategies&#8217; behaviors.  So an agency-only broker &#8211; a broker who doesn&#8217;t engage in prop trading themselves &#8211; should inspire trust in a potential client.</p>
<p>Great!  What an honest business model!  But there&#8217;s an irony here and it points to the real kinds of problems we should be bugging our regulators to be addressing.  The specific agency-only broker I mention wasn&#8217;t self-clearing.  That is, they were using another broker (Goldman in this case) to handle their backoffice duties.  And guess what?  Goldman is anything but agency only.  So, clients who feel warm and fuzzy that they are dealing with an agency-only shop are actually exposing all of their activities with a particularly sophisticated and arguably predatorial prop trader.  It&#8217;s like the Guiness ads.</p>
<p>It&#8217;s funny to me that while there sits a multi-trillion dollar hole in our fed&#8217;s balance sheet which such hippies as fox news and bloomberg (suing to find out) and our US congress (asking politely) can&#8217;t seem to tease an explanation for out of the relevant authorities, the blogosphere and regulators seem to focus their invective on short sellers, hedge funds and high-frequency traders.</p>
<div class="wp-caption aligncenter" style="width: 338px"><img title="Brilliant?" src="/images/Guiness-Brilliant.jpg" alt="partners at GS?" width="328" height="240" /><p class="wp-caption-text">secret meeting at 85 broad?</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/07/28/the-trading-frequency-spectrum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the other interesting thing about the Serge Aleynikov story</title>
		<link>http://www.puppetmastertrading.com/blog/2009/07/08/the-other-interesting-thing-about-the-serge-aleynikov-story/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/07/08/the-other-interesting-thing-about-the-serge-aleynikov-story/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 15:31:28 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[our managed markets]]></category>
		<category><![CDATA[strategy development]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=466</guid>
		<description><![CDATA[There&#8217;s a whole bunch of interesting things about this story of how a programmer has allegedly stolen some of the code at the place he&#8217;d worked.  One is the remarkable reverb it&#8217;s created amongst bloggers.  The house pictured left is evidently the diabolical mastermind&#8217;s home according to the NJ Real Estate Report.  Another is the [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 266px"><img title="Serge's House" src="/images/sergesHouse.jpg" alt="his haunted house" width="256" height="192" /><p class="wp-caption-text">as suspected, the seat of evil can be found in NJ</p></div>
<p>There&#8217;s a whole bunch of interesting things about this story of how a programmer has allegedly stolen some of the code at the place he&#8217;d worked.  One is the remarkable reverb it&#8217;s created amongst bloggers.  The house pictured left is evidently the diabolical mastermind&#8217;s home according to the <a title="NJ Real Estate Report" href="http://njrereport.com/index.php/2009/07/06/did-serges-underwater-house-play-a-role/" target="_blank">NJ Real Estate Report</a>.  Another is the fact that a programmer stealing some code is news. Funny what becomes news (apparently a fêted pedophile died) and what doesn&#8217;t (we are creating <em>millions</em> of refugees in Pakistan).</p>
<p>One angle that I haven&#8217;t seen highlighted in all of the commentary is Mr Aleynikov&#8217;s choice of weapon.  Seems that he was an <a title="Erlang" href="http://en.wikipedia.org/wiki/Erlang_(programming_language)" target="_blank">erlang</a> guy with an interest in <a title="OCAML" href="http://en.wikipedia.org/wiki/Objective_Caml" target="_blank">ocaml</a>.  Choosing functional programming for algo trading systems is an interesting but not unique choice.</p>
<p><span id="more-466"></span></p>
<p>A few months back I&#8217;d seen <a title="Jane Street Capital" href="http://www.janestreet.com/" target="_blank">Jane St</a>&#8217;s Yaron Minsky give an <a title="Yaron Minsky: OCAML Trading at CMU" href="http://ocaml.janestreet.com/?q=node/61" target="_blank">interesting talk on OCAML</a> in which he describes the virtues of ocaml as applied to the algo trading domain.  You should watch it as he&#8217;s entertaining and clearly a &#8220;true believer.&#8221;   The key argument he makes is that algo trading requires correctness, agility and performance and that ocaml provides a great set of tools for addressing these needs.  Correctness and agility are supported by the rich type system while performance is just a happy feature of the language.</p>
<p><embed id="VideoPlayback" src="http://video.google.com/googleplayer.swf?docid=-2336889538700185341&#038;hl=en&#038;fs=true" style="width:400px;height:326px" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash"> </embed></p>
<p>He describes Jane St&#8217;s need for correctness as obsessive &#8211; the company&#8217;s founders read/review all of the code that goes into production.  Thus, concision and the absence of OO languages&#8217; dynamic dispatching mechanisms are viewed as advantageous.</p>
<p>Mr Minsky admits that there are significant limitations involved in choosing ocaml, including a dearth of external libraries (they write their guis using <a title="curses" href="http://en.wikipedia.org/wiki/Curses_(programming_library)" target="_blank">curses</a>(!)) and a lack of native threading.  The language&#8217;s unpopularity turns out to be something of a double-edged sword as it results in the lack of usable libraries but also in a close-knit community of likely above-average developers.</p>
<p>Anyway, it&#8217;s an interesting decision for Jane St Capital to have made and it&#8217;s compounded by Mr Aleynikov&#8217;s use of Erlang/OTP at Goldman.  His linkedin profile describes his recent work as:</p>
<blockquote>
<p class="description">• Lead development of a distributed real-time co-located high-frequency trading (HFT) platform. The main objective was to engineer a very low latency (microseconds) event-driven market data processing, strategy, and order submission engine. The system was obtaining multicast market data from Nasdaq, Arca/NYSE, CME and running trading algorithms with low latency requirements responsive to changes in market conditions.<br />
• Implemented a real-time monitoring solution for the distributed trading system using a combination of technologies (SNMP, Erlang/OTP, boost, ACE, TibcoRV, real-time distributed replicated database, etc) to monitor load and health of trading processes in the mother-ship and co-located sites so that trading decisions can be prioritized based on congestion and queuing delays.<br />
• Responsible for development of real-time market feed handlers, order processing engines and trading tools at a Quantitative Equity Trading revenue-making HFT desk.</p></blockquote>
<p class="description">which makes it sound like they were using Erlang alongside a lot of C++.  I&#8217;d also speculate that their use of Erlang was more about concurrency than functional programming.</p>
<p class="description">One of the nice observations made by Mr Minsky is that there&#8217;s a magnificent freedom about prop trading: you don&#8217;t have clients to please and can thus make genuinely original technology decisions.  It looks to me like the curious case of Serge Aleynikov highlights some of that originality in play in serious algo trading prop shops.</p>
<p class="description">
<p class="description">
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/07/08/the-other-interesting-thing-about-the-serge-aleynikov-story/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>playing by the rules</title>
		<link>http://www.puppetmastertrading.com/blog/2009/04/13/playing-by-the-rules/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/04/13/playing-by-the-rules/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 13:14:45 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[dereferenced]]></category>
		<category><![CDATA[our managed markets]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=449</guid>
		<description><![CDATA[
Competition has forever been fierce and at times may not be entirely fair.  Thus, a student of the market must be ever aware of the trends around them so they can promptly identify growing areas of opportunity which haven&#8217;t yet been revealed to the majority.  Mr Madoff made a very good living (while it lasted) [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" src="http://puppetmastertrading.com/images/competition.jpg" alt="" width="480" height="251" /></p>
<p>Competition has forever been fierce and at times may not be entirely fair.  Thus, a student of the market must be ever aware of the trends around them so they can promptly identify growing areas of opportunity which haven&#8217;t yet been revealed to the majority.  Mr Madoff made a very good living (while it lasted) offering clients a steady ~10% return on their investment.  Bush league stuff, it turns out.  The real maestros of money are doing rather better.</p>
<p>Accounting and legal researchers at the <a title="KU on tax lobbying" href="http://www.news.ku.edu/2009/april/9/taxlobbying.shtml" target="_blank">University of Kansas</a> have identified a bull market in influence-peddling: <strong>returns on the order of 22,000%</strong> for firms who &#8220;invested&#8221; in lobbying efforts to favorably modify the tax code.  These people obviously learned that it&#8217;s important to play by the rules.</p>
<p>I&#8217;ve written some decent strategies and have been blessed with moments of great luck, but I&#8217;m ashamed to note that I&#8217;ve never gotten remotely close to these kinds of returns.  Can you imagine the sharpe ratio these guys can claim?  And it&#8217;s a repeatable process.  Although the Kansas researchers don&#8217;t mention it, there are many other cases of such legal arbitrage as pointed out in an <a title="playing by the rules" href="http://www.google.com/hostednews/ap/article/ALeqM5gJFwRqehf7pwnaW78VA82K3YhZNAD97ENDCO0" target="_blank">AP piece</a> on the subject:</p>
<blockquote><p>The nonpartisan group recently released a study comparing the amount spent by bailed-out banks on political contributions and lobbying with the amount of money they got from the Wall Street rescue fund, known as the Troubled Asset Relief Program. The results produced eye-popping rates of return, an overall 258,449 percent for the $114 million they spent on campaign donations and lobbying.</p></blockquote>
<p>Now this number &#8211; ~260,000% ROI &#8211; is clearly a bit inflated as $114M barely covers what Citi paid out to Mr Rubin for his services over the relevant period, but we&#8217;re probably in the ballpark.  Perhaps the banks only made 100,000% on their investment, but we can still see why they&#8217;re &#8220;the pros.&#8221;</p>
<p>I&#8217;m wracking my brains trying to figure out how to shoe-horn this marvelous alpha-generator into my trading algorithms.  I confess that I haven&#8217;t yet figured it out.  But I take solace in the knowledge that, as an American, I have the best government money can buy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/04/13/playing-by-the-rules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>meet the new boss&#8230;</title>
		<link>http://www.puppetmastertrading.com/blog/2009/02/07/meet-the-new-boss/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/02/07/meet-the-new-boss/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 13:55:23 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[dereferenced]]></category>
		<category><![CDATA[our managed markets]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=370</guid>
		<description><![CDATA[There seem to be two kinds of economists in today&#8217;s world.
Keynesians and Austrians?  Freshwater and saltwater? Macros and micros? Voodoos and uh well-adjusted?
No.  These may be valid distinctions ordinarily, but in today&#8217;s debate on how to solve the great self-inflicted wound known as the credit crisis the only two that matter are those who&#8217;ve worked [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 222px"><img title="plus ca change" src="/images/pluscachange.jpg" alt="the uniter revealed" width="212" height="253" /><p class="wp-caption-text">one view on the important stuff</p></div>
<p>There seem to be two kinds of economists in today&#8217;s world.</p>
<p>Keynesians and Austrians?  Freshwater and <a title="saltwater" href="http://en.wikipedia.org/wiki/Saltwater_school_(economics)" target="_blank">saltwater</a>? Macros and micros? Voodoos and uh well-adjusted?</p>
<p>No.  These may be valid distinctions ordinarily, but in today&#8217;s debate on how to solve the great self-inflicted wound known as the credit crisis the only two that matter are those who&#8217;ve worked for prop trading outfits (or perhaps more broadly, those who would someday <em>like to</em> once their time of public service is up) and those who just practice economics, typically academically.</p>
<p>Among the former, the solution is uniformly, as Mish so memorably put it, &#8220;<a title="Patch a busted dam with water" href="http://globaleconomicanalysis.blogspot.com/2008/10/you-cannot-patch-busted-dam-with-water.html" target="_blank">to patch the busted dam with water</a>&#8221; and to do it<strong> now</strong> or the consequences could be incomprehensibly bad.</p>
<p>Among the <a title="200 Economists' letter to congress" href="http://faculty.chicagobooth.edu/john.cochrane/research/Papers/mortgage_protest.htm" target="_blank">latter</a>, the views are many and divergent, but they at least agree that throwing trillions of dollars about is a serious bit of work and should be undertaken with deliberation, transparency and a long view.</p>
<p>I&#8217;m not qualified to opine on which type of economist has a better chance of saving us from ourselves.  But I can observe that the only kind sitting at the decision-making side of our president, pre- or post- January 20th 2009, is the prop trader.</p>
<p><span id="more-370"></span></p>
<p>Reminds me of a song I once knew&#8230;</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/SM0WIP7eMYs&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/SM0WIP7eMYs&amp;hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/02/07/meet-the-new-boss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
