<?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; performance analysis</title>
	<atom:link href="http://www.puppetmastertrading.com/blog/index.php/category/performance-analysis/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>sensitivity testing</title>
		<link>http://www.puppetmastertrading.com/blog/2009/11/14/sensitivity-testing/</link>
		<comments>http://www.puppetmastertrading.com/blog/2009/11/14/sensitivity-testing/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 16:44:34 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[EMS Internals]]></category>
		<category><![CDATA[back-testing]]></category>
		<category><![CDATA[performance analysis]]></category>
		<category><![CDATA[portfolio management]]></category>
		<category><![CDATA[regime-switching]]></category>
		<category><![CDATA[strategy development]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog/?p=850</guid>
		<description><![CDATA[We&#8217;ve been looking at how a strategy container might view and implement a variety of modes for strategies it will launch and contain.  Last time I documented a uniform initialization process for many of them, including a posited walk-forward parameter optimization mode.  I&#8217;ve implemented an initial version of this that I&#8217;ll illustrate through a screencast [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 260px"><img src="/images/smarmySpock.gif" alt="" width="250" height="188" /><p class="wp-caption-text">&#39;optimization&#39; or &#39;search&#39;?</p></div>
<p>We&#8217;ve been looking at how a strategy container might view and implement a variety of modes for strategies it will launch and contain.  <a title="ready to launch" href="http://www.puppetmastertrading.com/blog/2009/11/08/ready-to-launch/" target="_blank">Last time</a> I documented a uniform initialization process for many of them, including a posited walk-forward parameter optimization mode.  I&#8217;ve implemented an initial version of this that I&#8217;ll illustrate through a screencast (first ever &#8211; be gentle) below, but before continuing want to raise a couple of cautionary notes about the slope we&#8217;re traversing here.</p>
<p>From the <a title="fools gold" href="http://puppetmastertrading.com/blog/2007/09/26/fools-gold/" target="_blank">very first post</a> on this blog I&#8217;ve tried to underline the danger that over &#8216;optimization&#8217; poses in view of the simple unalterable fact that if you look at enough random junk, you are bound to see things that look impossibly good.  Doesn&#8217;t mean they&#8217;re actually good.  In the context of trading strategy development, this is a particular danger as strategy parameter optimizers are easy to come by and can be very misleading if employed naively.  I think this is in part due to the term &#8216;optimization&#8217; which is really a stretch for what these tools do.  They&#8217;re better described as search tools as they are really searching through a tuple-space of possible parameter combinations that you&#8217;ve specified, and then ranking them by some criteria you specify.</p>
<p>They&#8217;re still useful, but less as &#8216;optimizers&#8217; and more as tools for judging the <em>sensitivity </em>of the strategy to different parameterizations.  If the strategy demonstrates good performance and stability over a variety of market conditions and parameterizations, you may just have found yourself a <a title="character of a winner" href="http://www.puppetmastertrading.com/blog/2008/04/04/the-character-of-a-winner/" target="_blank">winner</a>&#8230;</p>
<p>Anyway, I felt that had to be said&#8230;</p>
<p><span id="more-850"></span></p>
<p>Now, I&#8217;ll open the floor to a quick illustration of the initialization process described previously and an example of historical forward-walking.</p>
<p>At this point, I&#8217;m vested in the inquiry we&#8217;d started with the <a title="regime-switching" href="http://www.puppetmastertrading.com/blog/2009/09/13/multi-strategy-trading-with-regimes/" target="_blank">regime-switching post</a> and will apportion time each week towards implementing something like what we&#8217;d described there.  I expect the steps to be something like:</p>
<ol>
<li>historical fwd-walking which I&#8217;ll illustrate today</li>
<li>real-time fwd-walking, that is, dynamically adjusting a live strategy&#8217;s parameters based on a continuously repeated ranking of a concurrent &#8216;live optimization&#8217; of the same strategy</li>
<li>real-time allocation to a portfolio of strategies based on regime-switching where regimes are defined by the performance of a heterogeneous set of strategies we run concurrently (again &#8216;live optimization&#8217;)</li>
<li>peace on earth</li>
</ol>
<p>I may have some of the steps wrong, but am hopeful.  We&#8217;ll adjust as needed.</p>
<p>If interested, please click on the below image/link which will hopefully take you to a screencast.  This is my first-ever attempt to put a screencast in the blog, so please let me know if you have technical difficulties or suggestions on how to improve the experience.  Or if it&#8217;s just a big waste of time!</p>
<p>In the screencast I give a quick illustration of a simple backtest, a simple parameter optimization and finally a fwd-walk.  I&#8217;ll appreciate your feedback.</p>
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://www.puppetmastertrading.com/images/flash/fwdWalk-Stratbox/fwdWalk-Stratbox.html"><img class=" " src="/images/forwardWalkScreencast.jpg" alt="click" width="400" height="311" /></a><p class="wp-caption-text">&gt;click&lt;</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2009/11/14/sensitivity-testing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</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>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>portfolio: atomic element of a trading strategy</title>
		<link>http://www.puppetmastertrading.com/blog/2008/09/13/portfolio-atomic-element-of-a-trading-strategy/</link>
		<comments>http://www.puppetmastertrading.com/blog/2008/09/13/portfolio-atomic-element-of-a-trading-strategy/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 17:23:56 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[performance analysis]]></category>
		<category><![CDATA[portfolio management]]></category>
		<category><![CDATA[strategy development]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog-test/?p=85</guid>
		<description><![CDATA[ A friend recently asked me what I considered to be the &#8220;axioms&#8221; of alpha-seeking trading strategies.  I think there are a few, but probably the one that seems to me most important is that the atomic element of a trading strategy should always be a portfolio as opposed to a single instrument.
In a [...]]]></description>
			<content:encoded><![CDATA[<p><img hspace="5" align="left" alt="A wall st risk manager's favorite pastime?" title="A wall st risk manager's favorite pastime?" src="http://puppetmastertrading.com/images/eggs_in_one_basket.jpg" /> A friend recently asked me what I considered to be the &#8220;axioms&#8221; of alpha-seeking trading strategies.  I think there are a few, but probably the one that seems to me most important is that the atomic element of a trading strategy should always be a portfolio as opposed to a single instrument.</p>
<p>In a scenario of perfect knowledge, this wouldn&#8217;t be true.  If you somehow *know* with certainty that crude will go up or that Citigroup will go down, then concentrating all of your resources into a position based on that belief might be reasonable.  But knowledge seldom comes in such a neat package (and will frequently be illegal to act upon when it does!).</p>
<p>Instead, knowledge will typically come in more conditional and less certain forms: &#8220;commodities tend to rise during periods of FUD [Fear-Uncertainty-Doubt]&#8221; or &#8220;companies who announce stadium naming rights deals tend to under-perform.&#8221;  In some cases, perhaps the knowledge on which you&#8217;ll base your strategy can be quantified probabilistically.</p>
<p>Depending on the nature and quality of the knowledge or hypothesis that forms the basis for a given strategy, one can adapt one&#8217;s portfolio construction/optimization based on customized relationships amongst the potential portfolio constituents.  But one doesn&#8217;t need to be so fancy to see the concrete benefits of our first axiom.  Below I detail a simple strategy I&#8217;ve put together to explore the forces involved.</p>
<p><span id="more-85"></span></p>
<p>The strategy I&#8217;ve built constructs a completely random, equally weighted long-short portfolio every day and liquidates the portfolio at the end of the day.  Specifically, everyday the strategy:</p>
<ol>
<li>Looks at all equities in the database that are available to trade.  There were a bit more than ~4K equities available on any given day for this test.</li>
<li>Constructs a portfolio composed of N equities selected at random from the available equities.Â  The portfolio has a fixed number of dollars available to it ($500K) and thus each position within the portfolio will be of size $500K/N or less.  Orders are always scaled down so that we&#8217;re trading round lots (ie, qty%100=0) and if we can&#8217;t buy 100 shares of a particular name (eg, Berkshire Hathaway) then that money goes unused until the following day.</li>
<li>Half of the components in the portfolio are bought and half are sold so that we have a dollar-neutral portfolio.</li>
<li>Positions are entered at the open and exited at the close.  (For these kinds of position sizes, this turns out to be a reasonable assumption, as we&#8217;ve illustrated <a target="_blank" title="Execution quality at the open &#038; close" href="http://puppetmastertrading.com/blog/2008/08/01/execution-quality-at-the-open-close/">here</a>.)Â  No stops are employed.</li>
</ol>
<p>That&#8217;s it.  The strategy only exposes ONE parameter for tweaking: N &#8211; how many names to hold in the portfolio.  I varied this parameter across the set { 2, 4, 6,&#8230;, 12 } and ran each value 100 times across one year of data.</p>
<p>By selecting the portfolio&#8217;s components randomly, I&#8217;m trying to ensure that the strategies are truly non-predictive and thus should have an expected return of $0 without applying friction.  By creating a dollar-neutral portfolio, I&#8217;m trying to ensure that we&#8217;re not accidentally capturing beta.  What I&#8217;m looking to illustrate is the relationship between the number of elements comprising the portfolio and the risk-adjusted performance of the strategy.</p>
<p>As the following distributions illustrate, the strategy does indeed seem appropriately non-predictive. The distributions are normal and shifted to the left due to the application of realistic fees &#038; commissions.  As I&#8217;d warned in my <a target="_blank" title="fools gold" href="http://puppetmastertrading.com/blog/2007/09/26/fools-gold/">very first series of posts</a>, the random set of strategies did produce some nice-looking outliers, but we&#8217;re past being fooled by this pyrite of data-mining bias.</p>
<p><img title="Distributions" alt="Distributions" src="http://puppetmastertrading.com/images/eggDistr.jpg" /></p>
<p>Also in terms of showing volatility&#8217;s relation to (even trivial) diversification, the experiment did not disappoint.  While there&#8217;s essentially no relation between the profitability of a strategy and the portfolio size, there is a strong negative relationship between the volatility of the strategy and the diversification employed.  Furthermore, the benefits of diversification happen quickly and soon taper off as we can see when we look at the table and chart comparing the number of elements in our portfolio with the average vol across the hundred relevant strategies.</p>
<p><img title="volatility vs diversification" alt="volatility vs diversification" src="http://puppetmastertrading.com/images/eggStats.jpg" /></p>
<p>There&#8217;s nothing new about this result.  <a target="_blank" title="Harry Markowitz" href="http://en.wikipedia.org/wiki/Harry_Markowitz">Harry Markowitz</a> had explained these phenomena with infinitely greater rigor over half a century ago!  But judging from what is published in popular &#8220;trading strategies&#8221; books and periodicals and even the baseline capabilities of algorithmic trading platforms, it appears that people persist in trying to beat the market without using what is perhaps their most potent weapon.</p>
<p>There&#8217;s an <em>almost </em>good reason for this that&#8217;s like the parable of the fellow who loses his key on the street but decides to limit his search to the area illuminated by a nearby lamppost.  When asked where he&#8217;d lost the key, he indicates that he&#8217;d lost it somewhere on the street but was searching under the lamppost because the light was so much better there.Â  Writing a single instrument strategy can be difficult enough on its own and adding instruments can make it substantially more difficult.  But that&#8217;s also not a good reason to persist in limiting the scope of one&#8217;s efforts!<br />
<img alt="lamppost fallacy" title="lamppost fallacy" src="http://puppetmastertrading.com/images/streetlight.jpg" /></p>
<p>While there&#8217;s no claim to originality in this example, I hope that it&#8217;s nonetheless illuminating to see that even an <em>intentionally</em> non-predictive strategy can be mechanically improved.  And we haven&#8217;t even applied all of the lessons of portfolio construction that we might have.  Thus, while writing a worthwhile strategy remains difficult, one can see that there are some very well understood baseline tools that can be mechanically applied to any strategy that will yield material improvements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2008/09/13/portfolio-atomic-element-of-a-trading-strategy/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>execution quality at the open &amp; close</title>
		<link>http://www.puppetmastertrading.com/blog/2008/08/01/execution-quality-at-the-open-close/</link>
		<comments>http://www.puppetmastertrading.com/blog/2008/08/01/execution-quality-at-the-open-close/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 15:50:35 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[back-testing]]></category>
		<category><![CDATA[execution quality]]></category>
		<category><![CDATA[performance analysis]]></category>
		<category><![CDATA[post-trade analysis]]></category>
		<category><![CDATA[strategy development]]></category>

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

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

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog-test/?p=73</guid>
		<description><![CDATA[
I mentioned several weeks ago that I&#8217;ve been developing and trading a strategy that&#8217;s proven to be quite interesting and profitable.Â  In that post, I described how I&#8217;d tried to improve the strategy through the use of a dynamic hedge.  The results of that crude hedge were quite good, but just as no [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="(d)evolution" title="(d)evolution" src="http://puppetmastertrading.com/images/devolution.jpg" /></p>
<p>I mentioned several weeks ago that I&#8217;ve been developing and trading a strategy that&#8217;s proven to be quite interesting and profitable.Â  In <a target="_blank" title="Unsung virtues of a dynamic hedge" href="http://puppetmastertrading.com/blog/2008/06/04/unsung-virtues-of-a-dynamic-hedge/">that post</a>, I described how I&#8217;d tried to improve the strategy through the use of a dynamic hedge.  The results of that crude hedge were quite good, but just as no worthwhile software project is ever really complete, trading strategies demand constant iterative development.</p>
<p>Below I describe some of the steps I&#8217;ve taken to incrementally improve this strategy, discarding the relatively expensive hedge I&#8217;d developed earlier in favor of a complementary strategy.  We see that when you combine two positive and uncorrelated results, you end up with a product that is literally better than the sum of its parts.</p>
<p><span id="more-73"></span></p>
<p>The core strategy has remained the same, though the universe of instruments it trades has been both expanded &#8211; through the inclusion of a broader set of equities &#038; ETFs &#8211; and contracted &#8211; through the application of some filters which prevent trading of some of the instruments under various conditions.  These change have yielded a few more points of annualized return with minimal impact on volatility.</p>
<p>As I&#8217;d mentioned, the core strategy builds a portfolio of shorts which is sold at the open and bought back at the close.  One of the problems with the original hedge is that it had a cost &#8211; literally.  In order to hedge my portfolio, I needed to cut-back the size of my portfolio to accommodate the cost of the hedge.  I mitigated this issue to some degree by employing futures instead of a broad market ETF, but this still reduced my usable capital by approximately 10-15%.  I also had my money sitting idle overnight which seemed a particularly profligate behavior.</p>
<p>This led to the study I described <a title="to dream" target="_blank" href="http://puppetmastertrading.com/blog/2008/07/14/to-dream/">last time</a> in which I observed the relative out-performance of the broad US equity markets overnight.  If I could somehow find a way to capture some of this overnight alpha, I&#8217;d be able to both hedge my main strategy and better utilize my capital.</p>
<p>My first effort at such a strategy happily achieves both aims by assembling a long portfolio which is held overnight.  In the chart below, I capture the returns of the two strategies independently and combined.  The core daytime strategy is denoted as &#8220;OpenClose&#8221; or OC whilst the night-time strategy isÂ  &#8220;CountingSheep&#8221; or CS.  Both assume an initial capitalization of $1M, employ no leverage and do not reinvest returns &#8211; each day or night they assemble a portfolio with the same $1M and profits are put aside and don&#8217;t generate interest.</p>
<p><img align="middle" title="NightAndDay NAV Chart" alt="NightAndDay NAV Chart" src="http://puppetmastertrading.com/images/nightAndDayChart.jpg" /></p>
<p>The chart is nice and certainly a big improvement over the earlier hedged approach, but the real power of combining these two strategies is revealed in the two tables below.  The first characterizes their risk-adjusted performance independently and then when combined.  Both have a Sharpe ratio of around 2.0, but when combined they yield a new strategy which is about 25% better on a risk-adjusted basis.  These cells are highlighted.<br />
<img align="middle" title="Returns" alt="Returns" src="http://puppetmastertrading.com/images/nightAndDayReturns.jpg" /></p>
<p>The key to their compatibility is their correlation.  Or, actually, their absence of correlation.  In the below table, you can see the correlations of their returns to one another and broad market ETFs. The short daytime strategy is, not surprisingly, negatively correlated with the broad market while the long night time strategy is positively correlated. The beauty of their combination lies in the lack of correlation between the two of them (highlighted) &#8211; they&#8217;re essentially uncorrelated.</p>
<p><img align="middle" alt="Correlation matrix" title="Correlation matrix" src="http://puppetmastertrading.com/images/nightAndDayCorrs.jpg" /></p>
<p>I hope this post illustrates a couple of different vectors along which strategies can be evolved; in this case, to better manage risk and utilize capital.</p>
<p>One of the key remaining limitations of this particular strategy is its capacity. Increasing the capacity of a relatively short-term strategy like this one requires optimization of the trade executions which is its own black art but one that plenty of smart people are constantly addressing. Perhaps in a future post I&#8217;ll review some of the techniques applied to this problem for another perspective on the iterative development/evolution of trading strategies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2008/07/21/evolution-of-a-strategy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>unsung virtues of a dynamic hedge</title>
		<link>http://www.puppetmastertrading.com/blog/2008/06/04/unsung-virtues-of-a-dynamic-hedge/</link>
		<comments>http://www.puppetmastertrading.com/blog/2008/06/04/unsung-virtues-of-a-dynamic-hedge/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 14:54:45 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[performance analysis]]></category>
		<category><![CDATA[portfolio management]]></category>
		<category><![CDATA[strategy development]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog-test/?p=63</guid>
		<description><![CDATA[
I&#8217;ve recently been working-on and trading an equity strategy that has some great characteristics and some interesting challenges.  The great characteristics revolve around its profitability, volatility and simplicity.  The challenges start with the fact that the strategy generates alpha on the short side &#8211; thus, you are intrinsically swimming against the tide and [...]]]></description>
			<content:encoded><![CDATA[<p><img align="middle" alt="unsung virtues of a dynamic hedge" title="unsung virtues of a dynamic hedge" src="/images/hedge.jpg" /></p>
<p>I&#8217;ve recently been working-on and trading an equity strategy that has some great characteristics and some interesting challenges.  The great characteristics revolve around its profitability, volatility and simplicity.  The challenges start with the fact that the strategy generates alpha on the short side &#8211; thus, you are intrinsically swimming against the tide and can conceivably be ruined in a hurry.  Your broker might also be unable to find inventory to short.  Other challenges include the native capacity of the strategy &#8211; it&#8217;s not fundamentally scalable as a strategy and only a relatively small amount of money could be put against it without incurring increasingly onerous costs and risks.  In any case, it&#8217;s been a fun strategy to develop as it&#8217;s an interesting puzzle and it makes money.</p>
<p>Discussing the strategy recently with a potential client, they observed that such a strategy wouldn&#8217;t be acceptable within their environment (apart the capacity issues) as their risk management practices required all strategies to maintain dollar neutrality &#8211; for any dollar of x that they used to buy something, they needed to sell a dollar of y.  This led to an interesting experiment for me, the results of which I share with you below.</p>
<p><span id="more-63"></span> I wrote a simple, dynamic dollar-neutral hedging <a title="StratParts: a strategy component model" target="_blank" href="http://puppetmastertrading.com/blog/2008/04/12/stratparts-a-strategy-component-model/">StratPart</a> which would do as this trader had described: for any amount of money the strategy spent, the dynamic hedger would employ the same <em>notional </em>amount of money on the other side of the market on a specified instrument.  Thus, configured to hedge with the SPY, it would buy $100K of SPY for any $100K my strategy sold.  I say &#8220;notional&#8221; because if the StratPart is configured with a future, then it would buy the appropriate number of contracts based on the notional value of the futures position.</p>
<p>This was about the simplest imaginable StratPart and it didn&#8217;t take more than an hour to get it working.  In spite of the simplicity of implementation, the results were surprising and, honestly, delightful.  The below table characterizes the strategy&#8217;s performance in a few different configurations: the raw/unhedged strategy, hedged with the SPY, and hedged against ES (s&#038;p emini future).</p>
<p><img align="middle" alt="Return profiles" title="Return profiles" src="/images/hreturns.jpg" /></p>
<p>As I&#8217;d mentioned, the unhedged strategy is already quite nice.  Adding the SPY hedge has a very nice effect in that you dampen both volatility and profitability, but in a positive ratio such that the resulting risk-adjusted behavior is better than the raw strategy.  That said, the cost of the hedge is quite high and this limits the overall profitability quite substantially.  The futures hedge addresses this with its lower costs.  It maintains the profitability of the raw strategy while mixing-in the excellent volatility-adjusted performance of the hedge.   These returns are calculated against historical data from 2003.  The returns are *not* being reinvested.  The below graph illustrates the NAV for each of these configurations assuming an initial cash position of $1M.<br />
<a title="Click to enlarge" target="_blank" href="/images/dhchart.jpg"><img align="middle" alt="$1M at risk" title="$1M at risk" src="/images/dhchart.jpg" /></a></p>
<p>Clearly, this is a nice and cheap improvement to the base strategy.  And there&#8217;s still clear room for improvement.  One of the problems with this hedge is that the strategy itself is essentially uncorrelated with the S&#038;P500.  Thus, the hedge does a very suboptimal job of damping the strategy&#8217;s native volatility.  A more correlated instrument or set of instruments would likely yield better results.</p>
<p>All the same, the results were very easy to implement within StratBox and pretty dramatically illustrate the unsung virtues of a dynamic hedge.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2008/06/04/unsung-virtues-of-a-dynamic-hedge/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>quantifying friction</title>
		<link>http://www.puppetmastertrading.com/blog/2008/05/06/quantifying-friction/</link>
		<comments>http://www.puppetmastertrading.com/blog/2008/05/06/quantifying-friction/#comments</comments>
		<pubDate>Tue, 06 May 2008 14:52:00 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[back-testing]]></category>
		<category><![CDATA[hedge funds]]></category>
		<category><![CDATA[performance analysis]]></category>
		<category><![CDATA[strategy development]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog-test/?p=61</guid>
		<description><![CDATA[I recently had a pretty visceral encounter with the forces of friction.  No, I didn&#8217;t fall off my bike &#8211; I&#8217;m talking about the friction inherent in trading activities.  I&#8217;ve mentioned Andrew Lo&#8217;s market-neutral long-short algorithm before and it sees service as my blogging muse once again.  I&#8217;ve modified his original algorithm [...]]]></description>
			<content:encoded><![CDATA[<p><img hspace="10" align="left" title="Pay Toll" alt="Pay Toll" src="/images/paystoptoll.jpg" />I recently had a pretty visceral encounter with the forces of friction.  No, I didn&#8217;t fall off my bike &#8211; I&#8217;m talking about the friction inherent in trading activities.  I&#8217;ve mentioned <a title="MIT's Professor Andrew Lo" target="_blank" href="http://web.mit.edu/alo/www/">Andrew Lo</a>&#8217;s market-neutral long-short algorithm <a title="Prudent and disastrous" target="_blank" href="http://puppetmastertrading.com/blog/2008/02/04/prudent-and-disastrous/">before</a> and it sees service as my blogging muse once again.  I&#8217;ve modified his original algorithm such that it behaves reasonably well though, as he observes, it&#8217;s a strategy in long term decline.  My recollection was that one might expect 15-20% from an unlevered deployment of the strategy.</p>
<p>Recently, I went to play with it and to my shock and horror it had become a wretched loser.  In fact, an incredible loser.  What had happened?  I looked throughout my code and couldn&#8217;t find changes; this was corroborated by my CVS repository &#8211; no changes had been made to the strategy in a long while.  Any coder is familiar with the natural entropy of software systems known pejoratively as &#8220;<a target="_blank" title="code rot" href="http://en.wikipedia.org/wiki/Software_rot">code rot</a>&#8221; but this seemed an especially extreme case.</p>
<p><span id="more-61"></span></p>
<p>To make a long story short(er), I eventually realized that the code hadn&#8217;t changed and the data hadn&#8217;t changed, but that my configuration defaults had changed &#8211; specifically those governing trading commissions and fees for equities. We&#8217;d recently done a client project in which the client had a pretty inefficient/expensive trading platform that made up for its cost by virtue of its facility for conveniently handling large numbers of managed accounts.  In any case, in developing that client&#8217;s trading strategy I had set costs for trading equities out to a penny a share a trade to ensure that we had a system robust enough to withstand the costs inherent in their trading platform.</p>
<p>The difference this made on Dr. Lo&#8217;s strategy is pretty remarkable and so I&#8217;ll share it with you.</p>
<p>Without friction, my modified version of Dr Lo&#8217;s strategy yielded the following (back-tested) results since last May 1st:</p>
<p><img align="middle" alt="Without friction" title="Without friction" src="/images/noFriction.jpg" /></p>
<p>Now, it&#8217;s a bumpy ride, no doubt, but a potentially rewarding one for those who can handle the volatility.  With returns like that, one could conceivably seek to dampen the vol and then lever the strategy.  Of course, this is assuming that one can actually execute the strategy profitably.</p>
<p>Assuming that every trade costs $.01 / share totally reverses the results of the strategy:</p>
<p><img align="middle" title="$.01 / share / trade" alt="$.01 / share / trade" src="/images/1centFriction.jpg" /></p>
<p>That looks pretty bad, right?  This is what I returned to upon revisiting this strategy.  In my effort to determine what had happened, I inverted the strategy to see how it&#8217;s inverse behaved.  Corroborating observations I&#8217;ve made here previously, this didn&#8217;t help and so we had the degenerate case where a strategy and its inverse were both terrible losers.  It&#8217;s a lot less bizarre than intuition might suggest!</p>
<p>Assuming somewhat more realistic friction for a sophisticated hedge fund, we get results more in line with what my recollection had suggested.  It&#8217;s very possible for a fund to bear costs of somewhat less than 1/10 of a penny per share traded, but in keeping with a conservative approach, I illustrate the returns with costs pegged at 1/8 of a penny per share traded:</p>
<p><img align="middle" alt="1/8th of a penny / share / trade" title="1/8th of a penny / share / trade" src="/images/eighthCentFriction.jpg" /></p>
<p>It&#8217;s a pretty remarkable difference and it illustrates the knife&#8217;s edge upon which one must dance to profitably execute an entire class of potentially fruitful quantitative strategies!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2008/05/06/quantifying-friction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the character of a winner</title>
		<link>http://www.puppetmastertrading.com/blog/2008/04/04/the-character-of-a-winner/</link>
		<comments>http://www.puppetmastertrading.com/blog/2008/04/04/the-character-of-a-winner/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 14:31:13 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[back-testing]]></category>
		<category><![CDATA[performance analysis]]></category>
		<category><![CDATA[portfolio management]]></category>
		<category><![CDATA[strategy development]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog-test/?p=52</guid>
		<description><![CDATA[He didn&#8217;t look like much, but old Rocky Marciano put his back into every  awkward punch he threw.  More remarkably, he remains the only heavyweight champion to have ever been smart enough to get out of the game on top.  He was that rarest of characters &#8211; a winner who knew when [...]]]></description>
			<content:encoded><![CDATA[<p><img hspace="5" align="left" alt="Rocky Marciano, history's only undefeated heavyweight champion" title="Rocky Marciano, history's only undefeated heavyweight champion" src="/images/Rocky_Marciano.jpg" />He didn&#8217;t look like much, but old Rocky Marciano put his back into every  awkward punch he threw.  More remarkably, he remains the only heavyweight champion to have ever been smart enough to get out of the game on top.  He was that rarest of characters &#8211; a winner who knew when to engage and when to step away.</p>
<p>I&#8217;ve written a good deal about <a title="sucker punch" href="http://puppetmastertrading.com/blog/2007/09/26/sucker-punch-an-example/">losers</a> and <a title="fools gold" href="http://puppetmastertrading.com/blog/2007/09/26/fools-gold/">ideas</a> that might not yield the results one&#8217;s looking (<a title="inverting stupid" href="http://puppetmastertrading.com/blog/2008/01/22/inverting-stupid/">hoping</a>) for, but I haven&#8217;t written too much about life&#8217;s winners.  This, of course, is absolutely par for the course amongst traders.  People aren&#8217;t in the habit of giving away trade secrets, leaving sums of money on the sidewalk  or revealing their trading strategies.  When they do (or claim to) is likely a good time to keep an especially watchful eye on your possessions&#8230;</p>
<p><span id="more-52"></span><br />
Thus, while I&#8217;m certainly not going to reveal any trade secrets or the internals of profitable trading strategies, it makes sense to address the issue of how to know when you&#8217;ve got something that&#8217;s good as opposed to just lucky or excessively curve-fitted.</p>
<p>We&#8217;ve recently been fortunate to partner with an experienced portfolio manager.  Like all of these kinds of organizations, they keep their cards close to their chest, so I won&#8217;t reveal who they are just yet, but at some point they might be open to exposing their part in the relationship.  In any case, they came to us about six months ago with an US equity sector rotation model based on a sweet kernel of an idea for creatively ranking sectors and the names within it.  The essential characteristic of the strategy that made it a winner is simple.  What it does really well is one of the hardest things in trading: figuring out when to let a trade go.  This portfolio-management  trend-following strategy has the lucrative ability to <em>let its winners run while dropping its losers.</em></p>
<p>How can we characterize that a bit less loosely?  Consider the below sets of distributions.  The top one captures the overall strategy returns for 300 permutations of the strategy while the bottom one captures the returns on individual trades across all 300 instances of the strategy.</p>
<p><a target="_blank" href="/images/e2003dist.png"><img align="middle" alt="distributions of returns" title="distributions of returns" src="/images/e2003dist.png" /></a></p>
<p>The top distribution looks pretty normal, albeit shifted rather smartly rightward of a random strategy (which should be centered somewhere around $0).  The more interesting distribution, though, is that at the trade level where we can <strong><em>see</em></strong> that the strategy is letting its winners run while sharply curtailing the losers.  It&#8217;s worth noting that the strategy doesn&#8217;t use stops or targets.  If it had stops, say set at -20%, then we would inevitably see a clustering around that value.  Instead, we see a natural sloping &#8211; but short &#8211; tail extending off to the left while on the right, we appreciate a felicitous long tail of profits.</p>
<p>The solidity of the strategy is underscored by the excellent performance it exhibits across all permutations, that is, it is not excessively sensitive to how it&#8217;s configured.  Clearly, this is not a case where a data-mining exercise has yielded a normal distribution around $0 and we&#8217;ve slyly picked a convenient outlier.   Although I don&#8217;t illustrate it here, we&#8217;ve also seen that the strategy behaves well across both different time periods and across different markets.</p>
<p>In its original format, the strategy was a brute which exhibited tremendous historical profitability but was perturbed by gut-wrenching volatility which left it with a sharpe in the .5-.8 range in spite of returns far above the broad market.   Not bad, but not for the faint of heart and certainly not applicable in most institutional contexts.</p>
<p>The distributions above are from a more refined model which does away with the notion of sectors, replacing them with categories of global ETFs.  The average sharpe amongst this family of strategies is above 1 and the average trade yields a profit of  over 2.5% across many time frames and sets of markets.  Our continued development on the model has shown it amenable to treatment with some form of 130/30, 120/20, &#038;tc. formulation.</p>
<p>The keys elements which identify this strategy as a winner and not just a pretender are:</p>
<ul>
<li>it&#8217;s not excessively  sensitive to particular parameters</li>
<li>even the worst permutations of the strategy are winners (they beat relevant benchmarks by volatility-adjusted measures)</li>
<li>it&#8217;s successful across a variety of time periods</li>
<li>it&#8217;s successful for long time periods</li>
<li>it&#8217;s successful across a wide set of markets</li>
</ul>
<p>In a later post I hope to discuss the detailed process we went through to develop incremental improvements across iterations of the model (and possibly some of the marketing materials we&#8217;ve developed for the product), but it&#8217;s important to note that data-mining was no part of its development.  Instead, we used the analytical and simulation capabilities of our platform to quantitatively identify the underlying nature of the strategy through each iteration.  Between iterations, we used old fashioned creativity and &#8211; yes &#8211; (educated) guesswork to determine further enhancements and refinements we&#8217;d try.</p>
<p>Winners come in all different shapes and sizes, but they share important and identifiable core characteristics; I hope this post provides some insights into how you can quantitatively identify those characteristics in your own strategy development efforts.</p>
<p><img align="middle" alt="different looks, but the same winning spirit" title="different looks, but the same winning spirit" src="/images/navratilova.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2008/04/04/the-character-of-a-winner/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;prudent and&#8230; disastrous&#8221;</title>
		<link>http://www.puppetmastertrading.com/blog/2008/02/04/prudent-and-disastrous/</link>
		<comments>http://www.puppetmastertrading.com/blog/2008/02/04/prudent-and-disastrous/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 13:51:42 +0000</pubDate>
		<dc:creator>tito</dc:creator>
				<category><![CDATA[events]]></category>
		<category><![CDATA[performance analysis]]></category>
		<category><![CDATA[portfolio management]]></category>
		<category><![CDATA[strategy development]]></category>

		<guid isPermaLink="false">http://www.puppetmastertrading.com/blog-test/?p=40</guid>
		<description><![CDATA[
This past week I had the opportunity to see MIT&#8217;s Professor Andrew Lo present his paper &#8220;What Happened to the Quants In August 2007?&#8221; as part of the seminar series on quantitative finance  presented by NYU and Columbia and sponsored by BlackRock and other relevant institutions.  If you&#8217;re in the NYC area and [...]]]></description>
			<content:encoded><![CDATA[<p><img hspace="5" border="1" align="left" alt="An early risk management innovator" title="An early risk management innovator" src="http://puppetmastertrading.com/images/homov.jpg" /></p>
<p>This past week I had the opportunity to see MIT&#8217;s Professor <a target="_blank" title="Professor Andrew Lo" href="http://web.mit.edu/alo/www/">Andrew Lo</a> present his paper <a target="_blank" title="August Quants " href="http://web.mit.edu/alo/www/Papers/august07_2.pdf">&#8220;What Happened to the Quants In August 2007?&#8221;</a> as part of the <a target="_blank" title="Quantitative Finance Seminars" href="http://www.cfe.columbia.edu/seminars/NY_Quantitative_Finance/index.html">seminar series</a> on quantitative finance  presented by <a target="_blank" title="Courant Finance" href="http://math.nyu.edu/financial_mathematics/">NYU</a> and <a target="_blank" title="Columbia Financial Engineering" href="http://www.cfe.columbia.edu/index.html">Columbia </a>and sponsored by <a title="BlackRock" target="_blank" href="http://www2.blackrock.com/global/home/index.htm">BlackRock</a> and other relevant institutions.  If you&#8217;re in the NYC area and interested in such things, I recommend attending any lectures which might capture your fancy.</p>
<p>I had read his paper some time back and implemented, within the <a target="_blank" title="Puppetmaster Trading Workbench" href="http://puppetmastertrading.com/">Puppetmaster</a> environment, the mean-reversion trading strategy he used as a microscope into what transpired last August.  I was interested to see him speak as he&#8217;s a seminal thinker on hedge funds and quantitative finance, but also because the strategy he described works pretty well and I thought he might hint at various improvements.</p>
<p>I&#8217;ve stolen a line from his paper to serve as the title of this post as it captures one of the central dilemmas faced by algorithmic traders.</p>
<p><span id="more-40"></span> The quote is:</p>
<blockquote>
<p align="left">In the face of the large losses of August 7-8, most of the affected funds &#8211; which includes market-neutral, long/short equity, 130/30, and certain long-only funds &#8211; would likely have cut their risk prior to Thursday&#8217;s open by reducing their exposures or &#8220;de-leveraging&#8221;, either voluntarily or because they exceeded borrowing and risk limits set by their prime brokers and other creditors. <em>This was both prudent and, unfortunately, disastrous.</em></p>
<p align="left">
</blockquote>
<p>My business partner likes to speak of the <em>art and science</em> of algorithmic trading and, while it might make me cringe as a bit touchy-feely, this is a perfect example of where she&#8217;s precisely right.  In the case Professor Lo describes, these funds may have been compelled to unwind their strategies as they were excessively levered.  (Ironically, the funds that were able to hold fast were almost immediately rewarded with record gains which nearly offset the record losses they&#8217;d incurred.)  But there&#8217;s a general problem here for quantitative strategies, namely, what to do when a profitable strategy incurs unusual losses?</p>
<p>While there&#8217;s considerable science which can be applied to this question, at the end of the day the decisions one makes or, better &#8211; the policies one establishes &#8211; rely as much on the &#8220;art&#8221; the practitioner applies as any quantitative measure which can be objectively administered.  Since a significant advantage of programmatic execution is that it takes such discretionary decision-making out of the trading equation, this is an issue of some consequence.   While there&#8217;s no magical formula that I know of, there are at least two reasonable approaches to the question.</p>
<p>The first is to have a coherent understanding as to why your strategy is profitable, so that when it seems to stop working you can develop and test explanatory hypotheses with an eye towards developing a well-reasoned approach to the issue.   Of course, if your strategy is the result of some sort of data-mining effort, than this can be difficult or impossible &#8211; yet another argument against a purely data-mining approach to strategy development!  In the example Dr. Lo provides, an astute practitioner might be able to deduce that similar strategies had over-committed and been forced to liquidate; patience might be maintained while the world reverted to a (hopefully!) profitable state of equilibrium.  While this approach may be workable in some cases, it seems to ask a lot from the practitioner as a day-to-day policy and might cause more problems than it resolves in the heat of the moment.</p>
<p>The second and probably more workable approach is to structurally minimize the problem by treating strategies like financial instruments in their own right and then apply traditional portfolio management techniques to their allocation.   With this approach, we might only allow some fraction of our (levered) portfolio to be managed by any particular algorithm and partner it with other strategies which exhibit negative or complementary correlation characteristics.  While it&#8217;s well-understood that in periods of serious financial dislocation &#8220;correlations go to 1&#8243; and thus this approach won&#8217;t cure all ills, it provides a sound decision-making foundation for addressing the issue.  Dynamic portfolio re-balancing schemes can thus be used to address these cases perhaps in concert with an effort to understand the root causes of the under-performance.</p>
<p>It&#8217;s certainly possible that even a sophisticated and automated application of portfolio management to this problem would yield similarly prudent yet disastrous results, but this seems to me to provide the best framework for reasoning about such issues and implementing appropriate preventive policies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.puppetmastertrading.com/blog/2008/02/04/prudent-and-disastrous/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
