<?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"
	>

<channel>
	<title>Hack the market</title>
	<atom:link href="http://www.puppetmastertrading.com/blog/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.puppetmastertrading.com/blog</link>
	<description>Algorithmic trading experiences</description>
	<pubDate>Wed, 22 Apr 2009 14:10:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>doubling down with levered ETFs</title>
		<link>http://www.puppetmastertrading.com/blog/2009/04/22/doubling-down-with-levered-etfs/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/04/22/doubling-down-with-levered-etfs/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 14:10:16 +0000</pubDate>
		<dc:creator>tito</dc:creator>
		
		<category><![CDATA[dereferenced]]></category>

		<category><![CDATA[portfolio management]]></category>

		<category><![CDATA[strategy development]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=455</guid>
		<description><![CDATA[This weekend I read Jason Zweig&#8217;s &#8220;Will leveraged ETFs Put Cracks in Market Close?&#8221; which references a paper by Minder Cheng and Ananth Madhaven at Barclay&#8217;s.   I tried, but couldn&#8217;t find their original paper over the weekend.  As luck would have it from across the internets Paul Kedrosky came to the rescue with a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="/images/DoubleDown.jpg" alt="" width="363" height="500" />This weekend I read Jason Zweig&#8217;s &#8220;<a title="Leveraged ETFS" href="http://online.wsj.com/article/SB124000593149930309.html" target="_blank">Will leveraged ETFs Put Cracks in Market Close?</a>&#8221; which references a paper by Minder Cheng and Ananth Madhaven at Barclay&#8217;s.   I tried, but couldn&#8217;t find their original paper over the weekend.  As luck would have it from across the <em>internets</em> Paul Kedrosky came to the rescue with a <a title="Leveraged ETFs and Portfolio insurance" href="http://paul.kedrosky.com/archives/2009/04/leveraged_etfs.html">post</a> referencing that paper, &#8220;<a title="The Dynamics of Leveraged and Inverse Exchange-Traded Funds" href="http://www.barclaysglobal.com/secure/repository/publications/usa/ResearchPapers/Leveraged_ETF.pdf" target="_blank">The Dynamics of Leveraged and Inverse Exchange-Traded Funds</a>&#8220;.</p>
<p>If you have any interest in ETFs, then you should read this paper carefully as it provides a very nice and accessible mathematical treatment of leveraged and inverse ETFs.</p>
<p>I&#8217;ve had success using ETFs in portfolio-oriented strategies to conveniently provide specific exposures, eg, to emerging markets.  I&#8217;ve also explored strategies that pit ETFs against futures and similar arbs that <a title="USO and the roll" href="http://v2.ftalphaville.ft.com/blog/2009/02/18/52635/a-cancer-in-the-oil-markets" target="_blank">take advantage of contract rolls</a> or other anomalous behaviors across the markets.  But I&#8217;ve never looked at ETFs the way they really should be understood: as structured products that should have well-defined (if not necessarily obvious) properties.</p>
<p>Like many structured products, some of these characteristics are not obvious and may be quite unintuitive but are always important to understand.  For instance, the hedging required to implement these funds is both non-linear and asymmetric.</p>
<blockquote><p>Specifically, leveraged ETFs must re-balance their exposures on a daily basis to produce the promised leveraged returns. What may seem counterintuitive is that irrespective of whether the ETFs are leveraged, inverse or leveraged inverse, their re-balancing activity is <em>always </em>in the same direction as the underlying index&#8217;s daily performance. The hedging flows from equivalent long and short leveraged ETFs thus do not &#8220;offset&#8221; each other. [...]</p>
<p>The impact is particularly significant for inverse ETFs. For example, a double-inverse ETF promising -2X the index return requires a hedge equal to 6X the day&#8217;s change in the fund&#8217;s Net Asset Value (NAV), whereas a double-leveraged ETF requires only 2X the day&#8217;s change. This daily re-leveraging has profound microstructure effects, exacerbating the volatility of the underlying index and the securities comprising the index.</p></blockquote>
<p>Hence Mr Zweig&#8217;s concern that these ETFs feed the volatility we&#8217;ve seen for the last 8 months or so near the market close.  If the day has been up then both &#8220;bull&#8221; and &#8220;bear&#8221; levered ETFs will need to buy in order to stay hedged - reinforcing the trend and effectively supporting serial correlation of returns.</p>
<p><span id="more-455"></span></p>
<p>Another important property of levered and inverse ETFs is that they are designed to track the <em>daily</em> returns of their underlying index which does not mean that over the long term they will faithfully track the returns of their index.  Cheng and Madhaven illustrate that this can be viewed as an embedded path-dependent option within the product.  This is graphically illustrated with two charts of DIG and DUG over a shorter and longer period.  Over a short period, they track each other admirably, mirror-like, as one would expect.  But over a longer period they diverge quite spectacularly.  In fact, in the example below, one would have lost money betting on either over the same period!</p>
<div class="wp-caption alignnone" style="width: 675px"><img title="DIG &amp; DUG" src="/images/digdug.gif" alt="Heads I win, tails you lose - ProShares" width="665" height="506" /><p class="wp-caption-text">&quot;Heads I win, tails you lose&quot; - ProShares</p></div>
<p>Another interesting result of Cheng &amp; Madhaven&#8217;s research is that the &#8220;[hedging] demand as a fraction of closing volume is a non-linear function of return&#8230;&#8221;.  Thus, the greater the move in the underlying index, the hedging activities of these ETFs will have a (non-linearly!) greater market impact on the close.</p>
<p>There are other gems in here as well including hints at pricing options on these ETFs, and techniques for quantifying the market impact of hedging activities.  But don&#8217;t take my word for it.  Go read the original!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/04/22/doubling-down-with-levered-etfs/feed/</wfw:commentRss>
		</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 - ~260,000% ROI - 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>
		</item>
		<item>
		<title>pimp that strat</title>
		<link>http://www.puppetmastertrading.com/blog/2009/03/18/pimp-that-strat/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/03/18/pimp-that-strat/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 14:00:37 +0000</pubDate>
		<dc:creator>tito</dc:creator>
		
		<category><![CDATA[hedge funds]]></category>

		<category><![CDATA[startup]]></category>

		<category><![CDATA[strategy development]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=415</guid>
		<description><![CDATA[
A reader of this blog (hey - I&#8217;m as surprised as you are!) sent me an email recently detailing a strategy they&#8217;d developed.  While the details of that strategy aren&#8217;t relevant here, they sounded good and they got me to thinking about the process of selling a trading strategy.  This is an activity that I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter" title="pimp that trading strategy" src="/images/pimpHat.gif" alt="" width="300" height="239" /></p>
<p>A reader of this blog (hey - I&#8217;m as surprised as you are!) sent me an email recently detailing a strategy they&#8217;d developed.  While the details of that strategy aren&#8217;t relevant here, they sounded good and they got me to thinking about the process of selling a trading strategy.  This is an activity that I&#8217;ve spent some time on and have decided just isn&#8217;t for me.</p>
<p>There are a lot of difficulties with selling a trading strategy.  One of them is a consequence of the foundational problem of back-testing about which I first started posting on this <a title="fool's gold" href="http://www.puppetmastertrading.com/blog/2007/09/26/fools-gold/" target="_blank">blog</a>.  For any given period of time (that has already elapsed!), it&#8217;s not difficult to generate a good number of pretty impressive strategies.  All you have to do is try a good enough number of random strategies and some of them will prove to be too good to be true.</p>
<p>Presumably, any credible person who might be listening to your pitch will be at least intuitively aware of this fact and will thus be highly suspicious of any back-tested results you might present.  For this reason, it&#8217;s impossible to sell a strategy on the basis of back-tested results.  Only auditable, real-world returns will be considered valid by any serious person.  Of course, you might find someone who&#8217;s less particular, but then you&#8217;re flirting with fraud rather than a legitimate sale.</p>
<p>So let&#8217;s say you have impressive, verifiable results.  You still have to answer the question:</p>
<blockquote><p><strong>If this strategy is so good, why are you selling it?  Why not just trade it yourself?</strong></p></blockquote>
<p><span id="more-415"></span></p>
<p>I suppose one answer might be that you have insufficient capital, but I just don&#8217;t think it&#8217;s a very satisfying answer.  It&#8217;s hard not to think that everyone can borrow money <em>somewhere</em> or run up credit cards or somesuch.  Another, possibly better, answer might be that the strategy requires more favorable commissions than you can obtain, thus you&#8217;re looking for an organization that&#8217;s either an exchange member or just trades in sufficient volume to have significantly lower costs than you can muster.  Again, not totally satisfying, particularly given that you really need a track-record to have gotten to this point.</p>
<p>Another impediment to selling a trading strategy is that it&#8217;s just an idea and ideas can be stolen.  You have to somehow give enough information to make your story credible, without giving away the strategy itself.  This can be harder than it sounds as the person listening to you presumably knows something about the relevant markets and might have some good understanding about the kinds of strategies that can be effectively deployed.  As a minimum, you have to convey the relevant performance characteristics of the system in good detail.  Even this can be revealing as the returns will often tell a tale about the strategy that generated them.  Additionally, most will want to hear a compelling &#8220;story&#8221; about how/why the strategy works.  What inefficiencies are the strategy capitalizing on?  This can be even more revealing as it will be in the form of a free-form discussion followed up with questions etc.  In the end, you might find that you&#8217;ve told a number of people revealing characteristics about your strategy - enough at least for them to do some digging of their own - without getting any closer to your aim.</p>
<p>But let&#8217;s say that you&#8217;ve managed to find someone who is interested.  Now the real difficulties begin!  How do you structure the deal?  I suppose you could sell the signals if the system trades sufficiently infrequently, but this obviates the entire class of higher frequency strategies.  It&#8217;s also a bit of an asymmetric deal in the sense that you presumably sell the signals on some kind of a fixed subscription basis whereas the purchaser can use an arbitrary amount of capital on the strategy.  In spite of these difficulties, this seems the cleanest kind of deal and I&#8217;ve seen it done in institutional contexts, so it&#8217;s not beyond the realm of possibility.</p>
<p>Another option, particularly for high-frequency systems or in cases where commission structures or trading infrastructure are a key element of the viability of the deal, is to partner in some concrete way through a partnership or a formalized joint venture.  This, too, is something that I&#8217;ve seen and have even engaged in, so it&#8217;s not too fanciful, but at the end of the day it ends up being like any other partnership or business: it fundamentally requires a deep level of trust.</p>
<p>(Another possibility, of course, is to wrap the strategy into a hedge fund, etf, structured product or other salable instrument and market it in a normal way.  But that&#8217;s another discussion as it requires significant capital upfront which means you could, if you chose, monetize your strategy directly by trading it.  So, it&#8217;s really a different issue entirely&#8230;)</p>
<p>Thus, if one can overcome the myriad difficulties, <em>it is possible to sell a trading strategy</em>.</p>
<p>That said, I wouldn&#8217;t recommend doing it and it&#8217;s not something that I&#8217;m interested in as a business model.  Why not?  <strong>Ultimately, it&#8217;s about what interests you and how you want to spend your time. </strong>Do you want to be a salesperson and spend your time preparing and smoothly delivering presentations, networking and glad-handing &amp;tc?</p>
<p>Or do you want to research, develop and trade your algorithms?</p>
<div class="wp-caption aligncenter" style="width: 310px"><img src="/images/used_car_salesman.jpg" alt="ultimately, its about what you want to do..." width="300" height="238" /><p class="wp-caption-text">ultimately, it&#39;s about what you want to do...</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/03/18/pimp-that-strat/feed/</wfw:commentRss>
		</item>
		<item>
		<title>goldman hacks</title>
		<link>http://www.puppetmastertrading.com/blog/2009/03/12/goldman-hacks/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/03/12/goldman-hacks/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 18:04:48 +0000</pubDate>
		<dc:creator>tito</dc:creator>
		
		<category><![CDATA[back-testing]]></category>

		<category><![CDATA[dereferenced]]></category>

		<category><![CDATA[strategy development]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=409</guid>
		<description><![CDATA[
A friend of mine pointed out an article he came across on his bloomberg terminal today which reminded him of a strategy I&#8217;d described to him sometime back and which we&#8217;ve been trading over the past year or so with good results.
To the great chagrin of some of my partners, I even wrote a few [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 210px"><img title="..." src="/images/goldmanHacks.gif" alt="rebranding?" width="200" height="200" /><p class="wp-caption-text">rebranding opportunity?</p></div>
<p>A friend of mine pointed out <a title="Goldman Hacks: Bull by Night, Bear by Day" href="http://www.bloomberg.com/apps/news?pid=newsarchive&amp;sid=aXhs9g9il2rk" target="_blank">an article</a> he came across on his bloomberg terminal today which reminded him of a strategy I&#8217;d described to him sometime back and which we&#8217;ve been trading over the past year or so with good results.</p>
<p>To the great chagrin of some of my partners, I even wrote a few posts about the phenomenon underlying our strategy and its evolution as we capitalized on it.  Eventually, they persuaded me to shut up already, but the outline was there for all - including Goldman! - to see.</p>
<p>My first post on the topic, <a title="unsung virtues of a dynamic hedge" href="http://www.puppetmastertrading.com/blog/2008/06/04/unsung-virtues-of-a-dynamic-hedge/">&#8220;unsung virtues of a dynamic hedge&#8221;</a> published June 4th of last year, was pretty coy and didn&#8217;t mention the source of alpha itself but talked about enhancing it with a dynamic hedge.</p>
<p>My next post on the topic, <a title="to dream" href="http://www.puppetmastertrading.com/blog/2008/07/14/to-dream/" target="_blank">&#8220;to dream&#8221;</a> was published July 14th of last year and laid out the exploitable discrepancy of the market&#8217;s behavior.  Interestingly, the data I provided in that posting went back the same amount of time as in Goldman&#8217;s piece.</p>
<p>I explicitly wrote one last time about the strategy in <a title="evolution of a strategy" href="http://www.puppetmastertrading.com/blog/2008/07/21/evolution-of-a-strategy/" target="_blank">&#8220;evolution of a strategy&#8221;</a> wherein I detailed the process by which we&#8217;d been evolving the strategy.</p>
<p>Now, one of the more entertaining things about having a blog is that you get to see who is viewing your content.  I&#8217;m happy to note that all of the major IBs are represented including a variety of distinct IPs within Goldman.</p>
<p><strong>Now, I&#8217;m not <em>accusing </em>them of stealing my ideas or anything untoward like that&#8230; but I&#8217;ll admit that I am <em>wondering </em>how long it&#8217;s going to take them to make similar observations across markets beyond US Equities&#8230;</strong></p>
<p>Read on for the Bloomberg article&#8230;</p>
<p><span id="more-409"></span></p>
<p>From the Bloomberg article:</p>
<blockquote><p>By Alexis Xydias</p>
<p>March 12 (Bloomberg) &#8212; Investors should take advantage of others’ “fear” of the night, according to a study by Goldman Sachs Group Inc. that shows holding U.S. stocks overnight since 1993 would have quadrupled an investment.</p>
<p>Buying futures on the <a onmouseover="return escape( popwQuoteShort( this, 'SPX:IND' ))" href="http://www.bloomberg.com/apps/quote?ticker=SPX%3AIND">Standard &amp; Poor’s 500 Index</a>, or a fund that replicates the benchmark for U.S. equities, just as the trading session ends and selling them when the market opens the next day has yielded 309 percent since 1993, New York-based analyst <a onmouseover="return escape( popwSearchNews( this ))" href="http://search.bloomberg.com/search?q=Peter+Berezin&amp;site=wnews&amp;client=wnews&amp;proxystylesheet=wnews&amp;output=xml_no_dtd&amp;ie=UTF-8&amp;oe=UTF-8&amp;filter=p&amp;getfields=wnnis&amp;sort=date:D:S:d1">Peter Berezin</a> wrote in a report sent to clients today. The inverse strategy lost 58 percent.</p>
<p>Investors and traders may have become more reluctant to hold securities overnight, when they’re unable to react to market declines abroad, Berezin wrote. The S&amp;P 500 has plummeted 54 percent since reaching a record in October 2007 as the crisis in credit markets and the collapse of banks including <a onmouseover="return escape( popwQuoteShort( this, 'LEH:US' ))" href="http://www.bloomberg.com/apps/quote?ticker=LEH%3AUS">Lehman Brothers Holdings Inc.</a> hammered equities, while the <a onmouseover="return escape( popwQuoteShort( this, 'VIX:IND' ))" href="http://www.bloomberg.com/apps/quote?ticker=VIX%3AIND">Chicago Board Options Exchange Volatility Index</a>, the so-called gauge of fear, has more than doubled.</p>
<p>“A large number of market participants are averse to holding overnight positions, which causes them to sell at the close (thereby depressing intraday returns) and buy at the open (thereby inflating overnight returns),” Berezin wrote. “Such aversion to overnight risk is likely to be higher during bear markets.”</p>
<p>Overnight Spread</p>
<p>The difference between market-close and market-open prices has widened to 9 basis points since October 2008, the study said, from a “long-term” average of 5 basis points. A basis point is 0.01 percentage point.</p>
<p>The best way to benefit is to hold the <a onmouseover="return escape( popwQuoteShort( this, 'SPX:IND' ))" href="http://www.bloomberg.com/apps/quote?ticker=SPX%3AIND">S&amp;P 500</a> at night, while short-selling it during the day, Berezin wrote. The strategy would have returned 507 percent in the period, the analyst said, while acknowledging the increased costs of such a trading-intensive strategy. Short-sellers sell borrowed securities on expectations they will be able to repurchase them at a cheaper price before their loan is due.</p>
<p>The S&amp;P 500 reached 666.79 on March 6, the lowest intraday level in more than 12 years. The benchmark index for American equities has fallen 20 percent this year.</p>
<p>“Even when one is pondering less trading intensive strategies, the analysis above suggests that there is a cost to be paid for avoiding overnight risk,” Berezin wrote.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/03/12/goldman-hacks/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Shannon&#8217;s Demon</title>
		<link>http://www.puppetmastertrading.com/blog/2009/03/03/shannons-demon/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/03/03/shannons-demon/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 14:29:23 +0000</pubDate>
		<dc:creator>tito</dc:creator>
		
		<category><![CDATA[books]]></category>

		<category><![CDATA[dereferenced]]></category>

		<category><![CDATA[monte-carlo methods]]></category>

		<category><![CDATA[strategy development]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=392</guid>
		<description><![CDATA[
During some recent travels, I read William Poundstone&#8217;s ramblingly entertaining Fortune&#8217;s Formula.  It had been sitting on my shelf after I&#8217;d originally gotten it, perused it and offhandedly discarded it as yet another of these science-is-fun-and-full-of-wacky-characters books for the butch humanities student.  My initial impression was a bit harsh as the book proved entertaining and [...]]]></description>
			<content:encoded><![CDATA[<p><applet width="500" height="500" code="examples.sd" archive="/randomWalk/sd.jar" codebase="sd"></applet></p>
<p>During some recent travels, I read William Poundstone&#8217;s ramblingly entertaining <a title="Fortune's Formula" href="http://www.amazon.com/Fortunes-Formula-Scientific-Betting-Casinos/dp/0809045990/ref=pd_bbs_sr_1?ie=UTF8&amp;s=books&amp;qid=1236042231&amp;sr=8-1" target="_blank">Fortune&#8217;s Formula</a>.  It had been sitting on my shelf after I&#8217;d originally gotten it, perused it and offhandedly discarded it as yet another of these science-is-fun-and-full-of-wacky-characters books for the butch humanities student.  My initial impression was a bit harsh as the book proved entertaining and covered a lot of ground including significant coverage of Ed Thorp and his stat arb alchemy (see <a title="a stat arb story" href="http://www.puppetmastertrading.com/blog/2008/07/12/a-stat-arb-story/" target="_blank">here </a>for his own papers on the topic).</p>
<p>One of the more compelling segments of the book relates <a title="Claude Shannon" href="http://en.wikipedia.org/wiki/Claude_Shannon" target="_blank">Claude Shannon</a>&#8217;s <strong><em>demon</em></strong> which is a nice thought-experiment / trading-strategy which illustrates the tractability of the problem of trading on a random walk market with fixed properties.  I wrote the above applet to explore the impacts of applying friction and otherwise modifying the behaviors of the market and the demon.</p>
<p>The original demon posited a world with no friction in which the market contains one instrument which doubled or halved in value each day.  Shannon&#8217;s demon looks to take advantage of this volatility by maintaining a portfolio which was rebalanced each day to ensure a 50/50 split between cash and the market.  The applet implements a very simple monte-carlo test-bed for Shannon&#8217;s Demon.  You can configure the demon and the marketplace along a variety of parameters, and then run many instances of the demon, each on its own self-contained random-walk market.</p>
<p>Although Shannon&#8217;s demon is a highly &#8220;stylized&#8221; case in the sense that it operates on a very synthetic, unrealistic and favorable formulation of a random-walk marketplace, it has spawned a great deal of interest and serious research.</p>
<p>Most of all, it&#8217;s a revealing illustration of the kind of reasoning one must embrace in order to address stat arb strategy development.  Enjoy.</p>
<p>&#8212;<br />
Updated: March 4th - made price axis logarithmic to better reveal mc paths.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/03/03/shannons-demon/feed/</wfw:commentRss>
		</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>
		</item>
		<item>
		<title>distributions gone pear-shaped</title>
		<link>http://www.puppetmastertrading.com/blog/2009/02/04/distributions-gone-pear-shaped/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/02/04/distributions-gone-pear-shaped/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 16:29:25 +0000</pubDate>
		<dc:creator>tito</dc:creator>
		
		<category><![CDATA[dereferenced]]></category>

		<category><![CDATA[performance analysis]]></category>

		<category><![CDATA[strategy development]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=364</guid>
		<description><![CDATA[One of my favorite tools for strategy development is the distribution of returns a strategy will generate.  As I&#8217;ve discussed before (and here and here), it&#8217;s an easily quantifiable characterization of a strategy&#8217;s &#8220;underlying nature&#8221; and can be used to engineer strategies that fit appropriate markets.
Given the enduring value of return distributions, I found this [...]]]></description>
			<content:encoded><![CDATA[<p>One of my favorite tools for strategy development is the distribution of returns a strategy will generate.  As I&#8217;ve discussed <a title="distribution" href="http://www.puppetmastertrading.com/blog/2007/10/05/distribution/" target="_blank">before</a> (and <a title="redistribution" href="http://www.puppetmastertrading.com/blog/2007/10/07/redistribution/" target="_blank">here</a> and <a title="the character of a winner" href="http://www.puppetmastertrading.com/blog/2008/04/04/the-character-of-a-winner/" target="_blank">here</a>), it&#8217;s an easily quantifiable characterization of a strategy&#8217;s &#8220;underlying nature&#8221; and can be used to engineer strategies that fit appropriate markets.</p>
<p>Given the enduring value of return distributions, I found this morning&#8217;s post in <a title="VaRy complex" href="http://ftalphaville.ft.com/blog/2009/02/04/52037/vary-complex/" target="_blank">ft.com/alphaville</a> especially interesting.  They cite a Dresdner study examining the distribution of returns for Goldman Sachs&#8217; prop trading in 2003 and 2008.  Eye opening stuff.</p>
<div class="wp-caption aligncenter" style="width: 585px"><img title="2003" src="/images/gsDist2003.jpg" alt="normal" width="575" height="294" /><p class="wp-caption-text">normal</p></div>
<div class="wp-caption aligncenter" style="width: 575px"><img title="2008" src="/images/gsDist2008.jpg" alt="not so much" width="565" height="271" /><p class="wp-caption-text">not so much </p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/02/04/distributions-gone-pear-shaped/feed/</wfw:commentRss>
		</item>
		<item>
		<title>go figure</title>
		<link>http://www.puppetmastertrading.com/blog/2009/01/14/go-figure/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/01/14/go-figure/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 01:05:16 +0000</pubDate>
		<dc:creator>tito</dc:creator>
		
		<category><![CDATA[open-source software]]></category>

		<category><![CDATA[strategy development]]></category>

		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=333</guid>
		<description><![CDATA[  
As I&#8217;ve written before, I&#8217;m not a particularly big fan of technical analysis or any of the many and varied charting techniques people espouse.  That said, we are working with a proprietary futures trading company and some of the successful (non-algo) trading that they do involves point-and-figure charts.  Although a trading algorithm doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><applet width="450" height="550"  codebase="pf" code="examples.PandF" archive="/randomWalk/pf.jar">  </applet><br />
As I&#8217;ve <a title="Every sunken ship..." href="http://www.puppetmastertrading.com/blog/2008/11/12/every-sunken-ships-got-a-room-full-of-charts/" target="_blank">written before</a>, I&#8217;m not a particularly big fan of technical analysis or any of the many and varied charting techniques people espouse.  That said, we are working with a proprietary futures trading company and some of the successful (non-algo) trading that they do involves <a title="Point &amp; Figure Charts" href="http://www.investopedia.com/terms/p/pointandfigurechart.asp" target="_blank">point-and-figure charts</a>.  Although a trading algorithm doesn&#8217;t care about graphical representations, I wasn&#8217;t familiar with the technique and decided that the best way to understand it was to try to implement it, which is how I spent my Saturday evening &#8230;</p>
<p>The above applet re-uses the <a title="Engineering Randomness" href="http://www.puppetmastertrading.com/blog/2008/01/06/engineering-randomness/" target="_blank">one</a> I&#8217;d written previously in discussing simple stochastic processes.  This time, it illustrates a point &amp; figure chart below the regular line chart.  Point &amp; figure charts expose two characteristics: a &#8220;box size&#8221; (in ticks) and a &#8220;reversal&#8221; (in boxes).  The applet allows you to vary both and then generate a day&#8217;s worth of random/synthetic data to view it.  One of the nice features of <a title="JFreeChart" href="http://www.jfree.org/jfreechart/" target="_blank">JFreeChart</a> is that you can easily &#8220;zoom&#8221; into a chart by dragging within the chart.  I&#8217;ve disabled this in the line chart but you can try it in the p&amp;f chart.  (Note: you should right-click and &#8220;Auto-Range-Both Axes&#8221; before you generate new data or you&#8217;ll stay in the zoomed segment of the chart.)</p>
<p>Now that I think I understand the basics of point &amp; figure charting, it will be interesting to see what an algo might do with it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/01/14/go-figure/feed/</wfw:commentRss>
		</item>
		<item>
		<title>send lawyers guns &#038; money&#8230;</title>
		<link>http://www.puppetmastertrading.com/blog/2009/01/13/send-lawyers-guns-money/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/01/13/send-lawyers-guns-money/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 17:31:14 +0000</pubDate>
		<dc:creator>tito</dc:creator>
		
		<category><![CDATA[dereferenced]]></category>

		<category><![CDATA[hedge funds]]></category>

		<category><![CDATA[our managed markets]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=348</guid>
		<description><![CDATA[
Yesterday I read this article in the New Yorker: The New Paranoia: Hedge-Funders Are Bullish on Gold, Guns, and Inflatable Lifeboats.
In his book Wealth, War, published last year, former Morgan Stanley chief global strategist Barton Biggs advised people to prepare for the possibility of a total breakdown of civil society. A senior analyst whose reports [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignnone" style="width: 672px"><img title="ATF 4473 Shortage" src="/images/4473Shortage.jpg" alt="Weve run out of Federal Firearm Licenses " width="662" height="431" /><p class="wp-caption-text">&quot;We&#39;ve run out of Federal Firearm Licenses&quot; </p></div>
<p>Yesterday I read <a title="The New Paranoia: Hedge-Funders Are Bullish on Gold, Guns, and Inflatable Lifeboats" href="http://nymag.com/news/features/all-new/53372/" target="_blank">this</a> article in the New Yorker: <em>The New Paranoia: Hedge-Funders Are Bullish on Gold, Guns, and Inflatable Lifeboats</em>.</p>
<blockquote><p>In his book <em>Wealth, War, </em>published last year, former Morgan Stanley chief global strategist Barton Biggs advised people to prepare for the possibility of a total breakdown of civil society. A senior analyst whose reports are read at hedge funds all over the city wrote just before Christmas that some of his clients are “so bearish they’ve purchased firearms and safes and are stocking their pantries with soups and canned foods.”</p></blockquote>
<p>It reminded me of my experience on 9/11 and my thought that a really handy item for the paranoid Manhattanite in uncertain times might be a conveniently inflatable raft.</p>
<p>Yes, I was a little warped by the experience.  Evidently I&#8217;m not the only one, though&#8230;</p>
<blockquote><p>These guys would prefer to be in a high-speed boat or ex-military vehicle, heading off toward their fully provisioned compounds in pursuit of the ultimate goal: to <em>win</em> the chaos.</p></blockquote>
<p>Then today I came across the above notification from the <a title="ATF ran out of firearms licenses..." href="http://www.atf.gov/firearms/010609atf_f4473shortage-notice.htm" target="_blank">ATF</a> indicating that we&#8217;ve literally <em>run out of firearms licenses</em>.  I guess the optimistic interpretation is that there&#8217;s &#8220;always a bull market somewhere&#8230;&#8221;</p>
<blockquote><p>I was gambling in Havana<br />
I took a little risk<br />
Send lawyers, guns and money<br />
Dad, get me out of this</p>
<p>- Warren Zevon</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/01/13/send-lawyers-guns-money/feed/</wfw:commentRss>
		</item>
		<item>
		<title>and this little piggy hollowed out our nation&#8230;</title>
		<link>http://www.puppetmastertrading.com/blog/2009/01/08/and-this-little-piggy-hollowed-out-our-nation/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/01/08/and-this-little-piggy-hollowed-out-our-nation/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 20:01:40 +0000</pubDate>
		<dc:creator>tito</dc:creator>
		
		<category><![CDATA[our managed markets]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=318</guid>
		<description><![CDATA[
I came across this Bloomberg story on the state of Hank Paulson&#8217;s piggy bank.  As a dutiful steward of our Nation&#8217;s interests, he was forced to place his fortune into a blind trust upon accepting his current position as Treasury Secretary.  Now he gets to find out what happened to his money.  Always a charmer, [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 410px"><img title="This little piggy defrauded the nation" src="/images/piggy.jpg" alt="This is *not* Hank Paulsons Piggy bank..." width="400" height="260" /><p class="wp-caption-text">This is *not* Hank Paulson&#39;s Piggy bank...</p></div>
<p>I came across <a title="Bllomberg: Paulson to Discover Fate of His $500 Million Fortune " href="http://www.bloomberg.com/apps/news?pid=newsarchive&amp;sid=akRSGTQTpVyI" target="_blank">this Bloomberg story</a> on the state of Hank Paulson&#8217;s piggy bank.  As a dutiful steward of our Nation&#8217;s interests, he was forced to place his fortune into a blind trust upon accepting his current position as Treasury Secretary.  Now he gets to find out what happened to his money.  Always a charmer, he jokes about it:</p>
<blockquote><p>“I’ve got to find out where my money has been invested,” Paulson, 62, said today after a speech, drawing laughter from the Washington Economic Club.</p>
<p>“You know the old joke about how you make a small fortune? And that is, give a large fortune to a person in a blind trust,” he said today. “I haven’t even thought about how I’m going to be investing my money.”</p></blockquote>
<p>Ah what fun.  Of course, given the impact of his visionary stewardship on most Americans&#8217; portfolios, it&#8217;s easy to imagine that many will have forgotten that he likely only accepted his position of unfailing public service for the <a title="&quot;Public Service&quot; - Hank's Loophole" href="http://www.forbes.com/2006/06/01/paulson-tax-loophole-cx_jh_0602paultax.html" target="_blank"><strong>&gt;$100M tax loophole</strong></a> it afforded him.</p>
<blockquote><p>Before taking the Treasury job, Paulson sold his Goldman Sachs shares and wasn’t required to pay capital gains taxes, according to a June 2006 divestiture notice about a stake that was valued at the time at about $485 million.</p></blockquote>
<p>In this day and age, no self-respecting citizen so much as blinks at a mere ~$170M looting of the nation&#8217;s coffers.  But it does raise the question: which is more ironically piquant?  Our ring-side seats for the hollowing out of the American Republic or our knowledge that we paid through the nose for the privilege?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/01/08/and-this-little-piggy-hollowed-out-our-nation/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
