<?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>Au.Tra.Sy blog - Automated trading System &#187; Money Management</title>
	<atom:link href="http://www.automated-trading-system.com/category/money-management/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.automated-trading-system.com</link>
	<description>Systematic Trading research and development, with a flavour of Trend Following</description>
	<lastBuildDate>Tue, 07 Feb 2012 09:58:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Futures Trading and Small Account</title>
		<link>http://www.automated-trading-system.com/futures-trading-and-small-account/</link>
		<comments>http://www.automated-trading-system.com/futures-trading-and-small-account/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 03:12:42 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Futures]]></category>
		<category><![CDATA[Money Management]]></category>
		<category><![CDATA[Strategies]]></category>
		<category><![CDATA[diversification]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=4144</guid>
		<description><![CDATA[I recently spent more time doing &#8220;reading research&#8221; rather than &#8220;testing research&#8221;. As result, this post resembles a collection of links on ideas seen on the web of how to trade futures with a small account &#8211; one of the topics I have been interested in. The Issue: Diversification with Small Account A small account [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2011/07/Starling-swarm-midlander1231b.jpg" alt="" title="Starling swarm - midlander1231b" width="266" height="400" class="alignnone size-full wp-image-4146" /></p>
<p>I recently spent more time doing &#8220;reading research&#8221; rather than &#8220;testing research&#8221;. As result, this post resembles a collection of links on ideas seen on the web of <strong>how to trade futures with a small account</strong> &#8211; one of the topics I have been interested in.</p>
<h3>The Issue: Diversification with Small Account</h3>
<p>A small account size &#8211; or starting equity &#8211; can make it difficult to achieve diversification (<em>a &#8220;free lunch&#8221; with a high &#8220;cover charge&#8221;</em> as described in <a href="http://www.automated-trading-system.com/futures-vs-etfs/">this post</a> &#8211; you can read more on diversification and correlation from this blog <a href="http://www.automated-trading-system.com/trading-diversification-free-lunch/">here</a> and <a href="http://www.automated-trading-system.com/the-good-the-bad-and-the-ugly-portfolios/">here</a>).</p>
<p><strong>Diversification</strong> can be achieved by trading a large number of components in a portfolio, whether &#8220;components&#8221; represent:</p>
<ul>
<li>Instruments</li>
<li>Systems</li>
<li>Timeframes</li>
</ul>
<h3>Instruments Diversification</h3>
<p>&#8220;Instruments&#8221; is usually the first aspect that comes to mind when thinking about diversification.<br />
Including more assets/markets/instruments in a portfolio is often described as the &#8220;free lunch&#8221; &#8211; and this is one of the main reasons why large CTAs often include upwards of 100 markets in their portfolio selection.</p>
<p>A small account most likely cannot trade a portfolio of 100+ instrument. This is an issue that <span id="more-4144"></span>Dean Hoffman tries to address in this article: <a href="http://www.hoffmanassetmanagement.com/?p=68" rel="nofollow" target="_blank">The Conundrum of Small Managed Futures Accounts</a>.</p>
<p>Noting that most <em>diversified</em> trend follower CTAs have a minimum account size of at least $1M, Hoffman describes the advantages of trading larger accounts (able to trade many instruments including those with high margin requirements, more granular position sizing with contract scaling).</p>
<p>Hoffman then describes <strong>Dynamic Portfolio Selection</strong> as a potential solution for small accounts to achieve increased results from a &#8220;virtual high diversification&#8221;. The system monitors a large set of instruments but instead of taking all signals (as a diversified trend follower would most likely do), it evaluates and ranks each instrument relatively (based on each market&#8217;s potential on a risk-adjusted basis), resulting in about 90% of trading signals being filtered out. This naturally cuts down the number of positions held at the same time, and consequently the required account size.</p>
<p>As this is mostly a &#8220;marketing&#8221; article for Hoffman&#8217;s CTA offering (implementing this concept), there is not much more information on what sort of filtering is applied to select the &#8220;best&#8221; signals but the general idea is worth investigating (and you can check for yourself whether their performance seems to hold up against the theory).</p>
<p>The subject of dynamic portfolio selection has also been covered in the inevitable <a href="http://www.tradingblox.com/forum/index.php" rel="nofollow" target="_blank">Trading Blox forums</a> in this <a href="http://www.tradingblox.com/forum/viewtopic.php?p=15743" rel="nofollow" target="_blank">&#8220;Dynamic Portfolio Selection&#8221; post</a> started by Dean Hoffman himself.</p>
<p>A couple of posts on this blog also describe potential filtering ideas based on <a href="http://www.automated-trading-system.com/volatility-filters/">relative market volatility</a> and <a href="http://www.automated-trading-system.com/trade-with-the-big-trend/">higher-level trend direction</a>.</p>
<p>This idea of filtering trades is not new: the Turtles used to use the concept decades ago, as mentioned by TB forum user sluggo in <a href="http://www.tradingblox.com/forum/viewtopic.php?p=44931&#038;highlight=skip+turtles#44931" rel="nofollow" target="_blank">this post</a> (which contains a link to Trading Blox code implementing similar &#8220;heat limitation&#8221; mechanism).</p>
<h3>Systems (and Timeframes) Diversification: Swarm Behaviour</h3>
<p>Combining several systems is also a possibility to achieve diversification. With the extra advantage that it is possible &#8211; to some extent &#8211; to design systems and control their correlations to the rest of the suite of systems (as opposed to markets, which can have a furious tendency to correlate to +1 or -1 during crisis times).</p>
<p>And as we all know, <strong>correlation is a key element of the &#8220;diversification benefits&#8221; equation</strong> (check <a href="http://www.tradingblox.com/forum/viewtopic.php?t=8342" rel="nofollow" target="_blank">this thread</a> from user sluggo on TB forums for a good presentation/discussion on the topic).</p>
<p>Adding a profitable mean reversion/counter-trend system to a trend following system will, in all likelihood, reduce the volatility of the combined portfolio, thanks to the negative correlation that it brings. Adding many uncorrelated systems is likely to increase this positive effect.</p>
<p>However, trading a diversified suite of systems has a similar constraint to trading a large portfolio: it increases the required account equity.</p>
<p>A comment from <em>Pumpernickel</em> on a recent <a href="http://quantumfinancier.wordpress.com/2011/04/24/one-size-does-not-fit-all/" rel="nofollow" target="_blank">post from Quantum Financier</a> (who is starting a series of posts on &#8220;signal aggregation: <em>how we form and use an ensemble of signals isolating different pieces of information to build a profitable strategy</em>&#8221; ) pointed to a couple of documents from Fall River Capital. </p>
<p>The (pdf) document (<a href="http://www.fallrivercapital.com/documents/AnatomyofaSwarmPart1_003.pdf" rel="nofollow" target="_blank">part 1</a> and <a href="http://www.fallrivercapital.com/documents/AnatomyofaSwarmPart2_003.pdf" rel="nofollow" target="_blank">part 2</a> of their white paper) describe how they tackle this issue on a large scale, by trading hundreds to thousands systems simultaneously, using the concept of <a href="http://en.wikipedia.org/wiki/Swarm_behaviour" rel="nofollow" target="_blank">swarm behaviour</a> (which can be seen throughout the natural world, such as in the mesmerising starling flights in the English Somerset Winter, pictured above).</p>
<p>From the white paper (other <a href="http://www.fallrivercapital.com/WhitePapers.html" rel="nofollow" target="_blank">Fall River white papers</a> and general website are also interesting to read): </p>
<blockquote><p>An […]  approach is to assign each trading system a vote. Each model is polled for its position (long, short, or out) daily, and the total is aggregated into a tally that may be thought of as a “Vox Populi,” or crowd opinion poll. Research showed that aggregating the systems by this simple tally method was a quite workable approach, allowing us to “cheat” by holding a single position per market rather than hundreds or thousands. Regardless of the number of component models, the master strategy holds a position in accordance with the majority of the crowd.</p></blockquote>
<p>How they choose the models/systems to be included in the portfolio is mostly driven by  each system&#8217;s correlation to other systems:</p>
<blockquote><p>The portfolio of individual candidate systems consists of between several hundred and a few thou‐ sand members that share both low correlations to one another and robust returns over many years of market history. The result is a “swarm” of trading models, each attacking the market from a different direction. This process of system development, evaluation, and selection does not prioritize superior standalone system performance, but rather seeks to uncover profitable trading rules that complement one another when implemented together.
</p></blockquote>
<p>Their testing results seem to show that this approach tracks fairly well an &#8220;equal allocation&#8221; approach with hundreds/thousands of systems, which itself benefits greatly from low correlated system diversification (reduced volatility, or increased vol-adjusted returns).</p>
<p>This &#8220;systems voting&#8221; strategy has also been discussed on the TB forums <a href="http://www.tradingblox.com/forum/viewtopic.php?t=8606" rel="nofollow" target="_blank">there</a> (again started by user sluggo&#8230;).</p>
<h3>Other Alternatives</h3>
<p>These are ideas to stimulate research on how to alleviate the <strong>&#8220;futures trading diversification with a small account&#8221;</strong> issue. Other ideas can also be found on other threads from the TB forum (examples <a href="http://forum.tradingblox.com/viewtopic.php?t=2359&#038;postdays=0&#038;postorder=asc&#038;start=0" rel="nofollow" target="_blank">1</a>, <a href="http://www.tradingblox.com/forum/viewtopic.php?p=46943#46943" rel="nofollow" target="_blank">2</a> and <a href="http://www.tradingblox.com/forum/viewtopic.php?t=8164&#038;start=0&#038;postdays=0&#038;postorder=asc&#038;highlight=" rel="nofollow" target="_blank">3</a> &#8211; search the forum for more discussions), showing that the topic is a &#8220;popular&#8221; one.</p>
<p>Another alternative would be to move away from trading actual futures but instead focus on &#8220;proxy&#8221; instruments such as ETFs (see <a href="http://www.automated-trading-system.com/etf-v-futures-a-quantification/">this post for a quantification of how ETFs can track futures</a>) or spread betting (they usually offer lower minimum trading lots, allowing for lower required trading equity, but can have other disadvantages, such as counterparty risk, less instruments available or cost of funding/leverage). Another trade-off to make in system/strategy design..<br />
&nbsp;</p>
<div style="font-size: 0.8em;">Picture credits: <a href="http://www.flickr.com/photos/tonyarmstrong/5381370808/" rel="nofollow" target="_blank">midlander1231</a> via flickr (CC)</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/futures-trading-and-small-account/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Drawdown Reduction</title>
		<link>http://www.automated-trading-system.com/drawdown-reduction/</link>
		<comments>http://www.automated-trading-system.com/drawdown-reduction/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 09:26:28 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Money Management]]></category>
		<category><![CDATA[drawdown]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=4093</guid>
		<description><![CDATA[I was recently reading a blog post discussing &#8220;trading the equity curve&#8221; of a system. This usually entails adapting trading size based on whether the equity curve of the system is below or above its equity curve. A similar concept is described in The Way of the Turtle, by ex-Turtle Curtis Faith: The Turtles were [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2011/03/hitting-the-brakes-by-Dirk-Gently.jpg" alt="" title="hitting the brakes by Dirk Gently" width="300" height="214" class="alignnone size-full wp-image-4094" /></p>
<p>I was recently reading a blog post discussing &#8220;trading the equity curve&#8221; of a system. This usually entails adapting trading size based on whether the equity curve of the system is below or above its equity curve.</p>
<p>A similar concept is described in <a href="http://www.automated-trading-system.com/way-turtle-faith" target="_blank" rel="nofollow">The Way of the Turtle</a>, by ex-Turtle Curtis Faith:</p>
<blockquote><p>The Turtles were instructed to decrease the size of the notional account by 20 percent each time we went down 10 percent of the original account.</p></blockquote>
<p>The idea seems to make sense in a way: the further the notional account size is reduced during a drawdown, the lower the maximum drawdown amount figure should be. Similar to a racing driver &#8220;hitting the brakes&#8221; as and when their vehicle starts going off-course, to avoid going &#8220;into the ditch&#8221;.</p>
<p>In periods of prolonged losing periods, the result should be a lesser impact on the equity curve, and a lower drawdown figure.</p>
<h3>Testing The Concept</h3>
<p>Trading Blox has this functionality built-in, so it is easy to test. You can set parameters for this <em>Drawdown Reduction</em> technique: the Threshold dictates at which point the notional account size is reduced (10% drawdown in the example above) and the Amount dictates by how much the size is reduced (20% in the example above). The reduction is cumulative, meaning that every time a new 10% decrease is observed, a further reduction of trading size by 20% is applied.</p>
<p>I ran a 20-day <span id="more-4093"></span>Donchian breakout system with &#8220;classic&#8221; volatility-adjusted position sizing (risk per trade = 0.75% of equity = 2 ATR) as a starting point. The results obtained were as follows:</p>
<table style="border:1px solid #c3c3c3; border-collapse:collapse;">
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;" colspan="2">
      Performance Stats
    </th>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
CAGR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">52.77%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
Max DD
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">40.30%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
MAR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
1.31
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
Sharpe
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
1.22
    </td>
</tr>
</table>
<p>&nbsp;<br />
The next run applied the Drawdown Reduction logic to the exact same system. As expected, the Max Drawdown figure does decrease by a fair amount, however note that the return also decreases by a greater amount, actually hurting the MAR ratio. The Sharpe ratio does not improve either:</p>
<table style="border:1px solid #c3c3c3; border-collapse:collapse;">
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;" colspan="2">
      Performance Stats
    </th>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
CAGR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">43.44%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
Max DD
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">35.80%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
MAR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
1.21
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
Sharpe
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
1.19
    </td>
</tr>
</table>
<p>&nbsp;<br />
In hindsight, it simply looks that reducing the overall leverage of the original system might achieve the same results (reduction in both drawdown and return). Here are the results of the first system with reduced leverage (0.64%) so that the Max Drawdown amount matches that of the second system:</p>
<table style="border:1px solid #c3c3c3; border-collapse:collapse;">
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;" colspan="2">
      Performance Stats
    </th>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
CAGR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">45.67%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
Max DD
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">35.80%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
MAR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
1.28
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
Sharpe
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
1.23
    </td>
</tr>
</table>
<p>&nbsp;<br />
Sharpe and MAR are closer to the first run results, with the CAGR being higher than in the second run, implying that a simple leverage reduction could be a better option.</p>
<p><strong>Post Update:</strong> Of course, this is a single one-off test, from which you can hardly draw any conclusions, so do not go and dismiss it solely based on this post/test. A proper and more complete test with a large number of system variations &#8211; as kindly pointed out by Pumpernickel in the comments &#8211; would be a good start to evaluate the impact of the Drawdown Reduction technique. Something to play with in your own system development or to follow-up in a later post.</p>
<h3>Managing the Unexpected</h3>
<p>This comparison test benefits from hindsight. This money management technique might still bring a way to deal with extra-ordinary negative periods (where drawdowns would exceed the expected figures from the back-test). This way, the system could start trading with the &#8220;optimal&#8221; leverage derived from the back-test, with an extra safeguard (possibly with higher threshold triggers) only for cases when the system starts diverging substantially from the back-tested results (whether the system is &#8220;broken&#8221;, or experiences its worst period to date).</p>
<p>Another point to note is that the downside of reducing leverage during drawdowns usually increases the time required to get out of the drawdown.</p>
<p>Another possible use of this technique might be to use it to dynamically allocate to several systems in a suite: reduce the allocation of poorly-performing systems and shift the allocation to better performing systems (&#8220;starve the dogs and feed the stars&#8221;). This way, if a system starts becoming &#8220;broken&#8221;, its allocation is automatically decreased, which should reduce its (negative) impact on the overall suite performance.</p>
<p>&nbsp;</p>
<div style="font-size: 0.8em;">Picture credits: Dirk Gently via flickr (CC)</div>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/drawdown-reduction/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Practical Leverage Space Model &#8211; a More Realistic Test</title>
		<link>http://www.automated-trading-system.com/practical-leverage-space-model-more-realistic/</link>
		<comments>http://www.automated-trading-system.com/practical-leverage-space-model-more-realistic/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 11:54:52 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Money Management]]></category>
		<category><![CDATA[lspm]]></category>
		<category><![CDATA[ralph vince]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=3647</guid>
		<description><![CDATA[How can you apply the Leverage Space Model in real-life trading? The last study on the Leverage Space Portfolio Model was interesting from a theoretical point of view. Its main value was in illustrating the concepts of the framework with real-life data, but it did not have much practical application: on top of some &#8220;unpractical&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p><em>How can you apply the Leverage Space Model in real-life trading?</em></p>
<p>The <a href="http://www.automated-trading-system.com/vinces-optimal-f-and-the-leverage-space-model-take-1/">last study on the Leverage Space Portfolio Model</a> was interesting from a <strong>theoretical</strong> point of view. Its main value was in illustrating the concepts of the framework with real-life data, but it did not have much <strong>practical application</strong>: on top of some &#8220;unpractical&#8221; assumptions, the study was done using hindsight: the <strong>optimal f</strong> values were calculated using past data, then applied to the same past data.</p>
<p>Works fine as a simple exercise but it is a critical flaw in real-life backtesting.</p>
<p>This post looks at a more realistic approach on how to <strong>practically apply the Leverage Space Model to Portfolio Construction</strong>.</p>
<h3>What sort of Test?</h3>
<p>In this test, 6 systems, arbitrarily chosen from the <a href="http://www.automated-trading-system.com/resources/state-trend-following/">State of Trend Following</a> report, will be considered as potential components of the portfolio:</p>
<ul>
<li>Bollinger Bands Breakout &#8211; 20 days (BBO-20)</li>
<li>Bollinger Bands Breakout &#8211; 50 days (BBO-50)</li>
<li>Donchian Channel Breakout &#8211; 20 days (Donchian-20)</li>
<li>Donchian Channel Breakout &#8211; 200 days (Donchian-200)</li>
<li>Moving Average Cross-over &#8211; 50/200 days (MA-50-200)</li>
<li>Triple Moving Average &#8211; 20/50/200 days (TMA-20-50-200)</li>
</ul>
<p>The data used is the set of monthly returns for these 6 systems from 1990 to 2010.</p>
<p>One important constraint to consider for this test is to make sure that the optimal f <span id="more-3647"></span>values are not applied to the data used to calculate them: we&#8217;re aiming to prevent <strong>hindsight bias</strong>.</p>
<p>For the Leverage Space Model, we could simply divide the testing data in 2 sets: the <strong>optimization set</strong> (1990 to 1999) and the <strong>testing set</strong> (2000 to 2010) to which the values found from the optimization would get applied.</p>
<p>However, I decided to look into a more flexible approach: a <strong>Walk-Forward</strong> test (you can check a quick <a href="http://www.automated-trading-system.com/walk-forward-testing/">recap on Walk-Forward testing</a>).</p>
<p>Every year, from 2000 to 2010, the f values applied to the portfolio for that year are derived from the optimal f values for the 10 years directly preceding (i.e. optimize f values from 1990 to 1999 and apply to 2000, optimize f values from 1991 to 2000 and apply to 2001, etc.).</p>
<p>Note that this involves running 11 optimizations instead of one. Ideally, the test would be run using &#8220;realistic&#8221; conditions, meaning an optimization with drawdown constraints, as opposed to pure equity growth optimization.</p>
<p>Because of the difference in running times for each optimization (literally hours vs seconds), I went with the &#8220;equity-growth&#8221; optimization: the classic optimal f concept, if you like. Optimal f, in this classical form, is often brushed aside as being too risky&#8230;<br />
And indeed, in the fourth year of the period under test, a loss greater than 100% appeared. This ruin made it impossible to obtain a meaningful result with these conditions. Instead I decided to arbitrarily apply <strong>half of the f value (f/2)</strong> to be able to run the test</p>
<p>The main point of this test is to compare the performance of a walk-forward, practical approach versus the theoretical return obtained using hindsight. For both these tests, f/2 will be used instead of the optimal f.<br />
Additionally, since the walk-forward results start from 2000 (1990 to 1999 being only used for optimization), other tests and results in this post will also cover the same period.</p>
<h3>Base Reference Portfolio</h3>
<p>For the most simplistic portfolio construction, we can just divide the equity equally, without leverage, into each of the six components. With a monthly rebalancing, this gives us the following equity curve for the period 2000-2010:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/12/Equal-Allocation.png" alt="Equal-Allocation" title="Equal-Allocation" width="467" height="260" class="alignnone size-full wp-image-3648" /></p>
<table style="border:1px solid #c3c3c3; border-collapse:collapse;">
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;" colspan="2">
      Performance Stats
    </th>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
CAGR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">41.26%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
Max DD
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">26.03%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
MAR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
1.59
    </td>
</tr>
</table>
<h3>The Hindsight Result</h3>
<p>The hindsight approach is very similar to the last study: take all historical data (from 2000 to 2010), feed it to the optimizer and apply the optimal f values to this same data: this is the best portfolio construction that an investor <em>could have</em> used (when considering equity growth only). Based on the previous note, f/2 is used instead of the Optimal f, which gives us the following allocation/leverage factors:</p>
<ul>
<li>BBO-20: <strong>0</strong></li>
<li>BBO-50: <strong>0.022</strong></li>
<li>Donchian-20: <strong>0.842</strong></li>
<li>Donchian-200: <strong>0</strong></li>
<li>MA-50-200: <strong>0.967</strong></li>
<li>TMA-20-50-200: <strong>0</strong></li>
</ul>
<p>The numbers above are the &#8220;fraction&#8221; of total equity to be traded for each system. If trading these 6 systems with a 10M account size, the notional account size for the &#8220;Golden Cross&#8221; system (MA-50-200) would be 9.67M and so on.<br />
Note that the optimized allocation excludes some of the systems: these are not required to reach the maximum account equity growth.<br />
The <strong>total leverage on the portfolio</strong> is therefore 1.83: the 10M equity would be traded as 18.3M across the three systems with a non-zero allocation.</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/12/HindsightVsEqual-same-leverage.png" alt="HindsightVsEqual-same-leverage" title="HindsightVsEqual-same-leverage" width="458" height="311" class="alignnone size-full wp-image-3649" /></p>
<p>There is notable difference in CAGR despite the drawdown being nearly identical between the two allocations:</p>
<table style="border:1px solid #c3c3c3; border-collapse:collapse;">
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;" >
      Stats
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;" >
      Hindsight
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;" >
      Equal Leverage
    </th>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
CAGR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">87.52%</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">70.55%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
Max DD
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">45.95%</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">44.23%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
MAR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
1.9
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
1.6
    </td>
</tr>
</table>
<p>&nbsp;<br />
Let&#8217;s now look at the actual Walk-Forward test of the LSPM allocation.</p>
<h3>Walk-Forward LSPM Results</h3>
<p>As explained above, each year&#8217;s leverage is calculated by running the LSPM optimization on the previous 10 years. This is done year after year, going forward.</p>
<p>The results are actually surprisingly good: they even top the hindsight &#8220;f/2&#8243; results. When comparing to the &#8220;full f&#8221; hindsight results, the CAGR is only slightly lower (CAGR = 126% for &#8220;full f&#8221; hindsight results).</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/12/Walk-Forward-Equity1.png" alt="Walk-Forward-Equity" title="Walk-Forward-Equity" width="463" height="314" class="alignnone size-full wp-image-3662" /></p>
<table style="border:1px solid #c3c3c3; border-collapse:collapse;">
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;" colspan="2">
      Performance Stats
    </th>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
CAGR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">106.56%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
Max DD
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">65.91%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
MAR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
1.62
    </td>
</tr>
</table>
<p>&nbsp;</p>
<p>The allocation and leverage in the portfolio vary year after year. One could argue that this is an <strong>adaptive approach</strong>, which should perform better than a static approach and this single result seems to confirm that idea.<br />
For reference, below are charted the different leverages in the portfolio and how they evolved over time:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/12/Portfoli-Allocation.png" alt="Portfoli-Allocation" title="Portfoli-Allocation" width="475" height="348" class="alignnone size-full wp-image-3670" /></p>
<p>A good share of the portfolio is always allocated to the Donchian-20 system, the rest being mostly divided between the TMA-20-50-200 at the start of the decade and the MA-50-200 at the end. Note also how the overall leverage is constantly dropping.</p>
<p>The equity curve comparison also seems to indicate an early over-performance, which does not seem to carry forward. This is confirmed when looking at the returns year by year:</p>
<p><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/12/YearlyReturns.png"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/12/YearlyReturns.png" alt="YearlyReturns" title="YearlyReturns" width="425" height="273" class="alignnone size-full wp-image-3666" /></a></p>
<h3>A Note on Drawdowns</h3>
<p>The <strong>drawdowns </strong>in most of these tests are very high and no money manager would really consider trading at these levels. This is a classical reception to the Optimal f concept. <strong>The Leverage Space Model can cater for this</strong> by including <strong>constraints on probability of drawdowns</strong> &#8211; to keep them at reasonable levels.</p>
<p>The reason this type LSPM optimization (with drawdown contstraints) was not used is simply because of the very high computing times for the optimization but I would expect similar relative comparisons between the hindsight and walk-forward results &#8211; something to verify: material for a later post when my machine has a spare dozens of hours to run.</p>
<h3>More To Come</h3>
<p>This is obviously a single test, which does not provide much significance, nevertheless, the results are quite exciting. But there are a few caveats. The test only uses equity-growth optimization, and we can only assume (or take a whole weekend of computing time to verify) that adding drawdown constraints to the optimizer would have given us a similar relative comparison (between the hindsight results and the walk-forward/adaptive results).</p>
<p>But this definitely warrants further investigation. One of the aspects that I like is how the process weeds out unnecessary systems. You could imagine running a stable of systems and let the optimization pick the systems to trade for each coming year and with which leverage.</p>
<p>Note also that there are other assumptions in the tests that make them less realistic (no account for slippage, funding costs, scalability, margin constraints, etc.) but these would apply to all the systems under comparison here.</p>
<p>On a final note, I have heard that a major index firm has decided to launch LSP indexes based on Vince&#8217;s implementation. These would be licensed to ETF providers, with the first LSP-style ETF probably being launched mid-2011. The concept seems to be catching on.</p>
<p>I&#8217;ll probably also share in a next post the code that was used to run the Walk-Forward test as it nicely automates the running of it. Stay tuned&#8230; (Update: the code can be found on this post: http://www.automated-trading-system.com/r-code-walk-forward-lspm/)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/practical-leverage-space-model-more-realistic/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Low Winning Percentage = more Robust Systems?</title>
		<link>http://www.automated-trading-system.com/low-winning-percentage-more-robust-systems/</link>
		<comments>http://www.automated-trading-system.com/low-winning-percentage-more-robust-systems/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 15:18:52 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Money Management]]></category>
		<category><![CDATA[ralph vince]]></category>
		<category><![CDATA[tiger]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=3586</guid>
		<description><![CDATA[&#160; One of the characteristics that deter traders from using Trend Following is the typical lower winning percentage rate (i.e. ratio of winning trades vs. losing trades) of such systems. It goes against the natural instinct of &#8220;wanting to be right most of the time&#8221; as trades end up in a loss more often than [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/12/tiger-on-the-football-field.jpg" alt="tiger-on-the-football-field" title="tiger-on-the-football-field" width="342" height="168" class="alignnone size-full wp-image-3587" /><br />
&nbsp;<br />
One of the characteristics that deter traders from using <strong>Trend Following</strong> is the typical lower winning percentage rate (i.e. ratio of winning trades vs. losing trades) of such systems. It goes against the natural instinct of &#8220;wanting to be right most of the time&#8221; as trades end up in a loss more often than not.</p>
<p>Psychologically, it is harder to trade a system that produces more losing trades. Despite this, Trend Following is a profitable strategy. Could there be a sort of &#8220;psychological premium&#8221; received by traders willing to use low winning percentage system?</p>
<p>When recently looking at Ralph Vince&#8217;s <a href="http://www.automated-trading-system.com/vinces-optimal-f-and-the-leverage-space-model-take-1/">Leverage Space Model</a>, I could see a potential reason why <strong>low winning percentage systems might be more robust</strong>.</p>
<h3>Robust Systems are Volatile</h3>
<p>An aspect of <strong>robust systems</strong> is the <strong>volatility</strong> in the system results and its equity curve. Similarly to low winning percentage, volatility is also a system feature that traders/investors nearly always want to avoid &#8211; at least from a psychological point of view.</p>
<p>Here is a quote from David Druz &#8211; a recent addition to the <a href="http://www.automated-trading-system.com/resources/trend-following-wizards-fund-performance/">Trend Following Wizards report</a> &#8211; which explains the link between robustness and volatility:<span id="more-3586"></span></p>
<blockquote><p>The robustness of a trading system is proportional to its volatility. This is the no-free-lunch part. A robust system is one which works and is stable over many types of market conditions and over many timeframes. It works in German Bund futures and it works in Wheat. It works when tested over 1950-1960 or over 1990-2000. Robust systems tend to be designed around successful trading tactics, classical money management techniques, and universal principles of market behavior. These systems are not designed around specific types of markets or market action. And here is the amazing thing about robust systems: <strong>The more robust a system, the more volatile it tends to be</strong>! This is because robust systems are not optimized to particular markets or market conditions. The converse is also true. You can design systems with excellent returns and low volatility on historical testing, but which work only for given periods in given markets. These systems tend to be curve-fit or market-fit and are not robust. For a system to have the highest odds of profitability over time and markets, the inescapable tradeoff is volatility. Diversification can be used of course, but it will only dampen the volatility so much.</p></blockquote>
<p>A typical illustration of low-volatility, high-performance equity curve is this one below:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/03/LTCM-risk.gif" alt="LTCM-risk" title="LTCM-risk" class="size-full wp-image-1988" height="272" width="400"></p>
<p>LTCM: smooth equity curve&#8230; for a while. No robustness there.</p>
<h3>The Impact of Money Management</h3>
<p><strong>Money Management</strong> is a pivotal part of a trading system. It can make or break any system, however good it is. Over-trading a  really good system will still lose you money.</p>
<p>Indeed, Vince affirms, in the <a href="http://www.amazon.com/exec/obidos/ASIN/0470455950/autotradblog-20" target="_blank" rel="nofollow">Leverage Space Trading Model</a> intro, that Money Management represents 100% of a trading system (leaving 0% for signal generation, etc.). This is probably a hyperbole, but the impact of money management should not be understated.</p>
<p>By looking at the impact of the the system&#8217;s winning rate on the money management part of it, there might be a reason as to why a system might be more robust when it produces more losers than winners.</p>
<h3>Optimal f, boundaries and the Tiger Cage</h3>
<p>Depending on preferences, there exists an <strong>optimal f</strong> which maximizes growth and which can take risk factors into account. The optimum approach is obviously to be as close as possible to the optimal f. However, this is not simple: markets change, systems go through different phases of performance and as a result, optimal f moves as well. It is not a fixed value.</p>
<p>From the start, we know that optimal f is bounded between 0 and 1 and that the further we are from it, the less optimal performance will be. Vince had an amusing analogy, comparing the optimal f to a <strong>roaming tiger on a football field</strong>. The tiger could be anywhere on the field; the hunting trader needs to find its location to place the tiger cage. Any error in locating the tiger would result in sub-optimal performance: the further the tiger is from the cage, the worse the system would perform.</p>
<p>However, there is a corollary from the Optimal f calculations: <strong>the optimal f value is bounded by the winning rate of the trading system</strong>. F can take values between 0 and 1 but if the system has a win rate of 30%, optimal f will always be between 0 and 0.3.</p>
<p>Going back to the tiger-on-the-football-field analogy, it greatly reduces the task of the &#8220;hunting&#8221; trader if we know that the tiger never ventures beyond the 30-yard line. And as a result we&#8217;ll never be too far off the target. From a trading point of view, this means that there is less room for error in the location of the optimal leverage and therefore <strong>less impact of a sub-optimal leverage</strong>.</p>
<p>In terms of robustness, this means that as markets change, so will the optimal f. A trading system with a low winning percentage will reduce the possible variation in the optimal f (e.g. [0,0.3] instead of [0,1]) and therefore the error between the actual f value used by a trader and the optimal f. Reducing the error should also reduce its negative impact on the system performance and make the system less sensitive to underlying market changes. In a word: more robust.</p>
<p>This is just a thought. I do not have any hard evidence or theory for it . As a young kid I always dreamt of having a tiger and riding it to school. I&#8217;d now like to think that it was an early subconscious call to be a good trader by focusing on &#8220;catching the tiger&#8221; of good position sizing/money management&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/low-winning-percentage-more-robust-systems/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Vince&#039;s Optimal f and the Leverage Space Model &#8211; Take 1</title>
		<link>http://www.automated-trading-system.com/vinces-optimal-f-and-the-leverage-space-model-take-1/</link>
		<comments>http://www.automated-trading-system.com/vinces-optimal-f-and-the-leverage-space-model-take-1/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 09:40:43 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Money Management]]></category>
		<category><![CDATA[lspm]]></category>
		<category><![CDATA[ralph vince]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=3513</guid>
		<description><![CDATA[Following the Risk-Opportunity Analysis conference I attended earlier this month, I decided to test the model and the software used to implement it (Vince&#8216;s java app and Joshua Ulrich&#8217;s R implementation). Most of the mathematical formulas supporting the model are in the book Leverage Space Trading Model. I will not paraphrase the book and reproduce [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/12/Snow.jpg" alt="Snow - can speed things up..." title="Snow - can speed things up..." width="490" height="131" class="alignnone size-full wp-image-3516" /></p>
<p>Following the <a href="http://www.automated-trading-system.com/risk-opportunity-analysis/">Risk-Opportunity Analysis conference</a> I attended earlier this month, I decided to test the model and the software used to implement it (<a href="http://parametricplanet.com/rvince/" target="_blank" rel="nofollow">Vince</a>&#8216;s java app and <a href="http://r-forge.r-project.org/projects/lspm/" target="_blank" rel="nofollow">Joshua Ulrich&#8217;s R implementation</a>).</p>
<p>Most of the mathematical formulas supporting the model are in the book <a href="http://www.amazon.com/exec/obidos/ASIN/0470455950/autotradblog-20" target="_blank" rel="nofollow">Leverage Space Trading Model</a>. I will not paraphrase the book and reproduce all the formulas here &#8211; but I will refer to some of them. Getting the book is probably a good idea for a better understanding of the concepts.</p>
<h3>Test Case</h3>
<p>The trading application of the Leverage Space Model is presented as a generalisation of the Kelly formula, which is well illustrated by the <strong>coin-toss betting</strong> example (as per <a href="http://www.automated-trading-system.com/vince-leverage-space-model/">Vince&#8217;s paper</a>).</p>
<p>In a practical &#8220;trading&#8221; example, I have decided to look at the four <a href="http://www.automated-trading-system.com/resources/trend-following-wizards-fund-performance/">Trend Following Wizards</a> with the longest track records (that I have): Campbell, Dunn, John Henry and Millburn. All track records go back to 1985 (up to end 2009). The question this test tries to answer is this:</p>
<blockquote><p>As an investor from 1985, what <em>would have been</em> the <strong>best allocation</strong> between the four managers?</p>
<p>Note: Here &#8220;best&#8221; simply means the highest CAGR (we&#8217;ll see later that &#8220;best&#8221; can be defined in different ways based on your preferences / utility function).</p></blockquote>
<p><span id="more-3513"></span></p>
<p>I will describe the concepts using the simple two-coin toss example and draw a parallel with the &#8220;real-world&#8221; application on the four Trend Following Wizards.</p>
<h3>Optimal f</h3>
<p>For a single stream of returns or betting outcomes/probabilities, there is a <strong>specific level of leverage</strong>, or fraction of capital, to risk on each event, which maximizes the geometric growth of the equity. This is what <strong>Optimal f</strong> relates to.</p>
<p>In the example of the coin-toss with the following parameters:</p>
<ul>
<li>Risk 1 unit for each bet</li>
<li>Tails: lose 1</li>
<li>Heads: win 2</li>
</ul>
<p>The fraction of capital staked on each bet will alter the expected growth rate as per this curve:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/12/Optimalf.png" alt="Optimal f" title="Optimal f" width="441" height="278" class="alignnone size-full wp-image-3519" /></p>
<p>This has been covered extensively elsewhere (as a simple application of the Kelly formula) so I will not repeat the details here. The main point is that .25 is the Optimal f (meaning, in that case, that staking 25% of the largest loss on each bet will maximize the growth of the trading stake over time &#8211; any other value would be sub-optimal). Note that here the largest loss is equal to 100% of the bet size and therefore the Optimal f and the fraction of capital to stake are equal. This is a special case and we&#8217;ll see further down that these are usually different values, especially in trading.</p>
<p>Adapting this example to a single Trend Following Wizard track record, we can establish <em>a posteriori</em> what the optimal f would have been, in order to maximize the growth of the equity curve.</p>
<p>Here is the f curve for Dunn&#8217;s track record:<br />
<img src="http://www.automated-trading-system.com/wp-content/uploads/2010/12/DunnOptimalf.png" alt="Dunn Optimal f" title="Dunn Optimal f" width="316" height="215" class="alignnone size-full wp-image-3520" /></p>
<p>The shape of the curve is fairly similar, it peaks at around f=0.5.<br />
Note that here, the optimal f does not represent the actual leverage or fraction of capital to apply. This is because of the nomenclature in the formulas used by Vince, where each &#8220;leveraged&#8221; return (or HPR: Holding Period Return) is expressed as:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/12/HPR-formula.png" alt="HPR-formula" title="HPR-formula" width="258" height="40" class="alignnone size-full wp-image-3521" /></p>
<p>In effect, the leverage applied to each periodic (monthly) return is:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/12/leverage-formula.png" alt="leverage-formula" title="leverage-formula" width="158" height="37" class="alignnone size-full wp-image-3522" /></p>
<p>In the case of Dunn, the biggest monthly loss is 30.68%. An f of 1 would equate to leveraging each period return by a factor of 1/0.3068 = 3.26, which is the maximum leverage that can be achieved before hitting a zero final equity (the HPR would be equal to 0 as soon as the biggest loss occurs). The actual leverage amount is independent of the biggest loss, but expressing it that way bounds the value for f between 0 and 1. This is really just a notation.</p>
<p>The optimal leverage for the Dunn track record can be derived from Optimal f = 0.5: <strong>Optimal leverage = </strong>0.5/0.3068 = <strong>1.63</strong>. This effectively means that an investor would have achieved the highest possible final equity investing in Dunn by resetting the notional account size to 163% of the actual account size, every month (this is theoretical as it ignores the (im)practicality of this and impact of fees, etc.).</p>
<p>Any other value, higher or lower would have resulted in a lower equity curve. At 100% (no leverage), the monthly geometric mean return is 1.11%; at 163% leverage, the mean return becomes 1.29% (which is the maximum value possible). Of course the drawdown would also increase (around 60% MaxDD at 100% leverage vs. around 83% MaxDD at 163% leverage).</p>
<h3>Multi-Component Scenarios with Coin Tosses</h3>
<p>Following on with our coin-toss example, let&#8217;s now consider the case of two simultaneous coin-tosses.</p>
<p>The method requires a discrete set of outcomes and associated probabilities. In case of the simple two-coin toss example, these are easy to identify:</p>
<ul>
<li>2 Tails: lose 2, 25% probability</li>
<li>1 Tail and 1 Head: gain 1, 50% probability</li>
<li>2 Heads: gain 4, 25% probability</li>
</ul>
<p>Using this set of outcomes with the same concept as above for f optimization, this now gives us a 3-dimensional curve displaying each possible f-combination (each simultaneous coin toss has its own f). Each combination generates its corresponding growth rate (which is related to the Terminal Wealth Relative, TWR). The f-combination that generates the highest TWR is the &#8220;optimal&#8221; solution.</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/11/623951255.jpg" alt="leverage terrain" title="leverage terrain" width="266" height="200" class="alignnone size-full wp-image-3479" /></p>
<p>In the case of the two-coin toss, the optimal f-combination is (0.23, 0.23) &#8211; meaning that staking 23% of the capital on each simultaneous coin toss (46% in total for each period) would result in the highest growth rate (over time). This is simply where the curve peaks in the chart above.</p>
<p>Adding a third simultaneous coin toss would simply generate a 4-dimensional curve (with each point representing the growth rate output of the f-triplet) and so on: the curve is always [N+1]-dimensional, where N is the number of components.</p>
<h3>Multi-Component Scenarios with Trading Data</h3>
<p>Let&#8217;s now look at our test case with the four Trend Following Wizards.</p>
<p>Similarly, we need a discrete set of <strong>outcomes and associated probabilities</strong> for our input . For this, we need to <strong>bin the data distribution</strong> and create the <strong>Joint-Probability Table</strong> (which holds each possible outcome combination and its associated probability &#8211; similarly to the 3 possible outcomes identified above for the coin-toss example). This is effectively how Vince does away with the concept of correlation input that can be used in other models such as Mean-Variance Optimization.</p>
<p>The pseudo-code to build the Joint-Probability Table (JPT) is as follows:</p>
<ul>
<li>Bin each component&#8217;s stream of returns (ie. each Wizard set of returns)</li>
<li>Calculate a single outcome for each bin (for example the mean return of all instances falling in that bin).</li>
<li>Loop through each period and:</li>
<li>For each component, determine which bin the period&#8217;s return fall into; and assign the bin outcome to that component, for that period.</li>
<li>Record the combination of all bin outcomes (ie for all components) for that period and assign it the probability: 1 / number of periods</li>
<li>If different periods have the same combination, these can be grouped together (by summing the individual probabilities &#8211; as in the two-coin toss example where the Head-Tail and Tail-Head combinations are grouped into one at 50% probability).</li>
<li>The JPT is the full list of outcome combination and associated probability.</li>
</ul>
<p>This is a bit tricky to explain in a concise manner, and it is developed in further detail in Vince&#8217;s book. However, the files attached at the end of this post in the &#8220;technical&#8221; appendix should help you retrace this logic.</p>
<p>Once the JPT is built, it can be used as an input for the f optimization.</p>
<h3>Leverage Space Trading Model: Optimizing f with R</h3>
<p>The java app developed by Vince creates the Joint-Probability Table from the import of the equity curve for each component.</p>
<p>The &#8220;meat&#8221; of the leverage space model code is contained in the R implementation by Joshua Ulrich (from <a href="http://blog.fosstrading.com/" target="_blank">FOSS Trading</a>). This is where the optimization is actually run (Vince&#8217;s java app also implements the optimization but the R implementation is much faster).</p>
<p>Note that Josh has a blog post on <a href="http://blog.fosstrading.com/2010/05/lspm-joint-probability-tables.html" target="_blank" rel="nofollow">how to create the JPT</a>, so you might be able to only use R, should you want to experiment with the Leverage Space Model (I am not sure the java app is freely available).</p>
<p>The <a href="http://r-forge.r-project.org/projects/lspm/" target="_blank" rel="nofollow">R LSPM</a> package needs the JPT as an input, as well as the optimization parameters. Note that this is my first foray in R &#8211; so you definitely do not need to be any expert at it to run this sort of test. The fact that the java app generates the R commands directly was helpful, but you can probably &#8220;learn by example&#8221; by checking the R session file at the end of the post (there is more doc available on Josh&#8217;s blog or the LSPM project page anyway).</p>
<p>Using the JPT as an input, the LSPM package runs the optimization, which estimates the peak of the 5-dimensional curve. A genetic algorithm is used for the optimization; and after a specific number of iterations, the optimal set of f-values is output by the program.</p>
<p>For the four wizards, the respective optimal f values are as follows:</p>
<ul>
<li>Campbell: 0.050767</li>
<li>Dunn: 0.000000</li>
<li>JWH: 0.322954</li>
<li>Millburn: 0.375109</li>
</ul>
<p>Again, these are f values, which only relate to the leverage to be applied, via each component&#8217;s biggest loss:</p>
<p>Leverage values:</p>
<ul>
<li>Campbell: 0.050767 / 16.7% = 0.304</li>
<li>Dunn: 0.0 / 30.68% = 0</li>
<li>JWH: 0.322954 / 27.32% = 1.182</li>
<li>Millburn: 0.375109 / 14.12% = 2.657</li>
</ul>
<p>One interesting thing to note is the fact that <strong>some f-values can be assigned to 0</strong>, which basically means that the component does not add value to the portfolio with regards to the growth rate, which maximum is attained when excluding it.</p>
<p>An investor would have maximized the geometric growth of their capital by resetting every month the notional account size allocated to each manager according to the three leverage factors identified above. For example, starting with $100 million total capital, the first month would see $30.4M allocated to Campbell, $118.2M to JWH and $265.7M to Millburn. After the first month, the equity would have increased by 22.9% to $122.9M, which would then be re-allocated according to the same leverage ratios.</p>
<p>After 25 years of repeating the same process monthly, the $100M would become a theoretical figure of&#8230; $411.4 Billion thanks to a monthly geometric mean return of 2.81% (whereas an unleveraged equal-split across four managers &#8211; with monthly rebalancing &#8211; would result in a &#8220;paltry&#8221; $3.9 Billion). Of course, this improvement is only possible &#8220;in hindsight&#8221;.</p>
<p>The other implication from this sample application is that the optimal f value can dictate a leverage value which can be higher than the maximum allowed (be it by margin requirements or stock trading in a cash account, etc.). The Leverage Space Model caters for this, with the possibility of adding <strong>margin constraints</strong> (I have not looked into this yet but <a href="http://blog.fosstrading.com/2010/08/margin-constraints-with-lspm.html" target="_blank">this post</a> on FOSS trading talks about it).</p>
<h3>Drawdown Constraints</h3>
<p>One of the main problem usually raised with the concept of optimal f is that trading for growth rate optimization is often not realistic, as it generates <strong>untenable levels of drawdown and volatility</strong>. Most investors, traders or managers would happily give up some return to stay in their acceptable levels of volatility and drawdown.</p>
<p>I will not detail the formula here (I&#8217;ll refer you to the book again) but Vince presents a way of calculating the <strong>probability of a specific drawdown</strong>. The main idea is to introduce a risk constraint to the model, so that instead of solely optimizing for maximum growth rate, one can optimize with a constraint on drawdown. For example:</p>
<p>Find the optimal f values for which the probability of a 30% drawdown over 12 periods does not exceed 50%. The n-dimensional curve is constructed in the exact same way, but any f-values that result in a probability of drawdown over the constraint threshold are ignored &#8211; this would usually result in all values around the peak being discarded.</p>
<p>This is exactly what I ran on the same four Wizard track records and the f-values obtained were as follows:</p>
<ul>
<li>Campbell: f=0.053919, leverage=0.3229</li>
<li>Dunn: f=0.002451, leverage=0.007987</li>
<li>JWH: f=0.297744, leverage =1.08984</li>
<li>Millburn: f=0.237712, leverage =1.68351</li>
</ul>
<p>The monthly geometric mean return drops to 2.68% (final equity of $282.7B). The Max Drawdown figure drops from 79% to 68%.</p>
<h3>Slow despite the Snow</h3>
<p>The main problem of adding drawdown constraint to the optimization is the dramatic increase in computing time. Whereas the first optimization for the simple growth-optimal f values took seconds for 100 or 1,000 iterations of the algorithm, adding the drawdown constraint has a significant impact on the computation time.</p>
<p>The LSPM uses another R package: <strong>snow</strong>, in order to leverage multi-processors with parallel computing to speed things up. Info for the techies: I am running an Intel Core 2 Quad Processor @2.40GHz and I allocated three processors to the optimization process &#8211; but the running time came at a disappointing three hours for 100 iterations. This is only for four components and 300 monthly periods. I initially had the idea of running the daily equity curve of a few hundred components through the LSPM package but that will probably have to wait for the technology to improve.</p>
<p>I understand that this is mostly due to the heavy computational costs of evaluating the probability of drawdown. Maybe a less costly risk computation might make the running time more manageable.</p>
<h3>First Impressions</h3>
<p>This is a bit of an extended post (probably the longest on the blog so far) but it hopefully provides a decent step-by-step illustration of some of the concepts and how to apply them practically (there are more details in the &#8220;technical&#8221; appendix below).</p>
<p>The model is really an <strong>alternative portfolio allocation method</strong> and I can not see how it could be applied directly to determine position sizing for a <strong>trading system</strong>. This is primarily because all component returns have to be split across identical periods, whereas trades from a single system do overlap. It might well be possible to use each instrument&#8217;s equity curve when traded through a specific system. Something to investigate &#8211; but with the high computation costs, running the optimization over a large diversified portfolio might be all but impossible.</p>
<p>On the other hand, I can see how the model might be useful to the manager running a programme made up of several systems and wanting to optimize the allocation to each system. Alternatively, one could split the system portfolio into several asset classes (Financials, Currencies, Energies, etc.) and optimize the allocation to each asset class.</p>
<p>Another aspect worth looking into is how useful the model is in a forward-looking mode (ie to determine optimal f/leverage to apply to each component for the next periods) and how this can be used/configured (over the whole history available at that time or over a rolling optimization window? Which length of data to use in that window?). This would obviously be dependent on how stable the component returns are over time (like for any aspect of back-testing).</p>
<h3>Technical Appendix</h3>
<p>Below is some additional material to support the explanations in this post and illustrate the step-by-step process.</p>
<p>I used the java app to generate both the Joint-Probability Table and the R commands to run the optimization.</p>
<p>The app requires a file per component, containing the equity curve with constant position sizing (ie. no reinvestment). For the four Wizard track records, the equity curve is simply the cumulative sum of the monthly percentage returns (representative of a constant position size of 100). Below are the four CSV files:</p>
<p><a href='http://www.automated-trading-system.com/wp-content/uploads/2010/12/Campbell.csv'>Campbell.csv</a><br />
<a href='http://www.automated-trading-system.com/wp-content/uploads/2010/12/Dunn.csv'>Dunn.csv</a><br />
<a href='http://www.automated-trading-system.com/wp-content/uploads/2010/12/JWH.csv'>JWH.csv</a><br />
<a href='http://www.automated-trading-system.com/wp-content/uploads/2010/12/Millburn.csv'>Millburn.csv</a></p>
<p>When importing the files, the app bins the period returns and generates the JPT:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/12/java-app.png" alt="java-app" title="java-app" width="496" height="372" class="alignnone size-full wp-image-3536" /></p>
<p>The optimization parameters can be configured via the second half of the screen below:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/12/optimizer-options.png" alt="optimizer-options" title="optimizer-options" width="441" height="384" class="alignnone size-full wp-image-3535" /></p>
<p>The parameters of the optimization defined above are: maximum probability of a 30% drawdown over 12 periods must be less than 50%. The Maximum Calculated Cycles of 8 is a number used in the drawdown probability calculation. As I understand it, the drawdown probability is extrapolated off an 8-period calculation and the computation time goes up exponentially with this number.</p>
<p>The R button generates the R instructions to run with the LSPM package. Below is a file containing the R session that I used to run the example in the posts. The first run is a straight optimal f calculation with 100 iterations. The second run is the same with 1,000 iterations and the third run is the optimization with drawdown constraint.</p>
<p>You can check the joint-probability table (contained in the outcomes and probs arrays) generated from the track record input files as well as the command to run in R.</p>
<p><a href='http://www.automated-trading-system.com/wp-content/uploads/2010/12/R-Session.txt'>R-Session</a></p>
<p>If you want to download R: <a href="http://cran.r-project.org/bin/" target="_blank" rel="nofollow">http://cran.r-project.org/bin/</a>, and the R <a href="http://r-forge.r-project.org/projects/lspm/" target="_blank" rel="nofollow">LSPM package</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/vinces-optimal-f-and-the-leverage-space-model-take-1/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Risk-Opportunity Analysis</title>
		<link>http://www.automated-trading-system.com/risk-opportunity-analysis/</link>
		<comments>http://www.automated-trading-system.com/risk-opportunity-analysis/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 10:37:57 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Money Management]]></category>
		<category><![CDATA[ralph vince]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=3478</guid>
		<description><![CDATA[I have been travelling in the last three weeks. One of my destinations was Tampa, Florida, where I attended Ralph Vince&#8216;s Risk-Opportunity Analysis course, over a weekend (check here for a presentation of the course). My main objective for attending was to strengthen my knowledge of Money Management/Position Sizing and my understanding of the concepts [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/11/623951255.jpg" alt="leverage terrain" title="leverage terrain" width="266" height="200" class="alignnone size-full wp-image-3479" /></p>
<p>I have been travelling in the last three weeks. One of my destinations was Tampa, Florida, where I attended <em>Ralph Vince</em>&#8216;s <strong>Risk-Opportunity Analysis</strong> course, over a weekend (check <a href="http://rvincetampa201011.eventbrite.com/" target="_blank" rel="nofollow">here</a> for a presentation of the course).<br />
My main objective for attending was to strengthen my knowledge of <strong>Money Management/Position Sizing</strong> and my understanding of the concepts presented in Vince&#8217;s books.<br />
The secondary objective was to gain an understanding of how to practically apply these concepts to Trend Following systems, and check what improvements the <strong>Leverage Space Model</strong> framework could provide.<span id="more-3478"></span></p>
<p>This is not a full review of the course but more of a &#8220;teaser&#8221; post giving you a &#8220;heads-up&#8221; that several posts covering this topic will be coming on the blog &#8211; as I explore and test the concepts on real-life trading systems.</p>
<h3>The Course</h3>
<p>The course was dense and covered a lot of material with all of the mathematical formulas behind the concepts explained in the <a href="http://parametricplanet.com/rvince/article.pdf" target="_blank" rel="nofollow">Leverage Space paper</a> that was discussed <a href="http://www.automated-trading-system.com/vince-leverage-space-model/">on this blog</a>. In a way, there is a large overlap with the contents of his <a href="http://www.amazon.com/exec/obidos/ASIN/0470455950/autotradblog-20" target="_blank" rel="nofollow">Leverage Space Trading Model book</a>, which expands on the concepts in the paper, with the Mathematics behind the concepts. The main ideas and concepts are the same.</p>
<p>The pivotal concept in the framework that Vince introduces is the <strong>multi-dimensional leverage terrain</strong>, which draws the return of a portfolio based on the leverage (position size) applied to each instrument.</p>
<div id="attachment_1951" class="wp-caption alignnone" style="width: 260px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/03/Full-Return-LSM.png" alt="In this example the model builds the terrain for 2 simultaneous coin-toss with a payoff of 2:1" title="Full-Return-LSM" width="250" height="198" class="size-full wp-image-1951" /><p class="wp-caption-text">In this example the model builds the terrain for 2 simultaneous coin-toss with a payoff of 2:1. The x and y axis represent the respective f-values (leverage) for each of the bets/trades - while the z-axis (vertical) represents the expected return</p></div>
<p>The maximum portfolio growth is located at the peak of the terrain, resulting from the specific corresponding leverage (or <em>f</em>-values) combination. The terrain construction <strong>does not take into account correlation</strong> between the instruments &#8211; instead, the model uses the joint probability of two scenarios occurring simultaneously, dictated by the price data history.</p>
<p>During the course Vince showed us several ways to &#8220;navigate&#8221; the terrain and determining the corresponding leverage factors, based on different objectives: geometric return, risk of drawdown and probability of being profitable in the next &#8220;period&#8221;. Another concept developed was the idea of investment horizon.</p>
<h3>The Software</h3>
<p>The other aspect covered in the course was the software that implements the Leverage Space Model calculations, which you would typically use to evaluate the optimal combination of leverage for your portfolio based on your criteria/objective function.</p>
<p>We walked through several simple examples from the course using both software packages that implement the Leverage Space Model concepts</p>
<p>Vince used to make available on his <a href="http://parametricplanet.com/rvince/" target="_blank" rel="nofollow">homepage</a> a java application that implemented the model. This is proprietary though and when I last quickly checked I could not see the link for it any more. You might have some luck obtaining a copy by emailing him.</p>
<p>However, Josh Ulrich, the author of the <a href="http://blog.fosstrading.com/" target="_blank">FOSS Trading blog</a> and several <a href="http://en.wikipedia.org/wiki/R_(programming_language)" target="_blank" rel="nofollow">R</a> packages has implemented the Leverage Space Model in a dedicated R package. The implementation is actually faster than the Java software (so much faster that Vince&#8217;s java app now generates R commands to run the LSPM package functions instead of its own optimizer).</p>
<p>Josh was there in Tampa and it was great meeting him too. He definitely has a great handle on the Leverage Space Model and I strongly recommend following his blog if you are interested in this material. Take a look now if you are after more specific examples on how to get started with the package (which can be found on <a href="https://r-forge.r-project.org/projects/lspm/" target="_blank" rel="nofollow">R-forge repository</a>).</p>
<h3>Next Steps</h3>
<p>If I have a criticism about the course, it would be regarding the format. I would have liked to spend less time on the Maths behind the concepts (most of it is covered in the <a href="http://www.amazon.com/exec/obidos/ASIN/0470455950/autotradblog-20" target="_blank" rel="nofollow">book</a> anyway) and spend more time in a &#8220;workshop&#8221; format where we could have investigated the software with some of our specific cases.<br />
I do not mind doing some homework on this after the course, and the fact that there is a google group where attendees can ask questions is useful, but being able to do this &#8220;in person&#8221; is probably better.</p>
<p>It has left me hungry for more (in a good way) and I am keen to explore some of the concepts more in detail. I anticipate several posts looking into this from a practical point of view in the next few weeks/months.</p>
<p>In the mean time, if you fancy getting started on this topic, you could take a quick look at Vince&#8217;s <a href="http://parametricplanet.com/rvince/article.pdf" target="_blank" rel="nofollow">paper</a> &#8211; in which he has managed to distill his ideas in a short, manageable 30 pages.  &#8211; or a more in-depth look by getting his latest <a href="http://www.amazon.com/exec/obidos/ASIN/0470455950/autotradblog-20" target="_blank" rel="nofollow">book on the Leverage Space Model</a>. In any case you might want to get started on the software side of things by downloading the <a href="https://r-forge.r-project.org/projects/lspm/" target="_blank" rel="nofollow">R package</a>. It is very easy to get started with it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/risk-opportunity-analysis/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Trading Diversification: A Free Lunch?</title>
		<link>http://www.automated-trading-system.com/trading-diversification-free-lunch/</link>
		<comments>http://www.automated-trading-system.com/trading-diversification-free-lunch/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 15:25:41 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Backtest]]></category>
		<category><![CDATA[Money Management]]></category>
		<category><![CDATA[Strategies]]></category>
		<category><![CDATA[Trend Following]]></category>
		<category><![CDATA[diversification]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=3370</guid>
		<description><![CDATA[&#160; The more I think about system design, the more I get convinced that diversification is a key to great performance. As the cliche goes: Diversification is the only free lunch on Wall Street. This is a concept equally shared by Modern Portfolio Theorists and Trend Following Wizards, who usually emphasise the concept &#8211; and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/11/diversified-hats-maiostra.jpg" alt="diversified hats" title="diversified hats" width="450" height="250" class="alignnone size-full wp-image-3372" /><br />
&nbsp;<br />
The more I think about system design, the more I get convinced that <strong>diversification </strong>is a key to great performance.</p>
<p>As the cliche goes:</p>
<blockquote><p>Diversification is the only free lunch on Wall Street.</p></blockquote>
<p>This is a concept equally shared by Modern Portfolio Theorists and <a href="http://www.automated-trading-system.com/resources/trend-following-wizards-fund-performance/">Trend Following Wizards</a>, who usually emphasise the concept &#8211; and are often quoted as trading around 100 different types of instrument, if not more.</p>
<p>The <a href="http://www.automated-trading-system.com/state-of-trend-following-october-2010/">State of Trend Following report</a> contains a decent level of diversification with around <a href="http://www.automated-trading-system.com/wp-content/uploads/2010/08/Instruments.html" target="_blank">50 instruments</a> and I wanted to use this as a base to check the <strong>impact of diversification on performance</strong>.</p>
<p>The idea is to run the same strategy using a subset of the portfolio (ie less instruments = less diversification) and see how it performs.</p>
<p>The problem, though, in selecting a subset of instruments out of the 51 in the original portfolio is that it could affect performance in the same way as any portfolio selection can (ie you could obtain vastly different results in trading the same system with two different sets of instruments, just by virtue of a &#8220;lucky&#8221; pick of strong performers).<span id="more-3370"></span></p>
<h3>Historical Performance</h3>
<p>First, let&#8217;s get a reference point and look at the historical performance of the system chosen for this test: the <strong>20-50 Moving Average system</strong>. Below is the performance back-test of that system over the last 20 years with the original portfolio:</p>
<p><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/11/equity-curve-log.png"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/11/equity-curve-log.png" alt="equity-curve-log" title="equity-curve-log" width="500" height="303" class="alignnone size-full wp-image-3382" /></a></p>
<table style="border:1px solid #c3c3c3; border-collapse:collapse;">
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;" colspan="2">
Performance Stats
    </th>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
CAGR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">29.68%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
Max DD
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">43.60%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
MAR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
0.68
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
Sharpe Ratio
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
0.59
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
Trade Number
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
3629
    </td>
</tr>
</table>
<p>&nbsp;</p>
<h3>Tests with Less Diversification</h3>
<p>As mentioned below, the idea is to work on a subset of instruments and compare the results with the initial portfolio. To avoid any sort of data mining/hindsight bias in the portfolio selection, I decided to run a <em>Monte-Carlo</em>-like approach to test the system with multiple instrument subset combinations: instead of picking a single portfolio subset of 25 instruments, I&#8217;ll run the system over <strong>1,000 different sub-portfolios, chosen randomly</strong>.</p>
<p>In order to get an idea of how gradually diversification affects the performance, I ran the test in three steps:</p>
<ul>
<li>sub-portfolio of 15 instruments</li>
<li>sub-portfolio of 25 instruments</li>
<li>sub-portfolio of 40 instruments</li>
</ul>
<p>All instruments are picked <strong>at random from the list of 51 instruments</strong> in the original portfolio.</p>
<p>Each of the 3,000 runs generated a full system performance record. Below are plotted the CAGR and Max Drawdown for each instance:</p>
<div id="attachment_3375" class="wp-caption alignnone" style="width: 454px"><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/11/diversification-scatterplot-big.png"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/11/diversification-scatterplot.png" alt="Click to zoom in" title="diversification scatterplot" width="444" height="342" class="size-full wp-image-3375" /></a><p class="wp-caption-text">Click to zoom in</p></div>
<p>The original system is also represented as the yellow dot.</p>
<p>Note that the &#8220;portfolio randomizer&#8221; did not account for any logic in terms of sector allocation. The original portfolio is balanced over several sectors (currencies, energies, rates, agriculturals, etc.) and there is no account for <strong>correlation </strong>between the different instruments (obviously correlation plays a big role in diversification: there is not much point in having dozens of instruments if they are all strongly correlated). However, over the large number of simulations, the main ideas of the test still come through.</p>
<p>Another point is that the only difference between the different runs were regarding the <strong>position sizing</strong> of each trade (fixed fractional), which were adjusted to obtain results of similar magnitude in each test (a portfolio with less instruments will require a slightly higher position size to match the return/drawdown rate of a portfolio with more instruments).</p>
<p>Looking at the plot chart, there are two main observations:</p>
<ul>
<li>We can see the <strong>gradual effect of diversification</strong> improving the system results by &#8220;moving&#8221; the cloud of performance points towards the left (less drawdown) and up (more return).</li>
<li>The other observation is that the <strong>more diversification</strong> there is, the <strong>lower the deviation</strong> in the system results &#8211; therefore providing more <strong>robustness </strong> and less chance of data mining impact from portfolio selection on your back-tests.</li>
</ul>
<h3>Diversification or Why the Coffee Cup Never Jumps</h3>
<p>That last point makes me think of an example discussed by Nassim Taleb in his <a href="http://www.amazon.com/exec/obidos/ASIN/1400063515/autotradblog-20" target="_blank" rel="nofollow">Black Swan</a> explaining the averaging of randomness:</p>
<blockquote><p>
Yet physical reality makes it possible for my coffee cup to jump &#8211; very unlikely, but possible. Particles jump around all the time. How come the coffee cup, itself composed of jumping particles, does not? The reason is, simply, that for the cup to jump would require all of the several trillion particles to jump in the same direction, and do so in lockstep several times in a row. This is not going to happen in the lifetime of this universe</p></blockquote>
<p>Every trade/instrument can be seen as a particle composed of a (large) random element and a smaller edge that we try to extract via a mechanical system.</p>
<p>A portfolio composed of too few instruments would be like drinking your coffee or tea from a cup made up of only a few particles: cups would be jumping around everywhere, making coffee drinking a perilous venture. Same concept applies to trading.</p>
<p>This is the way I see diversification: by adding a <strong>large number of mostly random elements</strong>, you can ensure that random moves have some <strong>cancelling effect</strong> on each other so that your &#8220;trading cup&#8221; never jumps. All that is left is to collect the small edge from all the instruments via your preferred trading strategy(ies).</p>
<p>In effect, this is how casinos operate &#8211; and with diversification you somehow get to be the house!<br />
&nbsp;<br />
&nbsp;<br />
Credits: The use of a portfolio randomizer and the display of results in a CAGR/MaxDD scatterplot was directly inspired from user sluggo on this <a href="http://www.tradingblox.com/forum/viewtopic.php?p=44839&#038;highlight=randomly#44839" target="_blank">Trading Blox forum thread</a>.<br />
&nbsp;<br />
&nbsp;</p>
<div style="font-size: 0.8em;">Hats picture credits: maiostra via flickr (CC)</div>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/trading-diversification-free-lunch/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Snapshot on Money Management and Leverage &#8211; Corrected</title>
		<link>http://www.automated-trading-system.com/snapshot-money-management-and-leverage/</link>
		<comments>http://www.automated-trading-system.com/snapshot-money-management-and-leverage/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 19:37:09 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Money Management]]></category>
		<category><![CDATA[leverage]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=3106</guid>
		<description><![CDATA[There are two simple options that can be used to leverage a strategy: position sizing notional funding These were discussed more in detail in a &#8220;how to apply leverage?&#8220;. Today, I just want to revisit this concept with a classic system: the Donchian Channel. As Ralph Vince’s Optimal f tells us: there is an optimal [...]]]></description>
			<content:encoded><![CDATA[<p>There are two simple options that can be used to leverage a strategy:</p>
<ul>
<li>position sizing</li>
<li>notional funding</li>
</ul>
<p>These were discussed more in detail in a &#8220;<a href="http://www.automated-trading-system.com/how-to-apply-leverage/">how to apply leverage?</a>&#8220;.</p>
<p>Today, I just want to revisit this concept with a classic system: the Donchian Channel.</p>
<p>As <a href="http://www.automated-trading-system.com/Handbook-Portfolio-Mathematics-Vince" target="_blank" rel="nofollow">Ralph Vince’s Optimal f</a> tells us: there is an optimal &#8220;bet size&#8221; (our fraction of capital risked on every trade) to achieve maximum &#8220;Terminal Wealth&#8221; (i.e. maximum CAGR).</p>
<p>This can be better illustrated with this chart generated by stepping through different position sizes for the Donchian system:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/10/CAGR-MaxDD1.png" alt="CAGR and MaxDD vs. Position Size" title="CAGR and MaxDD vs. Position Size" width="418" height="337" class="alignnone size-full wp-image-3099" /></p>
<p>One can see that past a certain point (2% position size), the extra leverage is detrimental to the actual return. On the other hand the Max Drawdown figure keeps on rising.</p>
<p>To apply leverage,<span id="more-3106"></span> we are free to slide along the curves to reach a desired level, but there is no point going past the optimal f. A 0.50% position-sized system will have less return and less volatility than a 1.50% one, but a 3.5% one will have less return and more volatility.</p>
<h3>Notional Funding</h3>
<p>I went into more detail comparing the notional funding leverage to the position sizing one in that <a href="http://www.automated-trading-system.com/how-to-apply-leverage/">post</a> mentioned at the start. A couple of problems with notional funding (which can be thought of as trading an account with part-real funds, part-imaginary funds to reach a desired notional account size) are:</p>
<ul>
<li>its impact dilutes over time (unless some re-balancing occurs)</li>
<li>its results are dependent on the equity curve path</li>
</ul>
<p>The second point is easily illustrated by this example: consider a system with a CAGR of 30% and MaxDD of 50%.<br />
If the notional funded account (trading a 100K notional account with real funds of 50K) reaches its MaxDD immediately, the loss would be 50% of 100K = -50K, which wipes out the real funds.<br />
On the other hand, if the account gets the opportunity to grow sufficiently before hitting the MaxDD, it will have built a &#8220;cushion&#8221; allowing it to better withstand the MaxDD.</p>
<p>With this in mind, I still wanted to check the impact that notional-funding leverage would have on the performance figures from the system.</p>
<p>I chose to leverage the system(s) tested under different position sizes with a 100% notional-funding levered one and a 50% de-levered one (think notional funding in reverse: trading a 200K account as if it was 100K):</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/10/PosSizeNalFund-Correct.png" alt="CORRECTED Leverage by Position Sizing or Notional Funding " title="CORRECTED Leverage by Position Sizing or Notional Funding " width="400" height="336" class="alignnone size-full wp-image-3118" /><!--more--></p>
<p>The chart above shows the impact that both types of leverage have on CAGR and MaxDD (note that position size is not charted, but as we saw in the first chart, it increases with MaxDD).</p>
<h3>Why Notional Funding does not affect Max Drawdown</h3>
<p>The CAGR figures (for a given position size) increase with the leverage provided by notional funding. However, the MaxDD figures seem little changed by this type of leverage.</p>
<p>The track record used for testing was fairly long (15 years) and this is one of the reasons why MaxDD figures seem barely affected:<br />
If the MaxDD occurs after years of compounding at high double-digit rates, the account will have grown by a large factor compared to the initial account and the effect of notional funding will be diluted to next to zero.</p>
<p>Let&#8217;s imagine an extreme scenario for illustration purposes:<br />
The strategy returns 100% a year for 10 years (no volatility, drawdown: just smooth straight line), then it drops by 50% (MaxDD) in the next year.</p>
<ul>
<li>If you start trading with 100, you end up with 100 x 2^10 = 102,400 after 10 years and 51,200 (102400 x 0.5) after the eleventh year: <strong>CAGR =</strong> (51200/100)^(1/11) &#8211; 1 <strong>= 76.32%, MaxDD = 50%</strong>.</li>
<li>If you start trading with notional account size of 100 but real funds of 50, you end up with 100 x 2^10 &#8211; 50 = 102,350 after 10 years and 51,175 after the eleventh year: <strong>CAGR =</strong> (51175/50)^(1/11) &#8211; 1 = <strong>87.78%, MaxDD = 50%</strong>.</li>
<li>If you start trading with notional account size of 100 but real funds of 200, you end up with 100 x 2^10 +100 = 102,500 after 10 years and 51,250 after the eleventh year: <strong>CAGR =</strong> (51250/200)^(1/11) &#8211; 1 = <strong>65.57%, MaxDD = 50%</strong>.</li>
</ul>
<p>If one rebalances regularly (ever year, every 5 years, every x% increase) to keep the level of leverage significant, we would expect to keep a similar impact on CAGR but a stronger impact on MaxDD.<br />
In the chart above, we would expect the 100% leverage curve to move towards the right (i.e. higher drawdowns) and the -50% one to move towards the left.</p>
<h3>A Couple of Points</h3>
<ul>
<li>It does not make sense to leverage a strategy using position size past its &#8220;optimal bet size&#8221; (how to evaluate it is probably the topic for <del datetime="2010-10-08T06:49:03+00:00">another post</del> a book like <a href="http://www.automated-trading-system.com/Handbook-Portfolio-Mathematics-Vince" target="_blank" rel="nofollow">Vince&#8217;s</a>)</li>
<li>It does not make sense to de-lever using notional funding as it will mainly reduce CAGR but not the drawdown</li>
<li>If using notional funding, re-balancing would affect MaxDD</li>
</ul>
<p>This is just an intro point on how money management is an essential part of any system&#8230;<br />
&nbsp;<br />
&nbsp;<br />
Note: that the figures are dependent on the number of portfolio instruments, length of track record, length of breakout, etc.  so do not attach too much importance on the actual figures. The main point is how these figures are relative to each other.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/snapshot-money-management-and-leverage/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Your worst Drawdown is yet to come</title>
		<link>http://www.automated-trading-system.com/your-worst-drawdown-is-yet-to-come/</link>
		<comments>http://www.automated-trading-system.com/your-worst-drawdown-is-yet-to-come/#comments</comments>
		<pubDate>Thu, 27 May 2010 09:33:51 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Money Management]]></category>
		<category><![CDATA[dave harding]]></category>
		<category><![CDATA[drawdown]]></category>
		<category><![CDATA[monte-carlo]]></category>
		<category><![CDATA[ruin]]></category>
		<category><![CDATA[winton capital]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=2319</guid>
		<description><![CDATA[in this world nothing can be said to be certain, except death and taxes. Arguing against Ben Franklin, I would say it is certain your (and my) Max Drawdown so far &#8211; whether in real trading or backtest &#8211; will be surpassed in the future. The maths even say that the probability of any drawdown [...]]]></description>
			<content:encoded><![CDATA[<table>
<tr>
<td>
<div><div id="attachment_2320" class="wp-caption alignnone" style="width: 310px"><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/05/Drawdown-Cliff-Jim-Moran.jpg"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/05/Drawdown-Cliff-Jim-Moran-300x300.jpg" alt="Looking over the drawdown cliffs" title="Drawdown-Cliff-Jim Moran" width="300" height="300" class="size-medium wp-image-2320" /></a><p class="wp-caption-text">Looking over the drawdown cliffs</p></div></div>
</td>
<td>
<blockquote><p>in this world nothing can be said to be certain, except death and taxes.</p></blockquote>
</td>
</tr>
</table>
<p>Arguing against Ben Franklin, I would say it is certain your (and my) Max Drawdown so far &#8211; whether in real trading or backtest &#8211; will be surpassed in the future. The maths even say that the probability of any drawdown in the future is 100% (although this might require a <em>very long</em> future, in a similar logic to the <a href="http://en.wikipedia.org/wiki/Infinite_monkey_theorem" target="_blank" rel="nofollow">Infinite Monkey Theorem</a>).</p>
<h3>Dave Harding on Drawdown</h3>
<p>I came across this paper <a href='http://www.automated-trading-system.com/wp-content/uploads/2010/05/Pros-and-Cons-of-Drawdown-as-a-Statistical-Measure.pdf'>(PDF download)</a> from Winton Capital, co-authored by David Harding, which discusses the pros and cons of drawdown as a statistical measure, whether used to evaluate managers or trading systems.</p>
<p>The main points of the paper are:</p>
<ul>
<li>Unlike volatility, drawdown represents a physical reality: the magnitude of loss that an investor could have suffered &#8211; this is probably why it is a popular statistic to evaluate systems and funds performance/risk.</li>
</ul>
<ul>
<li>Drawdown is not such a good indicator of quality for a system or manager &#8211; at least not as straightforward as usually assumed.</li>
</ul>
<p><span id="more-2319"></span></p>
<ul>
<li>A couple of charts illustrate how expected maximum drawdown increases with volatility, track record and reporting frequency. On the other hand, drawdown decreases as mean return increases. Nothing too surprising.</li>
</ul>
<ul>
<li>Maximum drawdown is a a single number derived from a single string of data: it is going to have a large error associated with it. Any extrapolation of future performance will therefore be highly error-prone. Even with adjustments to equalise the volatility of track records, maximum drawdown is a poor statistic for making inferences about future reward/risk ratio or even future drawdown. Averaging worst drawdowns would be less error-prone, statistically speaking.</li>
</ul>
<p>The paper concludes with:</p>
<blockquote><p>Drawdown may have a role in manager risk control, but it should be used with caution, and should be calculated with reference to probability (95%, 99% confidence level) from the characteristics of the underlying process rather than purely from the historical track record.</p></blockquote>
<h3>Risk of Drawdown</h3>
<p>A couple of volumes on my bookshelf discuss drawdowns and how to calculate their probability.</p>
<p>Balsara, in <a href="http://www.automated-trading-system.com/balsara-money-management-strategies-for-futures-traders/">Money Management Strategies for Futures Traders</a>, publishes tables of calculated risk of ruins based on different parameters.</p>
<p>However risk of ruin is different from risk of drawdown. Ruin is usually defined as a fixed capital level, representing a large percentage loss on initial capital. For example, a risk of ruin at 60% is the probability that your equity falls to 40% of your startuing capital. As the equity grows, the risk of hitting that &#8220;ruin threshold&#8221; decreases.</p>
<p>Risk of drawdown, on the other hand, stays constant regardless of how high the equity grows, because the drawdown &#8220;capital barrier&#8221; keeps moving up in line with the equity. Vince expands the concept of risk of ruin by modifying the calculation to derive the risk of drawdown (in <a href="http://www.automated-trading-system.com/Handbook-Portfolio-Mathematics-Vince">The Handbook of Portfolio Mathematics</a>)</p>
<p>Both risk of drawdown and risk of ruin increase as the track period or backtest length increases. However, the risk of drawdown tends to 100% as track period length increases, whereas the risk of ruin is bounded at a value determined  by the characteristic of the trading system results (probability of win, payoff, trade risk, etc.).</p>
<p>Monte-Carlo simulation allows for estimating the risks of drawdown and ruin by iterating a random process governed by characteristics such as probability of win, payoff ratio, percentage of capital risked on each trade.</p>
<h3>Risk of Ruin formula</h3>
<p>Perry Kaufman, in <a href="http://www.amazon.com/exec/obidos/ASIN/047126847X/autotradblog-20" rel="nofollow">New Trading Systems and Methods</a>, presents a formula to calculate the risk of ruin. This is more convenient than having to run a Monte-Carlo simulation but it does not allow for calculating a risk of drawdown.</p>
<p>The formula is as follows:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/05/RiskRuinFormula1.png" alt="RiskRuinFormula" title="RiskRuinFormula" width="468" height="257" class="alignnone size-full wp-image-2348" /></p>
<h3>Calculate your risk of Drawdown/Ruin</h3>
<p>Below is a calculator that implements risk of ruin or risk of drawdown calculations based on the two methods described above (the risk of ruin is calculated from both a Monte-Carlo simulation and from the formula).</p>
<form>
<table>
<tr>
<td>
Prob. Win:</td>
<td>
<input NAME="ProbWin" VALUE="0.5" MAXLENGTH="15" SIZE=10></td>
</tr>
<tr>
<td>Win/Loss ratio:</td>
<td>
<input NAME="WLRatio" VALUE="1" MAXLENGTH="15" SIZE=10></td>
</tr>
<tr>
<td>Risk Amt (%):</td>
<td>
<input NAME="BetSize" VALUE="10" MAXLENGTH="15" SIZE=10></td>
</tr>
<tr>
<td>Number of periods:&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>
<input NAME="Periods" VALUE="100" MAXLENGTH="15" SIZE=10></td>
</tr>
<tr>
<td>Risk of:</td>
<td>
<select name="Risk">
<option value="Ruin">Ruin</option>
<option value="Drawdown">Drawdown</option>
</select>
</td>
</tr>
<tr>
<td>Loss level (%):</td>
<td>
<input NAME="Threshold" VALUE="70" MAXLENGTH="15" SIZE=10></td>
</tr>
<tr>
<td>
<div id="counter">iteration: &nbsp;&nbsp;&nbsp;0/1000</div>
</td>
<td>
<input NAME="calc" VALUE="Calculate" TYPE=BUTTON onClick=CalculateRisk(this.form)></td>
</tr>
<tr>
<td><strong>Risk (MC):</strong></td>
<td>
<input NAME="CalcRisk" READONLY SIZE=10></td>
</tr>
<tr>
<td><strong>Risk of Ruin (formula):</strong></td>
<td>
<input NAME="CalcRiskF" READONLY SIZE=10></td>
</tr>
</table>
</form>
<p>Just fill in the stats of the trading system, the test length and the level of drawdown/ruin to be tested and hit the Calculate button. Note that both calculated values can diverge significantly (as in the pre-populated example) if the number of periods is relatively low.</p>
<p>In case you find this tool useful, it has been added under the <a href="http://www.automated-trading-system.com/resources/">resources</a> page.  Disclaimer: I have not done full-proof 100% testing on it but playing with it seems to give good results.</p>
<p>Note that this method is probably not ideal as it only considers the average trade statistics and simulates sequential trading (whereas real-life systems will have multiple trades on the go at the same time). Also importantly, it completely ignores any time-dependence in the stream of results (such as auto-correlation, etc.).</p>
<h3>The Trading Blox approach</h3>
<p>Trading Blox runs Monte-Carlo simulations for any system backtested and produces some useful charts and information from it.</p>
<p>The Monte-Carlo simulation is different as it is applied to the daily equity curve returns &#8211; which is probably more realistic (although it still removes the time-dependence of the return stream).</p>
<p>One of the standard charts produced analyses drawdowns and attempts to give confidence levels as discussed in the Harding paper:</p>
<p><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/05/MonteCarloDrawdownGraph_P1.png"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/05/MonteCarloDrawdownGraph_P1.png" alt="MonteCarloDrawdownGraph_P1" title="MonteCarloDrawdownGraph_P1" width="498" height="368" class="alignnone size-full wp-image-2342" /></a></p>
<p><script type="text/javascript" src="http://www.automated-trading-system.com/wp-content/uploads/2010/05/risk-ruin.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/your-worst-drawdown-is-yet-to-come/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to apply Leverage?</title>
		<link>http://www.automated-trading-system.com/how-to-apply-leverage/</link>
		<comments>http://www.automated-trading-system.com/how-to-apply-leverage/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 15:16:42 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Money Management]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[fees]]></category>
		<category><![CDATA[leverage]]></category>
		<category><![CDATA[notional funding]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=2091</guid>
		<description><![CDATA[Several CTAs or fund managers offer a standard version of their fund, along with a leveraged version (called enhanced risk, 2x or 3x fund, etc.). However a simple performance comparison of the leveraged option against the standard option usually makes it obvious that the former does not offer a simple performance multiplier of latter. I [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_2092" class="wp-caption aligncenter" style="width: 510px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/04/Leverage_WilWheaton2.jpg" alt="picture credits: WilWheaton@flickr" title="Leverage_WilWheaton2" width="500" height="172" class="size-full wp-image-2092" /><p class="wp-caption-text">picture credits: WilWheaton@flickr</p></div>
<p>Several CTAs or fund managers offer a standard version of their fund, along with a <strong>leveraged version</strong> (called enhanced risk, 2x or 3x fund, etc.). However a simple performance comparison of the leveraged option against the standard option usually makes it obvious that the former does not offer a simple performance multiplier of latter.</p>
<p>I was looking at Conquest Capital Group and their MFS fund (based on the Trend Following benchmark used in their paper <a href="http://www.automated-trading-system.com/betafication-alpha-commoditization-trend-following/">discussed here</a>), which offers two such options: their standard fund and a 3x option.</p>
<p>The main fund, since inception (2004), returns 56% (net of fees) with a max drawdown of 14%. Their 3x leveraged option, over the same period, returns 85% with a max drawdown of 47%. The <em>risk</em> is indeed tripled, but the <em>reward</em> falls fairly short of it. When removing the fees on both funds (1% for the standard fund and 3% on the leveraged fund), the performances are 66% vs. 120%. This is just an example. Most CTAs are similar in that respect and it highlights some effects of leverage.<span id="more-2091"></span></p>
<h3>Leverage is not a magic bullet</h3>
<p>A similar concept has become more mainstream with the recent apparition of leveraged ETFs and the realisation by <em>some</em> investors of the large volatility decay that they incur (when they are held on a long term-basis, i.e. anything longer than intra-day). Check the long-term charts of FAS and FAZ (3x leveraged bullish and bearish financial ETFs): the only long-term profitable trade would be to short both, to cash in on the volatility decay while being hedged (since Nov 08 they are down respectively 58% and 98%).</p>
<p>This is simply due to the design of these instruments, which aim to replicate and triple the daily returns of the tracked benchmark. This highlights a fact about leverage: <strong>multiplying the arithmetic returns will not result in the same multiplication of the geometric returns</strong>.</p>
<h3>Leverage with Position Sizing</h3>
<p>A typical way of leveraging a trading strategy is to increase the position size, and the resulting risk and return for each trade.</p>
<p>Assuming a fractional betting strategy for position sizing, the leverage dictated by the value of the fraction of capital risked on each trade will impact the overall average geometric return. Theories describing this phenomenon are the <a href="http://en.wikipedia.org/wiki/Kelly_criterion" target="_blank" rel="nofollow">Kelly criterion</a> and <a href="http://www.automated-trading-system.com/Handbook-Portfolio-Mathematics-Vince" target="_blank" rel="nofollow">Ralph Vince&#8217;s Optimal f</a>.</p>
<p>One of the main implications of this type of Money Management is that, for every strategy, there is an optimal fractional position size to maximize the (past) geometric return (and future if you assume that the past is a good representation of the future). Any fractional position size higher than this optimal value would result in a lower return.</p>
<p>Any strategy (with its resulting stream of returns) has an <strong>embedded maximum leverage</strong>, which can be defined with the optimal f.</p>
<h3>Notional funding: another type of Leverage</h3>
<p>Notional funding can be compared to trading with <em>imaginary money</em>. Typically, CTAs also offer notional funding: they trade your account based on an agreed notional amount, which is different from the actual funds in the account. For example, you could send 100k to your CTA and instruct them to trade it as if it were a 300k account. Or you could do the same thing with your own trading system.</p>
<p>One could intuitively think that this is exactly the same thing as tripling the position size but there is a difference.</p>
<p>Let&#8217;s consider this simple example with a strategy producing two consecutive trades of +10% and -5%:</p>
<p>The notional-funded account would close at 300 x 1.10 x 0.95 = 313.50. This would result in a gain of 13.50 on actual funds of 100: +13.50%, which is exactly triple the return one would get on a fully-funded, unleveraged account (100 x 1.10 x 0.95 = 104.50 for a 4.5% return)</p>
<p>Leveraging by tripling the position size on an account of 100 would result in two consecutive trades of +30% and -15%. Final balance would be: 100 x 1.30 x 0.85 = 110.50 &#8211; or a +10.50% return.</p>
<p>Initially, notional funding appears a better solution to the leverage issue as it does not suffer from the <em>volatility decay</em> or erosion of returns introduced by increasing position size.</p>
<h3>Issues with Notional Funding: Cost</h3>
<p>But funding always comes at a cost, pretty much in the same way as an overdraft gets charged by your bank. Another way to look at notional funding is to compare it to borrowing trading capital. The higher ratio of your notional account you borrow (higher leverage), the more the <em>cost of borrowing</em> will impede your trading returns.</p>
<p>In practice, you do not really borrow any funds (only by the power of imagination) but this practice still ends up impacting your return when you start taking into consideration the return on margin.</p>
<h3>Impact of Margin Interest on Trend Following Returns</h3>
<p>This <a href="http://docs.edhec-risk.com/EID-2008-Doc/documents/Evaluating_Trend-Following_Commodity_Index.pdf<br />
" target="_blank" rel="nofollow">paper from EDHEC Risk (PDF)</a> looks at Trend Following/Managed Futures performance and presents an interesting breakdown of the overall return of such strategy. Assuming interest being paid at T-bill rates on the margin used for trading, it represents the bulk of the returns compared to actual Trend Following gains and rebalancing gains.</p>
<p>This is one of the reasons for the <em>hidden cost</em> of notional funding: a notional-funded account would enjoy the same Trend Following and rebalancing gains as a fully-funded account of the same size, but only a fraction of the return on margin (which is based on the <em>actual</em> account size).</p>
<p>To illustrate that point, below is a chart showing the impact of fees and margin interest on an arbitrary performance curve:</p>
<img src="http://www.automated-trading-system.com/wp-content/uploads/2010/04/Fees_Margin1.png" alt="my caption" title="Fees_Margin" width="475" height="299" class="size-full wp-image-2096" />
<p>Notice the fairly sizable difference between taking return on margin into account or not (red v. blue curves). The green curve adds fees at 1% annually. The return on margin was assumed to be the T-bill rate for that month.</p>
<h3>Risk and Margin Requirements</h3>
<p>Another issue of Notional funding used as leverage are the constraints imposed by the underlying strategy.</p>
<p>Any strategy requires a minimum margin commitment to support the positions. Effectively the <strong>Margin-to-Equity</strong> ratio will dictate the <strong>maximum leverage</strong> one can use to trade a strategy.</p>
<p>The <strong>Drawdown</strong> is also a leverage-limiting factor: the more risk the strategy generates (higher drawdowns), the less leverage can be applied. If a strategy regularly exhibits drawdowns at the 40% level, there is a always the possibility that such drawdown appears at the beginning of trading the strategy. Based on the level of leverage, a notional-funded account might not have the time to build enough equity cushion to withstand the drawdown, which would result in the actual account funds going to 0 or a margin call.</p>
<p>Note that in this case, the sequence of trade returns has an impact on the outcome: if the strategy produces gains of 100% followed by a drawdown of 40% a 3x leverage via notional funding would still result in a gain of 60% (300 x 2 x 0.6 = 360, or a profit of 60 with actual funds of 100). If the 40% drawdown appears first, the notional account would shrink to 180, which would result in a negative actual account balance (trading would have to be stopped before then).</p>
<h3>Leverage Comparisons</h3>
<p>With these considerations and the benefit of hindsight, here is a comparison between the same arbitrary strategy as above (fees and interest included) traded with:</p>
<ul>
<li>no leverage</li>
<li>6x leverage using notional funding</li>
<li>6x leverage using position sizing</li>
</ul>
<img src="http://www.automated-trading-system.com/wp-content/uploads/2010/04/6xLeverage.png" alt="my caption" title="6xLeverage" width="482" height="332" class="size-full wp-image-2093" />
<p>The notional funding <em>appears</em> to be the better option. However the position sizing leverage is independent of the order in the sequence of returns &#8211; as opposed to the notional funding leverage. If that nasty current drawdown (which is the largest one historically) had appeared at the beginning of trading and carried on further to reach 17%, the notional-funded account would have been wiped out.</p>
<p>The next chart highlights the impact of leverage on the difference between the two types of leverage for that specific strategy:</p>
<img src="http://www.automated-trading-system.com/wp-content/uploads/2010/04/Performance_V_Leverage.png" alt="my caption" title="Performance_V_Leverage" width="472" height="319" class="size-full wp-image-2094" />
<p>The target curve represents a simple multiplier (equal to the leverage factor) of the unleveraged performance (which, as we have shown is not attainable). The position sizing leverage clearly exhibits the behaviour discussed in Optimal f theories with the return breaking down past the optimal value.</p>
<p>Hopefully, this gives you a few ideas about how to work leverage in your trading strategies or when sending funds to CTAs. Taking the time to look into it has cleared up a few points for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/how-to-apply-leverage/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

