<?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; Futures</title>
	<atom:link href="http://www.automated-trading-system.com/category/instruments/futures/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>Mon, 23 Jan 2012 11:58:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>S&amp;P make the news… with a Trend Following Index</title>
		<link>http://www.automated-trading-system.com/sp-news-trend-following-index/</link>
		<comments>http://www.automated-trading-system.com/sp-news-trend-following-index/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 10:05:17 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Equities]]></category>
		<category><![CDATA[Fund Review]]></category>
		<category><![CDATA[Futures]]></category>
		<category><![CDATA[Trend Following]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=4162</guid>
		<description><![CDATA[They say any publicity is good publicity… If that&#8217;s the case, Standard and Poor&#8217;s might have achieved the &#8220;marketing coup&#8221; of the year/decade/century (time will tell) with their downgrade of US credit rating last Friday (possibly thanks to a $2 Trillion Mistake). SGMI: a new Trend Following Index But this is not the piece of [...]]]></description>
			<content:encoded><![CDATA[<p>They say <em>any publicity is good publicity</em>…</p>
<p>If that&#8217;s the case, <em>Standard and Poor&#8217;s</em> might have achieved the &#8220;marketing coup&#8221; of the year/decade/century (time will tell) with their downgrade of US credit rating last Friday (possibly thanks to a <a href="http://www.treasury.gov/connect/blog/Pages/Just-the-Facts-SPs-2-Trillion-Mistake.aspx" target="_blank" rel="nofollow">$2 Trillion Mistake</a>).</p>
<h3>SGMI: a new Trend Following Index</h3>
<p>But this is not the piece of news that caught my attention today.<br />
<em>Standard and Poor&#8217;s</em> <a href="http://www.standardandpoors.com/servlet/BlobServer?blobheadername3=MDT-Type&#038;blobcol=urldata&#038;blobtable=MungoBlobs&#038;blobheadervalue2=inline%3B+filename%3D20110809_SGMI-Launch.pdf&#038;blobheadername2=Content-Disposition&#038;blobheadervalue1=application%2Fpdf&#038;blobkey=id&#038;blobheadername1=content-type&#038;blobwhere=1243945158307&#038;blobheadervalue3=UTF-8" target="_blank" rel="nofollow">announced</a> the creation of the <strong>S&#038;P Systematic Global Macro Index (SGMI)</strong>.</p>
<p>With this index, S&#038;P basically intends to track &#8211; or rather replicate &#8211; the performance from the <strong>Managed Futures / CTA space</strong>:</p>
<blockquote><p>London, August 9, 2011 &#8211; S&#038;P Indices has launched the S&#038;P Systematic Global Macro Index (SGMI), which aims to reflect price trends of highly liquid global futures, representing the general level of volatility taken by managers in the global macro and managed futures/Commodity Trading Advisor (CTA) space.</p></blockquote>
<p>This is a <strong>rules-based index</strong>, which will implement a <strong>trend following system</strong> to <span id="more-4162"></span>trade a (semi-diversified) portfolio of liquid futures markets, with a fairly standard risk-adjusted equal allocation per sector and per instrument:</p>
<blockquote><p>The Index is diversified globally across 37 constituents, falling into the six most widely traded sectors&#8211; Commodities, Energy, Fixed Income, Foreign Exchange, Short Term Interest Rates and Equity Indices.</p>
<p>The weighting scheme applies an even risk capital allocation across the index by sector and again to each constituent within each sector so that no single sector or constituent drives the volatility of the index.</p></blockquote>
<h3>Other Trend Following Indices</h3>
<p>Of course, this is not a new concept. There are several companies tracking the performance of Managed Futures (<a href="http://www.newedge.com/web/guest/brokerage_services/research/newedge_indices" target="_blank" rel="nofollow">Newedge</a>, <a href="http://www.barclayhedge.com/research/indices/cta/sub/cta.html" target="_blank" rel="nofollow">BarclayHedge</a>) with their respective indices &#8211; or even &#8220;closer to home&#8221; the <a href="http://www.automated-trading-system.com/resources/trend-following-wizards-fund-performance/">Trend Following Wizards report</a> on this blog. </p>
<p>Even the concept of using a <strong>rules-based systematic trend following</strong> approach has been implemented before. Apart from the <a href="http://www.automated-trading-system.com/resources/state-trend-following/">State of Trend Following monthly report</a>, also on this blog, long-time readers will recall this <a href="http://www.eurekahedge.com/news/attachments/06_feb_Conquest_The_Beta_of_Managed_Futures.pdf" target="_blank" rel="nofollow">Beta of Managed Futures paper</a> by Conquest Capital Group, which developed a <strong>mechanical trend following benchmark</strong> aimed at replicating CTAs performance. I discussed the paper more than a year ago in this <a href="http://www.automated-trading-system.com/betafication-alpha-commoditization-trend-following/">&#8220;Betafication of Alpha: towards a Commoditization of Trend Following?&#8221;</a> post, and was asking then &#8220;<em>when the launch of a Trend Following ETF?</em>&#8220;.</p>
<p>The end game of Conquest is of course to market their fund implementing this benchmark and it is pretty certain that the end game with this S&#038;P index is similar. One can only speculate (again) as to how long it will take to see a <strong>SGMI Trend Following ETF</strong>.</p>
<p>The underlying strategy in this new S&#038;P index seems to contain an <strong>adaptive timeframe</strong> logic (whereas the Conquest Capital Group benchmark uses a combination of several fixed timeframes to capture trends at different levels):</p>
<blockquote><p>Uniquely, the trend-following model used [by the SGMI] to determine the position of each constituent is flexible enough to allow a customized time-period for each constituent on a monthly basis, unlike models which are based on fixed time-periods. This means that if a longer term trend is driving the market, the Index reflects that, but if a shorter-term trend becomes significant the Index picks that up, using an iterative process to test the stability of each trend.</p></blockquote>
<h3>Trend Following ETFs: a Viable Possibility?</h3>
<p>Of course, despite the potential appeal of strong replication and much lower fees for a &#8220;speculative&#8221; SGMI ETF, this is <strong>not necessarily a winning proposition</strong> for the investor. The debate resides in whether CTA managers can justify their fees.</p>
<p>Using a <a href="http://www.automated-trading-system.com/geometric-information-ratio/">Geometric Information Ratio</a> calculation based on the Conquest benchmark, I showed previously that <a href="http://www.automated-trading-system.com/cta-alpha-calculate/">CTAs still produce alpha over the benchmark on a net-of-fees basis</a> &#8211; most likely thanks to their research in other areas such as <a href="http://www.automated-trading-system.com/better-trend-following-improved-roll-yield/">enhanced rolling methodology</a>, <a href="http://www.automated-trading-system.com/execution-benefits-of-algorithmic-trading-for-ctas/">execution efficiency</a>, extra diversification (100+ markets instead of 37), etc.<br />
Note that this calculation was not free of survivorship bias though.</p>
<p>This could be one of the reasons why the Conquest fund has not taken off in any substantial manner (less than $200M in AUM after 7 years trading).</p>
<p>Another similar Trend Following fund is the Cambria Global Tactical ETF (GTAA), run by <a href="http://www.mebanefaber.com/" target="_blank" rel="nofollow">Mebane Faber</a>. Unlike CTAs it does not trade futures (it is an actively managed “ETF of ETFs”), however its core strategy uses long-term trend following principles to allocate funds between 50 to 100 underlying ETFs representing different global asset classes.</p>
<p>It only launched late last year and is already at the same levels of AUM as the Conquest fund, showing that <strong>there is an appetite for this type of product in an accessible format</strong> (i.e. no high minimum account size).</p>
<p>A fact also highlighted in the S&#038;P press release:</p>
<blockquote><p>&#8220;Issues like high minimums and high fees have made it difficult for many investors to gain access to global macro and managed futures strategies. We envisage that new products based on this index will give investors the ability to invest in a long/short, comprehensive set of the main futures contracts.&#8221;</p></blockquote>
<h3>&#8220;Gimmicky&#8221; Index and ETF?</h3>
<p><a href="http://blogs.wsj.com/financial-adviser/2011/08/04/let-me-give-you-a-hint/" target="_blank" rel="nofollow">Josh Brown</a> and <a href="http://abnormalreturns.com/too-much-is-never-enough/" target="_blank" rel="nofollow">Abnormal Returns</a> argue that, in a case of <em>the tail <del>wagging the dog</del> giving birth to puppies</em>, there is a plethora of index creation, in the sole aim to support &#8220;niche and gimmicky ETFs&#8221; &#8211; quickly turning into &#8220;zombie ETFs&#8221; destined to populate the <a href="http://investwithanedge.com/etf-deathwatch-for-august-2011-count-hits-29-month-high" target="_blank" rel="nofollow">ETF Deathwatch list</a>. </p>
<p>It will be interesting to see if the &#8220;SGMI ETF&#8221; is one these &#8220;puppies&#8221; or whether it can create a substantial impact in the Managed Futures and Trend Following industry &#8211; as its great-grandfather the SPY did within the wider investment industry (trading volume: $80B yesterday).</p>
<h3>What To Think of it?</h3>
<p>It obviously depends on the actual performance of this index and its derived products, so only time will tell.</p>
<p><strong>CTAs</strong>: Do you see this development as a threat to your business, or as a way to bring more awareness to the sector? Are you feeling confident about the added value that you can provide to fend-off this potential new competition?</p>
<p><strong>Investors</strong>: Are you excited at the prospects of being able to invest in managed Trend Following without the big &#8220;minimum account size&#8221; hurdle? Are you skeptical of the capacity of the index to replicate the performance of Trend Followers?</p>
<p><strong>Independent system developers</strong>: Does this reinforce your belief into building your own system? Would you reconsider building a system if you could invest in an ETF-like Trend Following product?</p>
<p>I&#8217;m keen to hear your opinions… Feel free to contribute to the discussion in the <a href="http://www.automated-trading-system.com/sp-news-trend-following-index#comments">comments section</a> below.<br />
&nbsp;<br />
&nbsp;<br />
<strong>UPDATE</strong>: Tim Pickering from Auspice Capital has commented below but also expressed his (interesting) point of view from a CTA perspective on their blog. In essence they do not feel threatened as they <em>&#8220;believe in the separation of the alpha and index methods&#8221;</em> (read <a href="http://amfmblog.com/2011/08/managed-futures-alpha-beta-and-etfs/" target="_blank" rel="nofollow">the post here</a> to see why). He also pointed out that:</p>
<blockquote><p>S&#038;P is surely not the first to do this. In fact, their previous effort has been widely regarded as unsuccessful from a performance standpoint. The S&#038;P DTI (and related) indices have been around for some time now.</p></blockquote>
<p>&nbsp;<br />
&nbsp;<br />
<strong>UPDATE 2: Several Trend Following investment products (ETF, ETN, etc.) already exist actually.</strong></p>
<p>Prompted by reader Pumpernickel&#8217;s comment (below), I decided to research more about the DTI index that was mentioned by Tim Pickering in his blog post. I was under the impression that a trend following ETF was a really new concept, but it appears that some products very similar already exist. Below is a summary from this &#8220;google&#8221; research:</p>
<p>The &#8220;Diversified Trends Indicator&#8221; (DTI) has been created by Victor Sperandeo, with a few investment products having been launched based on this index (or one of its sub-indices: the &#8220;Commodity Trends Indicator&#8221; [CTI] and the &#8220;Financial Trends Indicators&#8221; [FTI]). The DTI is a based on a single mechanical trend following/momentum strategy applied to a portfolio of 24 US futures.</p>
<p>From Alpha Financial Technologies (Victor Sperandeo&#8217;s firm) <a href="http://www.aftllc.com/history.html" target="_blank" rel ="nofollow">website</a>:</p>
<blockquote><p>In 2002, AFT granted Standard &#038; Poor’s the exclusive right to sublicense the indexes to third parties, known as the S&#038;P Diversified Trends Indicator, S&#038;P Commodity Trends Indicator, and S&#038;P Financial Trends Indicator. S&#038;P launched the S&#038;P Diversified Trends Indicator in January of 2004. Over the next two years several offshore products linked to the S&#038;P DTI were launched, including a UCITS III Fund by Nomura International PLC. In 2007, Rydex launched the first long/short managed futures mutual fund, which tracks the S&#038;P DTI. Direxion funds launched a mutual fund that tracks the CTI® and a mutual fund that tracks the FTI™ in 2008 and 2009, respectively. In July of 2008, Merrill Lynch structured an exchange-traded note that tracks the S&#038;P CTI.</p>
<p>In November 2009, AFT commenced licensing its indexes directly to third parties, although existing S&#038;P licenses remain in effect. On August 1, 2010 AFT launched the FX Trends Index™ (FXTI®). In January 2011, Wisdom Tree launched an exchange traded fund (ETF) which tracks the DTI®.</p>
<p>Investment banks and financial institutions in over 15 countries worldwide have licensed AFT’s indexes. As of April 2011, there are over $3 billion invested globally in products utilizing AFT&#8217;s indexes.</p></blockquote>
<p><strong>Tickers</strong> for the indices and some of their investable products:</p>
<p><strong>Bloomberg Index Tickers</strong>: </p>
<ul>
<li>AFT Indices: DTI® TR: <strong>DTITR</strong> <Index>, CTI® TR <strong>CTITR</strong> <Index>, FTI™ TR <strong>FTITR</strong> <Index>.
</li>
<li>S&#038;P Diversified Trends Indicator: Price Return: <strong>SPDTP</strong>, Total Return&#8221; <strong>SPDTT</strong>.
</li>
</ul>
<p><strong>Investable Products</strong>:</p>
<ul>
<li>Rydex SGI Managed Futures: <a href="http://www.google.com/finance?q=rymfx" target="_blank" rel="nofollow">RYMFX</a> (mutual fund based on S&#038;P DTI and trading since 2007)</li>
<li>ELEMENTS S&#038;P CTI: <a href="http://www.google.com/finance?q=NYSE%3ALSC" target="_blank" rel="nofollow">LSC</a> (ETN based on the S&#038;P CTI and trading since 2009)
</li>
<li>Direxion Commodity Trends: <a href="http://www.google.com/finance?q=MUTF:DXCTX" target="_blank" rel="nofollow">DXCTX</a> (mutual fund based on the AFT CTI and trading since 209)
</li>
<li>Direxion Financial Trends: <a href="http://www.google.com/finance?q=MUTF:DXFTX" target="_blank" rel="nofollow">DXFTX</a> (mutual fund based on the AFT FTI and trading since 209)
</li>
<li>WisdomTree Managed Futures: <a href="http://www.google.com/finance?q=NYSE:WDTI" target="_blank" rel="nofollow">WDTI</a> (ETF based on the AFT DTI and trading since 2011)
</li>
</ul>
<p>The methodology used to calculate the index is made public by AFT &#8211; it can be found <a href="http://www.aftllc.com/images/DTI%20CTI%20FTI%20%20Methodology%20March%202011.pdf" target="_blank" rel="nofollow">here as a pdf document</a>.<br />
A document for the S&#038;P DTI can be found <a href="http://www.attaincapital.com/files/dti_methodology.pdf" target="_blank" rel="nofollow">there as a pdf document</a>.</p>
<p>I have also found this &#8220;interesting discussion&#8221; between Attain Capital and Victor Sperandeo on whether DTI-based products really can deliver Managed Futures performance. </p>
<p>In the first &#8220;missive&#8221; (in <a href="http://www.hedgeworld.com/blog/?p=2152" target="_blank" rel="nofollow">this article</a>), Attain Capital argue that the DTI-based products are wrongly labeled as &#8220;Managed Futures&#8221; as they offer no exposure to the sector directly. They go on to show that the DTI index has seriously under-performed the Newedge CTA Index (and that in turn the Rydex mutual fund slightly underperformed its DTI benchmark due to expenses) since 2007 (total return of 28.85% for the Newedege index vs. 3.36% for the Rydex fund). They also chart the 12-month rolling correlation between the DTI and various CTA indexes. The figure oscillates around 0.3 and 0.9 for an average of 0.6 between 2000 and 2007. </p>
<p>Victor Sperandeo <a href="http://www.hedgeworld.com/blog/?p=2223" target="_blank" rel="nofollow">responds</a> that he <em>&#8220;developed the Diversified Trends Indicator™ as a way for investors to access the “core” returns embedded within trend-following in the futures markets&#8221;</em> and that the DTI does indeed implement a (single) Managed Futures strategy by the way of a mechanical trend following system on a diversified portfolio of futures. He further highlights that the DTI actually out-performed the Newedge CTA Index since 2004 while providing a more practical way of investing in Managed Futures, compared to the un-investable CTA index from Newedge.</p>
<p>In a <a href="http://managed-futures-blog.attaincapital.com/2011/03/24/pointcounterpoint-on-the-rydexwisdom-tree-managed-futures-funds/" target="_blank" rel="nofollow">further reply</a>, Attain Capital highlights that comparison between DTI and Newedge CTA Index should be done on a realistic basis (DTI Total return minus an annual 2% fee with the Newedge index already being net of fees), in which case the DTI slightly under-performs the Newedge CTA index, concluding:</p>
<blockquote><p>  We don’t believe they will see long term success beating the managed futures indices (or if they are even trying to beat those benchmarks) because they track only a single strategy.</p></blockquote>
<p>It seems that both have a point &#8211; and certainly a different viewpoint (and interests). It actually ties back to the alpha vs. replicated beta &#8220;debate&#8221; and what place the mechanical and investable index-based products take in the managed futures space.</p>
<p>As Tim Pickering was saying <em>&#8220;I believe in the <strong>separation of the alpha and index methods</strong>. We feel it will bring <strong>awareness to CTA</strong> and offer product to investors that do not know about/understand or have access to “Accredited or QEP” products. For CTAs that generate Alpha at reasonable price, this exposure can only help you.&#8221;</em></p>
<p>It will be interesting to see &#8211; but hard to measure &#8211; whether a <a href="http://www.slate.com/id/2180301/pagenum/all/" target="_blank" rel="nofollow">Starbuck effect</a> additionally develops from these products to boost sales from classic CTAs.</p>
<p>These indices and products are something I had completely missed, so thanks again to the readers who offered pointers to more info.<br />
&nbsp;<br />
&nbsp;<br />
<strong>UPDATE 3: Trader Vic Index (TVI)</strong>:</p>
<p>Thanks to reader RB, who pointed out the <a href="http://www.arrowfunds.com/default.aspx/MenuItemID/948/MenuGroup/_AF.A0.Home.htm" target="_blank" rel ="nofollow">Arrow Managed Futures Trend Fund</a>, which tracks another similar index created by Victor Sperandeo: the  <em>Trader Vic Index</em> (TVI).</p>
<p>The index was developed as a partnership between <a href="http://markets.rbs.com/EN/Showpage.aspx?pageID=845" target="_blank" rel ="nofollow">RBS</a> and <a href="http://www.eamlp.com/access_home.html" target="_blank" rel ="nofollow">Enhanced Alpha Management, L.P.</a> (EAM, LP) &#8211; Sperandeo&#8217;s CTA firm &#8211; and launched in 2009. The Arrow Funds mutual fund offering based on that index started trading in 2010, and has around $100M in AUM.</p>
<p><strong>Tickers</strong>: <a href="http://www.bloomberg.com/apps/quote?ticker=TVICTR:IND" target="_blank" rel ="nofollow">TVICTR:IND</a> (Bloomberg index ticker) and <a href="http://www.google.com/finance?q=MFTFX" target="_blank" rel ="nofollow">MFTFX</a> (Arrow mutual fund on google finance).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/sp-news-trend-following-index/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<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>ETF v. Futures: a Quantification</title>
		<link>http://www.automated-trading-system.com/etf-v-futures-a-quantification/</link>
		<comments>http://www.automated-trading-system.com/etf-v-futures-a-quantification/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 10:57:58 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Data]]></category>
		<category><![CDATA[Equities]]></category>
		<category><![CDATA[Futures]]></category>
		<category><![CDATA[correlation]]></category>
		<category><![CDATA[etf]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=4019</guid>
		<description><![CDATA[I have already covered the idea of using ETFs in place of Futures. Today, I wanted to run a quantitative comparison between the two instrument types The ETF sector has been growing at an impressive rate, with new offerings popping up every month and providing a wider choice in selecting a portfolio to trade. One [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2011/02/ETF-Growth.png" alt="" title="ETF Growth" width="354" height="211" class="alignnone size-full wp-image-4025" /></p>
<p>I have already covered the idea of <a href="http://www.automated-trading-system.com/futures-vs-etfs/">using ETFs in place of Futures</a>. Today, I wanted to run a <strong>quantitative comparison</strong> between the two instrument types</p>
<p>The ETF sector has been growing at an impressive rate, with new offerings popping up every month and providing a wider choice in selecting a portfolio to trade. One of the drawbacks of using ETFs for mechanical trading strategies is the <strong>relative short history</strong> of these instruments, making it hard or impossible to run to back-tests looking back far in the past &#8211; which I believe is critical to understand how a strategy works over different types of market conditions.</p>
<p>In <a href="http://www.automated-trading-system.com/practical-guide-to-etf-trading-systems-garner/">A Practical Guide to ETF Trading Systems</a>, author Anthony Garner uses <strong>futures contracts as a proxy</strong> for testing strategies on ETFs. If futures are good proxies for ETFs, the back-test results from a long run with futures can be extrapolated to the ETF world.</p>
<p>This post is attempting to look at <em>one way</em> of quantifying how well futures can act as a proxy.</p>
<h3>Quantification by Correlation</h3>
<p>The main &#8220;tool&#8221; used in this post, to test whether futures are good proxies to ETFs, is that of correlation between prices as well as returns. The assumption being that correlations between an ETF and a good candidate futures proxy must be as close as possible to 1.0. The closer to 1, the better the proxy relationship.</p>
<p>I picked a few ETFs and associated futures and calculated the correlation (using Pearson product-moment) between several of the data attributes:<span id="more-4019"></span></p>
<ul>
<li>Open</li>
<li>High</li>
<li>Low</li>
<li>Close</li>
<li>t-1 Return</li>
<li>t-5 Return</li>
<li>t-30 Return</li>
</ul>
<p>The data considered in each case was the list of all dates where both futures and ETF had data. The futures contract were proportionally back-adjusted (to keep price ratio at correct values, as discussed in <a href="http://www.automated-trading-system.com/trade-what-you-test-and-test-what-you-trade/">this post</a>).</p>
<p>The table below shows the number of records for each comparison, the start date and the various correlation coefficients.</p>
<table style="border:1px solid #c3c3c3; border-collapse:collapse;">
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" rowspan="2" align = "center">
      ETF v Future
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" rowspan="2" align = "center">
      num.<br />records
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" rowspan="2" align = "center">
      Start<br />Date
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" colspan="7" align = "center">
      Correlation Coefficients
    </th>
</tr>
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "center">
      Open
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "center">
      High
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "center">
      Low
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "center">
      Close
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "center">
      t-1 Rtn
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "center">
      t-5 Rtn
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "center">
      t-30 Rtn
    </th>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
<strong>Aussie Dollar</strong>: FXA v AD
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
1154
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
20060627
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9928
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9939
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9945
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9945
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9000
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9802
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9947
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
<strong>Cotton</strong>: BAL v CT
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
652
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
20080626
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9980
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9983
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9989
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9991
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.8541
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9666
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9954
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
<strong>Cotton</strong>: COTN-L v CT
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
1010
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
20061221
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9939
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9947
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9928
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9960
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.3190
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.8825
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9761
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
<strong>Cocoa</strong>: NIB v CC
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
651
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
20080626
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9898
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9948
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9961
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9973
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.8948
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9781
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9955
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
<strong>Crude Oil</strong>: DBO v CL
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
1024
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
20070108
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9232
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9251
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9212
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9236
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9080
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9416
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9606
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
<strong>Crude Oil</strong>: OIL v CL
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
1120
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
20060817
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9989
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9994
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9993
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9994
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9568
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9900
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9973
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
<strong>Crude Oil</strong>: USO v CL
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
1208
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
20060411
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9971
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9978
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9976
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9978
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9536
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9894
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9982
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
<strong>Gold</strong>: GLD v GC
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
1553
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
20041119
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9977
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9981
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9979
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9980
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.8665
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9743
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9940
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
<strong>Japanese Yen</strong>: FXY v JY
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
996
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
20070214
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9948
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9963
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9958
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9965
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9405
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9856
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9951
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
<strong>Nasdaq100</strong>: QQQQ v NQ
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
2991
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
19990311
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9752
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9762
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9740
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9752
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9817
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9957
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9989
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
<strong>Silver</strong>: PHAG-L v SI
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
932
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
20070425
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9964
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9970
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9964
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9965
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.8223
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9635
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9929
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
<strong>Silver</strong>: SLV v SI
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
1194
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
20060501
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9906
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9921
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9918
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9920
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.8812
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9775
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9955
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
<strong>S&#038;P 500</strong>: SPY vs ES
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
4533
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
19930201
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.8757
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.8765
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.8740
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.8751
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9576
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9637
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9704
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
<strong>US T-Notes</strong>: IEF v TY
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
2130
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;">
20020731
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9707
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9713
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9708
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9711
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9359
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9689
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px; font-size:0.7em;" align = "right">
0.9758
    </td>
</tr>
</table>
<p><em>Note: please make sure you view this post with your &#8220;browser zoom&#8221; at 100% for the numbers to be readable.</em></p>
<p>Most of the numbers are pretty close to 1, which seems to validate the idea of using the future contract as a proxy for ETF.</p>
<p>Some underlyings can be traded through different ETFs (or ETNs). Crude Oil, for example, has several ETFs aiming to capture its performance (I picked DBO, OIL and USO for this test). We can see that there are some differences between the correlation figures of these three ETFs. Not all ETFs seem to track the underlying as well&#8230;.</p>
<p>A more obvious case of divergence is between the two Cotton ETFs: BAL and COTN (traded in London). The COTN ETF has a low correlation reading on previous-day returns (0.319). Obviously, the fact that the two instruments are trading in different timezones (London vs. NY) will cause their daily performance returns to differ as the market still moves after the London close. This would be something to also keep in mind when choosing an ETF/future pair.</p>
<p><strong>Note on Correlation: Pearson vs. Spearman</strong></p>
<p>I have chosen the <a href="http://en.wikipedia.org/wiki/Pearson_product-moment_correlation_coefficient" target="_blank" rel="nofollow">Pearson correlation method</a> for these calculations, as the <strong>linear relationship</strong> between the variables under comparison was what I felt needed to be looked at. However there are several &#8220;limitations&#8221; of using this correlation calculation. One of them is the <strong>assumption of the data being normally distributed</strong>, resulting in the calculation being very <strong>sensitive to outliers</strong>.</p>
<p>This is best illustrated with the correlation of &#8220;t-1 Returns&#8221; between the COTN ETF and its corresponding Cotton future contract. Back in September 08, the ETF price dropped by 60% before gaining 75% the next day. I seem to remember this was related to a scare around AIG-backed ETFs/ETNs, when the insurance giant was rumoured to go bankrupt.</p>
<p>For the purpose of a test, I simply removed these 2 extreme returns from the file and re-ran the correlation calculation. The figure came in at 0.518. A large increase, obtained by simply removing two outliers. This highlights the point about Pearson correlation not being the most robust with regards to outlier data points.</p>
<p>There are other methods for calculating correlation, and <a href="http://en.wikipedia.org/wiki/Spearman's_rank_correlation_coefficient" target="_blank" rel="nofollow">Spearman&#8217;s rank</a> method does not make any assumptions on the distribution of the data. It can also detect <em>some</em> non-linear relationship (which we were not interested here). Nevertheless, I re-ran the whole set using this alternative method. The figures were approximately identical &#8211; except for the case of COTN.</p>
<p>The Spearman correlation coefficient for COTN v CT using both original and modified files were near-identical at around 0.61. No big jump by removing two outliers.</p>
<p><strong>Note on ETFs</strong></p>
<p><em>ETPs </em>(Exchange Traded Products), be they called <em>ETF</em>, <em>ETN </em>or <em>ETC</em> all come in different flavours. They can be structured in different ways and track different benchmarks, even when they are associated to the same market. They also add an extra layer and therefore additional counterparty risk on the intermediaries, costs/fees and tracking error.</p>
<p>A good example of the differences between some products can be found in this ETFdb article: <a href="http://etfdb.com/2010/uso-vs-oil-a-better-crude-oil-etf/" target="_blank">USO vs. OIL: A Better Crude Oil ETF?</a></p>
<p>Finally, it is not (yet?) possible to trade the equivalent of a fully diversified futures portfolio with ETFs, as all markets are not represented in the ETF universe.</p>
<h3>Appendix: R Code</h3>
<p>Once again, I used R to generate the various correlation calculations. The idea being that one it is coded up it can be applied very quickly to any data.</p>
<p>The code takes a parameter file containing the files to be compared (1st column = description, 2nd and 3rd columns = file names) and the correlation calculation type. See <a href="" target="_blank">sample here</a>.</p>
<p>Here is the code below. Hopefully the comments are clear enough to help you understand the logic. This might not be the most perfect way to implement this but it does the job:</p>
<p>First, it defines a function to perform the calculations on two files (ie ETF vs. future):</p>

<div class="wp_syntax"><div class="code"><pre class="r" style="font-family:monospace;"># Define correlETFFut function
correlETFFut &lt;- function(params, i, cor.method,...) {
&nbsp;
  colsFut &lt;- c(&quot;date&quot;, &quot;O&quot;, &quot;H&quot;, &quot;L&quot;, &quot;C&quot;, &quot;Vol&quot;, &quot;OI&quot;, &quot;Con&quot;, &quot;UC&quot;)
&nbsp;
  # Adding headers
  cols1 &lt;- colsFut
  cols2 &lt;- colsFut
&nbsp;
  # Read in data sets
  data.1 &lt;- read.csv(toString(params[i,2]), col.names=cols1)
  data.2 &lt;- read.csv(toString(params[i,3]), col.names=cols2)
&nbsp;
  # Join both data sets
  data.merged &lt;- merge(data.1, data.2, by.x=&quot;date&quot;, by.y=&quot;date&quot;)
&nbsp;
  #Calculate correlation on Open, High, Low and Close
  cor.O &lt;- cor.test(data.merged$O.x, data.merged$O.y,method=cor.method)
  cor.H &lt;- cor.test(data.merged$H.x, data.merged$H.y,method=cor.method)
  cor.L &lt;- cor.test(data.merged$L.x, data.merged$L.y,method=cor.method)
  cor.C &lt;- cor.test(data.merged$C.x, data.merged$C.y,method=cor.method)
&nbsp;
  #Calculate correlation on t-1 Rtn
  log.diffs1 &lt;- log( data.merged$C.x[2:sum ( !is.na ( data.merged$C.x ) )]/data.merged$C.x[1:(sum ( !is.na ( data.merged$C.x ) ) - 1)])
  log.diffs2 &lt;- log( data.merged$C.y[2:sum ( !is.na ( data.merged$C.y ) )]/data.merged$C.y[1:(sum ( !is.na ( data.merged$C.y ) ) - 1)])
&nbsp;
  cor.Rtn &lt;- cor.test(log.diffs1, log.diffs2,method=cor.method)
&nbsp;
  #Calculate correlation on t-5 Rtn
  log.diffs1W &lt;- log( data.merged$C.x[6:sum ( !is.na ( data.merged$C.x ) )]/data.merged$C.x[1:(sum ( !is.na ( data.merged$C.x ) ) - 5)])
  log.diffs2W &lt;- log( data.merged$C.y[6:sum ( !is.na ( data.merged$C.y ) )]/data.merged$C.y[1:(sum ( !is.na ( data.merged$C.y ) ) - 5)])
&nbsp;
  cor.RtnW &lt;- cor.test(log.diffs1W, log.diffs2W,method=cor.method)
&nbsp;
  #Calculate correlation on t-30 Rtn
  log.diffs1M &lt;- log( data.merged$C.x[31:sum ( !is.na ( data.merged$C.x ) )]/data.merged$C.x[1:(sum ( !is.na ( data.merged$C.x ) ) - 30)])
  log.diffs2M &lt;- log( data.merged$C.y[31:sum ( !is.na ( data.merged$C.y ) )]/data.merged$C.y[1:(sum ( !is.na ( data.merged$C.y ) ) - 30)])
&nbsp;
  cor.RtnM &lt;- cor.test(log.diffs1M, log.diffs2M,method=cor.method)
&nbsp;
  #Put it all into cor.all
  cor.all &lt;- c(sum ( !is.na ( data.merged$C.x )), data.merged$date[1], signif(cor.O$estimate,5), signif(cor.H$estimate,5), signif(cor.L$estimate,5), signif(cor.C$estimate,5), signif(cor.Rtn$estimate,5), signif(cor.RtnW$estimate,5), signif(cor.RtnM$estimate,5))
  return(cor.all)
&nbsp;
}</pre></div></div>

<p>Second, a function reads the parameter file of all files to be compared, iterates through it and call the first function for each pair of files, building an array of all results:</p>

<div class="wp_syntax"><div class="code"><pre class="r" style="font-family:monospace;"># Define fullCorrel function
fullCorrel &lt;- function(file, cor.method,...) {
&nbsp;
  # read input file
  comps &lt;- read.csv(file, header=F)
  for (i in 1:dim(comps[1])[1]){
    cor.tmp &lt;- correlETFFut(comps,i,cor.method)
    if (i==1) cor.full &lt;- cor.tmp else cor.full &lt;- cbind(cor.full, cor.tmp)
  }
&nbsp;
  rownames(cor.full) &lt;- c(&quot;Record Count&quot;, &quot; Start Date&quot;, &quot; cor Open&quot;, &quot; cor High&quot;, &quot; cor Low&quot;, &quot; cor Close&quot;, &quot; cor Rtn&quot;, &quot; cor RtnW&quot;, &quot; cor RtnM&quot;)
  colnames(cor.full) &lt;- t(comps[1])
 return(t(cor.full))
}</pre></div></div>

<p>Finally, set your working directory (where all the files are) and call the second function with the relevant parameters (here the function is called twice with the same parameter file and two different correlation methods (make sure to update the working dir to your own path):</p>

<div class="wp_syntax"><div class="code"><pre class="r" style="font-family:monospace;"># Set Working Dir - Replace with your own path!
setwd(&quot;D:/ATS/Blog/Posts/ETF v Futures/Data&quot;)
&nbsp;
# Run Pearson correlations
fullCorrel(&quot;ETFvFut.txt&quot;, &quot;pearson&quot;)
&nbsp;
# Run Spearman correlations
fullCorrel(&quot;ETFvFut.txt&quot;, &quot;spearman&quot;)</pre></div></div>

<p>Below are included some sample files to run the code above:<br />
<a href='http://www.automated-trading-system.com/wp-content/uploads/2011/02/Sample_Data.zip' target="_blank">Sample_Data</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/etf-v-futures-a-quantification/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Futures vs ETFs</title>
		<link>http://www.automated-trading-system.com/futures-vs-etfs/</link>
		<comments>http://www.automated-trading-system.com/futures-vs-etfs/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 08:57:17 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Futures]]></category>
		<category><![CDATA[Instruments]]></category>
		<category><![CDATA[etf]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=2958</guid>
		<description><![CDATA[Futures have been the main focus on the Au.Tra.Sy blog (in terms of instruments) but the ETF side of things has grown quickly very over the last decade and they do offer an alternative worth looking into. Smaller Trading Size = Greater Diversification I am a great believer in diversification. I think it is an [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/09/Traders_Perpetualtourist2000.jpg" alt="Traders_Perpetualtourist2000" title="Traders_Perpetualtourist2000" width="325" height="251" class="aligncenter size-full wp-image-2965" /></p>
<p>Futures have been the main focus on the Au.Tra.Sy blog (in terms of instruments) but the ETF side of things has grown quickly very over the last decade and they do offer an alternative worth looking into.</p>
<h3>Smaller Trading Size = Greater Diversification</h3>
<p>I am a great believer in <strong>diversification</strong>. I think it is an &#8220;easy&#8221; way to <strong>improve performance</strong> and some even think that:</p>
<blockquote><p>The only free lunch available in financial markets is diversification.</p></blockquote>
<blockquote><p>Diversification presents the trader with the advantage of having to handle less downside heat, or alternatively, if he can handle the heat, he can upsize his portfolio and capture more profit for the same heat.</p></blockquote>
<p>This last quote is an extract from <span id="more-2958"></span><a href="http://www.seykota.com/tribe/TSP/Diversify/index.htm " target="_blank">Ed Seykota&#8217;s page</a> on diversification, with a simple demonstration of how diversification improves the results of 2 systems when combining them.</p>
<p>One problem with trading a <strong>diversified futures portfolio</strong> (50+ instruments) is the relatively <strong>high minimum account size</strong> because of the high notional size of the contracts. This is just for <em>minimum</em> account size. A larger account is usually more desirable, to enable more granular position sizing options (ie choosing between 1 to 10 contracts for example, instead of 1 or 0 or for scaling in/out of positions&#8230;).</p>
<p>But diversification does not only involve the choice and number of instruments in the portfolio. You can diversify even more by trading <strong>multiple systems and multiple timeframes</strong>. This renders the required starting account size problem even worse&#8230; Diversification is a &#8220;free lunch&#8221; only if you can afford the &#8220;cover charge&#8221;.</p>
<p>As a side note, I believe this is one of the reasons why managers like BlueTrend, who trade as a big fund (AUM in billions) are able to achieve their level of performance (<a href="http://www.automated-trading-system.com/trend-following-wizard-history/">18.71% CAGR with 12.56% MaxDD</a>).</p>
<p>A perfect illustration of the minimum lot difference can be found when looking at the S&#038;P 500 index:</p>
<ul>
<li>The E-mini S&#038;P 500 futures contract (ES) trades at around $55,000 (US$50 times the value of the S&#038;P 500 stock index) for a margin requirement over $5,000.</li>
<li>The corresponding &#8220;Spyder&#8221; ETF (SPY) is trading at just over $100</li>
</ul>
<p>Trading ETFs can drastically lower the required account size for a system, allowing for a wide diversification by <strong>combining multiple systems on multiple timeframes on a large portfolio</strong>.</p>
<h3>Range of instruments</h3>
<p>There are now literally hundreds of ETFs, which would make trading a diversified portfolio using ETFs a real possibility. I have not yet taken the time to try and map a list of futures to their equivalent ETFs, but I suspect that a fair proportion of them would be available (and potentially more as illustrated by Lithium or Water ETFs). A good starting point for this would be the <a href="http://etfdb.com/etfs/" target="_blank" rel="nofollow">ETF database</a> or similar (numerous) websites.</p>
<p>Of course the &#8220;explosive growth&#8221; of ETFs, including obscure ones, can create liquidity issues for the <a href="http://investwithanedge.com/etf-deathwatch-for-september-2010" target="_blank" rel="nofollow">ETFs trading in thin markets</a>. Not every ETF trades at $20B average daily volume (as is the case for SPY).</p>
<p>Another downside of trading with ETFs is their relative recency and lack of trading history (and therefore historical data available for back-test). This can be mitigated in most cases by using proxies &#8211; in the form of corresponding instruments such as futures contracts &#8211; but is obviously not as accurate as using the instruments themselves.</p>
<h3>Operational Complexity / Roll-Overs</h3>
<p>One of the characteristic of futures trading is the roll-over and choice between different available contracts. This is more complicated to handle (than your average stock for example) but allows for more <a href="http://www.automated-trading-system.com/better-trend-following-improved-roll-yield/">fancy/interesting strategies</a>.</p>
<p>ETFs, on the other hand, usually use futures as the underlying source of exposure. The mechanism for roll-over is handled by the ETF, which wrap the whole operation in one continuous security. The operational management of the roll-over is done for the investor. This however comes at a cost: direct (ETF fees) and indirect (lack of flexibility in approach).</p>
<p>There are also other issues with ETFs potentially impacting the futures markets (contango and backwardation rates) and suffering from their own market impact during roll-over periods (discussed <a href="http://ftalphaville.ft.com/blog/2009/06/11/56933/the-problem-with-commodity-etfs/" target="_blank" rel="nofollow">here</a> and <a href="http://ftalphaville.ft.com/2009/02/25/52879/a-self-propelled-pyramid/" target="_blank" rel="nofollow">here</a>)</p>
<p>An ETF is a bit like outsourcing the futures roll-over process: it will not be as good as if you did it yourself but somebody else will save you the hassle of having to manage the process.</p>
<h3>Lack of leverage and a Word on Volatility Decay</h3>
<p>An obvious advantage of futures trading is the inherent <strong>leverage</strong> that it offers: for an initial margin of less than $10,000, you could control 1,000 barrels of crude oil (about $75,000 worth at the current price levels).</p>
<p>On the other hand ETFs trade very similarly to stocks and do not offer any sort of embedded leverage. Of course, as for any stock, you can trade &#8220;on margin&#8221; to add some leverage but this is never as high as the leverage on offer with futures and comes at a cost (broker margin rate).</p>
<p>There are of course <strong>leveraged ETF</strong> offerings (2x or 3x usually), but these suffer from another type of cost in the form of <strong>volatility decay</strong>, which make them less than ideal for longer holdings.</p>
<p>This is mainly due to the way the ETFs are rebalanced every day to replicate double or triple the rate of daily return. This can be illustrated by a very simple comparison example between an ETF and its leveraged counterpart.</p>
<p>Consider 2 daily returns of -10% and +11.11%. The standard ETF will end up unchanged ([1-0.1] x [1+0.1111] = 1) whereas a 3x leveraged ETF would end up losing 6.67% (([1 - 0.1x3] x [1 + 0.1111x3] = 0.93331).</p>
<p>This is a concept that has already been covered in this <a href="http://www.automated-trading-system.com/how-to-apply-leverage/">leverage post</a>.</p>
<h3>Closing Bell</h3>
<p>I have noticed that the blogosphere has embraced ETFs in a very similar explosive fashion to the ETFs themselves. They do indeed offer an interesting alternative to futures trading and I will be looking more into it. I believe the main deciding point will be weighing up the <strong>additional diversification options</strong> from a much smaller minimum lot size versus their main downside: <strong>reduced leverage</strong>. Although this last point has been covered in <a href="http://www.automated-trading-system.com/practical-guide-to-etf-trading-systems-garner/">A practical Guide to ETF Trading Systems</a>.</p>
<p>I&#8217;d be curious to hear what your experiences are on trading ETFs, so please share them via the comments section.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/futures-vs-etfs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VIX, Peso&#8230; Sometimes you just cannot trade it!</title>
		<link>http://www.automated-trading-system.com/vix-peso-sometimes-you-just-cannot-trade-it/</link>
		<comments>http://www.automated-trading-system.com/vix-peso-sometimes-you-just-cannot-trade-it/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 10:20:42 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Futures]]></category>
		<category><![CDATA[peso]]></category>
		<category><![CDATA[roll yield]]></category>
		<category><![CDATA[VIX]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=2671</guid>
		<description><![CDATA[Or a case for going short VIX despite high bullish consensus? I have been going on about roll yield and term structure for a few posts, and through two very concrete examples we&#8217;ll see how it can affect your trading and system development A reader recently mentioned a paper (pdf by Sloyer and Tolkin) presenting [...]]]></description>
			<content:encoded><![CDATA[<h4>Or a case for going short VIX despite high bullish consensus?</h4>
<p>I have been going on about roll yield and term structure for a few posts, and through two very concrete examples we&#8217;ll see how it can affect your trading and system development</p>
<p>A reader recently mentioned a <a href="http://econ.duke.edu/dje/2008_Symp/Sloyer%20Tolkin.pdf" target="_blank" rel="nofollow">paper (pdf by Sloyer and Tolkin)</a> presenting a <em>theoretical</em> trading strategy which <strong>improves the risk-return profile of standard equity-bond portfolio by adding allocation to equity volatility</strong> represented by the <strong>VIX index</strong>. The idea sounds good on paper (no pun intended), but a &#8220;small&#8221; assumption might render the strategy impossible to implement practically:</p>
<blockquote><p>VIX futures can realistically be included as an asset in a passively managed portfolio as the futures can be rolled relatively cheaply from one contract to the next as each contract expires.</p></blockquote>
<h3>The Current VIX Situation</h3>
<p>Taking a look at the current VIX futures curve clearly invalidates the assumption above:</p>
<div id="attachment_2673" class="wp-caption alignnone" style="width: 490px"><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/08/VIX-futures-curve.gif" target="_blank"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/08/VIX-futures-curve-small.gif" alt="VIX futures curve - click to zoom in" title="VIX-futures-curve-small" width="480" height="344" class="size-full wp-image-2673" /></a><p class="wp-caption-text">VIX futures curve - click to zoom in</p></div>
<p>At the current levels, the <strong>contango rate is over 100% annualized</strong> &#8211; definitely no <span id="more-2671"></span>&#8220;relatively cheap&#8221; roll yield. As we&#8217;ve seen with the <a href="http://www.automated-trading-system.com/crude-oil-contango-and-roll-yield-for-commodity-trading/">contango exhibited in Crude Oil in 2009</a>, futures performance failed to match the spot price &#8211; and with such a high contango rate in the VIX futures, the same would happen: <strong>spot price returns would be &#8220;eaten away&#8221; by the negative roll yield</strong>. Indeed, prices would have to raise by an annualized 100% just to counter the contango.</p>
<p>Sometimes a good theoretical idea fails at the practical implementation stage&#8230;</p>
<h3>Mexican Peso: Same Concept, Opposite Effect</h3>
<p>Coincidently, another reader was offering me a friendly warning regarding the use of spot market to drive signals for a futures trading strategy &#8211; as was described in <a href="http://www.automated-trading-system.com/better-trend-following-improved-roll-yield/">Better Trend Following through improved Roll Yield</a> (note: for practical reasons, the test in that post was done using front-month contract <em>as a proxy</em> for the spot market).</p>
<p>In effect, as is the case in the VIX futures, the roll yield part of the total return sometimes trumps the spot price moves. In these cases, <strong>looking solely at the spot market can be flawed</strong>.</p>
<p>This is very well illustrated by this Peso chart sent from our reader:</p>
<div id="attachment_2675" class="wp-caption alignnone" style="width: 490px"><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/08/peso.png" target="_blank"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/08/peso-small.png" alt="The black curve almost continuously going down is the spot price, whereas the blue curve is a continuous futures contract (back-adjusted using front-month contracts) - click to zoom in" title="peso-small" width="480" height="239" class="size-full wp-image-2675" /></a><p class="wp-caption-text">The black curve almost continuously going down is the spot price, whereas the blue curve is a continuous futures contract (back-adjusted using front-month contracts) - click to zoom in</p></div>
<p>The strong divergence between both series meant that an investor/trader going short on the Peso, would have been &#8220;right&#8221; (ie. the Peso unarguably went down), yet would have lost money if using futures to implement her trade (as highlighted by the futures continuous contract going up).</p>
<p>This is another case where the <strong>roll yield has a stronger impact than the spot price move</strong>.</p>
<h3>Two Conclusions</h3>
<p>Despite the spot price usually grabbing most of the attention, the roll yield can be the driving factor to a futures market&#8217;s total return. This can seem counter-intuitive but <strong>on long-term timeframes, roll yield explains most of the market&#8217;s performance</strong> (as discussed in this <a href="http://papers.ssrn.com/sol3/papers.cfm?abstract_id=892387" target="_blank" rel="nofollow">separating the wheat from the chaff</a> paper I have linked to previously).</p>
<p>When looking at potential trades (in futures, or ETFs, which are sometimes no more than futures &#8220;wrappers&#8221; or even forex with cost of carry), one should <strong>weigh the spot price return potential against the term structure implied return</strong>. From a system development point of view, an idea might be to add a portfolio ranking/filter based on the implied yield vs. ATR (or other measure of &#8220;volatility&#8221;).</p>
<p>The second conclusion is that the market seems to <strong>reward those who trade against conventional wisdom</strong>. In that period covered by the Peso chart, most people were worried about further devaluations and were paying dear to hedge against this outcome. The hedge ended up costing them more than the cost of holding on to a devalued Peso. Alpha is finite and flowed to the <strong>minority </strong>being long the <em>falling</em> Peso&#8230;</p>
<p>Maybe time to short the VIX futures?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/vix-peso-sometimes-you-just-cannot-trade-it/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Better Trend Following via improved Roll Yield</title>
		<link>http://www.automated-trading-system.com/better-trend-following-improved-roll-yield/</link>
		<comments>http://www.automated-trading-system.com/better-trend-following-improved-roll-yield/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 09:49:22 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Futures]]></category>
		<category><![CDATA[Strategies]]></category>
		<category><![CDATA[Trend Following]]></category>
		<category><![CDATA[DB]]></category>
		<category><![CDATA[roll yield]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=2514</guid>
		<description><![CDATA[To round off a series on backwardation, contango and roll yield (posts 1, 2 and 3), let&#8217;s put all this info together and use it in an innovative trading strategy to show how it can improve the performance of a Trend Following system by optimising its roll yield component (note: this could also be applied [...]]]></description>
			<content:encoded><![CDATA[<p>To round off a series on backwardation, contango and roll yield (posts <a href="http://www.automated-trading-system.com/crude-oil-contango-and-roll-yield-for-commodity-trading/">1</a>, <a href="http://www.automated-trading-system.com/trend-following-returns-breakdown/">2</a> and <a href="http://www.automated-trading-system.com/roll-yield-commodity-yield-curve/">3</a>), let&#8217;s put all this info together and use it in an innovative trading strategy to show how it can improve the performance of a Trend Following system by <strong>optimising its roll yield component</strong> (note: this could also be applied to other systems than Trend Following). The results are pretty interesting.</p>
<h3>DB Optimal Yield Index</h3>
<p>This idea of optimising roll yield is not a brand new approach, however I have never seen it applied to an active trading strategy.</p>
<p>In fact, I have only seen it applied in the <strong>Deutsche Bank Commodity Index</strong> (exact name is a mouthful: <em>Deutsche Bank Liquid Commodity Index &#8211; Optimum Yield Diversified Excess Return</em> &#8211; which I suspect has really only been devised to underlie their <a href="http://dbfunds.db.com/dbc/index.aspx" target="_blank" rel="nofollow">ETF fund</a> tracking it).</p>
<p>Deutsche Bank seems to have taken on-board the fact that <strong>roll yield represents a non-negligible aspect of futures/commodity investing</strong>. From the index/fund website:</p>
<blockquote><p>The Index is a rules-based index composed of futures contracts on 14 of the most heavily-traded and important physical commodities in the world.</p>
<p>Optimum Yield describes the process by which expiring futures contracts in the Index are replaced with new futures contracts. The <strong>Optimum Yield process</strong> seeks to pick the futures contract expiring in the next thirteen months that has the <strong>highest implied roll yield</strong>.</p></blockquote>
<p>In effect, since the fund is <em>always long</em>, it tries to buy the contract which offers the highest rate of <em>backwardation</em>, or at least the lowest rate of <em>contango</em>.</p>
<p>DB do seem to produce some excess return through that process, as displayed by this comparative chart, <em>taken from their marketing material</em>:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/07/DBC_Performance_History1.png" alt="DBC_Performance_History" title="DBC_Performance_History" width="499" height="243" class="alignnone size-full wp-image-2516" /></p>
<h3>Optimal Roll Yield Trend Following</h3>
<p>I wanted to check how a similar concept would perform on an active trading strategy such as a <strong>Trend Following system</strong>. <span id="more-2514"></span>Typically, in mechanical futures trading, one usually uses the front-month contract &#8212; makes it <em>easier to backtest</em> (only one back-adjusted continuous time series to handle) and <em>simpler to trade</em> (only one contract to monitor and trade).</p>
<p>However, in a new <strong>optimal roll yield</strong> approach, for each trading signal to buy or sell, one could have a theoritical choice to trade any available contracts and their associated maturities. For any given date where a trading signal occurs, one could check the futures contracts <strong>yield curve</strong> and determine the <strong>contract which will optimise the roll yield</strong> (highest rate of backwardation, or at least the lowest rate of contango for a BUY signal and the opposite for a SELL signal).</p>
<h3>The Methodology: MA Cross-over 50/20 with Optimal Roll Yield</h3>
<p>The <strong>two components</strong> of Trend Following return we are dealing with here are the returns from the <strong>spot price beta moves</strong> and the <strong>roll yields</strong> from the futures contracts (<a href="http://www.automated-trading-system.com/trend-following-returns-breakdown/">TF returns breakdown here</a>).</p>
<p>The idea is to generate the Trend Following signals based off the spot price movements and for each new signal, compute the yield curve to identify the contract which offers the most attractive roll yield (depending on the signal direction). For this example, I picked a very standard <strong>cross-over system using 50-day and 20-day MAs</strong>.</p>
<p>The process sequence looks like this:</p>
<ol>
<li>Generate the Trend Following strategy signals based off the spot price movements (ie crossovers between the spot price 50-day and 20-day MAs); and for each new signal:</li>
<li>Compute the yield curve to identify the contract which offers the most attractive roll yield (depending on the signal direction).</li>
<li>Buy/Sell that contract</li>
<li>Hold the position until either: 1) the contract expires (roll-over) or 2) the position is reversed (new signal + yield curve computation to pick the best yielding contract)</li>
</ol>
<p>The lookup for the &#8220;best&#8221; contract is limited to <strong>12 months in the future</strong>.</p>
<p>Note that roll-overs should happen less frequently than with a <em>standard</em> approach (because you might buy a contract maturing in 12 months and hold it for the full 12 months &#8211; as opposed to rolling over to the front-month contract every month).</p>
<h3>The Results for Crude Oil</h3>
<p>Because I coded some of the test algorithm outside of Trading Blox (see p.s. below for more details), I decided to keep it simple to start with, and ran the test on one instrument only, keeping working with <strong>Crude Oil</strong> (since it instigated this series on roll yield).</p>
<p>As a reference point, the performance of the 20-50 MA cross-over system on front-month contracts (&#8220;standard&#8221; approach) returned a CAGR of 10.25% with a MaxDD of 46.85% and an annualized Sharpe ratio of 0.37 (no trade costs or slippage included in the test).</p>
<p>OK &#8211; enough introduction, here are the comparison results:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/07/Chart-enhanced-roll-yield.gif" alt="Chart-enhanced-roll-yield" title="Chart-enhanced-roll-yield" width="429" height="335" class="alignnone size-full wp-image-2543" /></p>
<p>The chart shows it pretty clearly and the summary table confirms it:</p>
<table style="border:1px solid #c3c3c3; border-collapse:collapse;">
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;" rowspan=2>
      Statistic
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;" colspan=2>
      Roll Yield approach:
    </th>
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;">
      Standard
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;">
      Optimal
    </th>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
End Balance (start: 10M)
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">73,517,650.00</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black"> 131,778,260.00 </div>
</td>
</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">10.26%</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">13.45%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
Max Drawdown
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">46.85%</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">28.49%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
Average Drawdown
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
17.38%
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
10.27%
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
MAR Ratio
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">0.22</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">0.47</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
Modified Sharpe Ratio*
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">0.37</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">0.54</div>
</td>
</tr>
</table>
<p>&nbsp;<br />
The optimal roll yield approach seems to improve the overall system significantly, whatever metrics you wish to pick for comparison. Pretty pleasing results&#8230;</p>
<h3>Volume and Slippage Considerations</h3>
<p>However, there is an important aspect about trading in the front-month only: <strong>liquidity</strong>. And with liquidity come better fills and lower <a href="http://www.automated-trading-system.com/slippage-backtesting-realistic/">slippage &#8212; which can greatly impact trading system results</a>.</p>
<p>My initial assumption was that if the optimal yield concept was viable for a large player like DB to run a fund with, I should not worry about liquidity for a similar approach with Trend Following. By checking the actual volume figures for each contract bought/sold with the strategy, I quickly realised that some trades had been made on days with <em>very low volume</em> (ie <50) and "only" 83% of trades on a daily volume over 1,000. Oops, was I just chasing an elusive unicorn? A theoritical result impossible to to apply in practical real-life trading...</p>
<p>Adding a <strong>liquidity filter</strong> to the roll yield algorithm would allow to reject contracts for which daily volume is too low and avoid liquidity problems. How much would it affect performance, though?</p>
<p>Not too much actually:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/07/LiquidityFilter.png" alt="LiquidityFilter" title="LiquidityFilter" width="511" height="298" class="alignnone size-full wp-image-2545" /></p>
<p>The filter is pretty simple: when it computes the yield curve and checks for the contract with the best roll yield, it only considers contract months for which <strong>daily volume</strong> is <strong>over 5,000</strong>.</p>
<p>And for completeness, the table summarizing the three tests undertaken:</p>
<table style="border:1px solid #c3c3c3; border-collapse:collapse;">
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;" rowspan=2>
      Statistic
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;" colspan=3>
      Roll Yield approach:
    </th>
<tr>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;">
      Standard
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;">
      Optimal
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;">
      Optimal w/ Filter
    </th>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
End Balance (start: 10M)
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">73,517,650.00</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black"> 131,778,260.00 </div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">  137,695,690.00 </div>
</td>
</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">10.26%</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">13.45%</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">13.69%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
Max Drawdown
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">46.85%</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">28.49%</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">35.56%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
Average Drawdown
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
17.38%
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
10.27%
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
12.28%
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;">
MAR Ratio
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">0.22</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">0.47</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">0.38</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;">
Modified Sharpe Ratio*
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">0.37</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">0.54</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:5px;" align = "right">
<div style="color:black">0.51</div>
</td>
</tr>
</table>
<p>&nbsp;</p>
<p>Note that even with the liquidity filter, slippage <em>might still be</em> a bit better in the front-month contract, as this is where a big chunk of the trading is concentrated. However, real-life testing is the only way to verify and quantify this difference.</p>
<p>To get an idea of how slippage would affect the system performance in general, I ran the standard approach system as a backtest in Trading Blox, with slippage set at a pessimistic 25%. Under these conditions, the system performance (CAGR) dropped &#8220;only&#8221; by 2.5 percentage points.</p>
<h3>Conclusion</h3>
<p>One of my main concerns regarding this strategy was the potential loss in &#8220;raw price moves&#8221; (ie the fact that price trends would not propagate as well in alternative contract months), but the strong correlation between the standard and optimized approach seems to indicate that improved roll yield return does not come at the cost of beta spot price moves return, therefore providing a direct bonus.</p>
<p>It is quite evident that liquidity can become an issue and that a liquidity filter should be employed at a minimum. Moreover Crude Oil, used for this example, is one of the largest traded physical commodity. Other products might not offer enough liquidity depth, far in the yield curve. DB, however, can implement its optimal yield approach over 14 different instruments, which indicates that there is scope for this approach to be employed on additional products to Crude Oil. I believe such approach could have its place in a fully diversified Trend Following system &#8211; but only applied to the most liquid instruments.</p>
<p>Finally the optimal approach <em>might</em> generate some additional slippage compared to the traditional approach. However, this extra slippage cost should still be outweighed by the extra roll yield return, as evidenced in the Trading Blox slippage impact test.</p>
<h3>Epilogue: Techie&#8217;s corner</h3>
<p>In terms of techical implementation, this is slightly more complicated than standard back-testing because each instrument must use multiple price streams (for each individual contract) and cannot be handled by standard back-testing packages (that I know of, or without heavy customisation).</p>
<p>To avoid re-developing a back-testing package from scratch, I used my trusted copy of Trading Blox to generate the &#8220;standard/non-optimal roll yield&#8221; MA cross-over system output for a single instrument (Crude Oil), which output several files providing the dates of the signals as well as other useful computations such as position sizing with number of contracts and running Total Equity values. Using this information, I ran a second pass of processing, by reading the signals and other info generated by Trading Blox, and looping through the individual contract data in order to pick, for each entry signal, the best contract on the yield curve (this second part was coded outside of Trading Blox).</p>
<p>&nbsp;<br />
Credits: Thanks to the Trading Blox forum members to help discuss the subject of this post on <a href="http://www.tradingblox.com/forum/viewtopic.php?p=43060&#038;highlight=optimum+yield#43060" target="_blank">this thread</a>, and especially svquant for pointing out the DB Optimum Yield commodity index.<br />
&nbsp;<br />
&nbsp;<br />
*Note: the Modified Sharpe ratio is as per Jack Schwager&#8217;s definition in <a href="http://www.amazon.com/exec/obidos/ASIN/0471020575/autotradblog-20" target="_blank" rel="nofollow">Managed Futures, Myths and Truths</a>, which introduces interesting performance metrics. The Modified Sharpe ratio is simply a Sharpe ratio where Rf (risk-free rate of return) is set to 0 (makes it independent of leverage). mSR = E[R] / sd.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/better-trend-following-improved-roll-yield/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Roll Yield and Commodity Yield Curve</title>
		<link>http://www.automated-trading-system.com/roll-yield-commodity-yield-curve/</link>
		<comments>http://www.automated-trading-system.com/roll-yield-commodity-yield-curve/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 06:54:33 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[Futures]]></category>
		<category><![CDATA[roll yield]]></category>
		<category><![CDATA[yield curve]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=2478</guid>
		<description><![CDATA[We have seen previously that backwardation and/or contango can induce a fairly large drift between the performance of an instrument&#8217;s spot market and its corresponding futures market. This phenomenon can be described as roll yield of futures trading and I suggested it was one of the four components in Trend Following returns. As per that [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/07/3d-yield-curves.png" alt="3d-yield-curves" title="3d-yield-curves" width="421" height="300" class="aligncenter size-full wp-image-2479" /></p>
<p>We have seen <a href="http://www.automated-trading-system.com/crude-oil-contango-and-roll-yield-for-commodity-trading/">previously</a> that <strong>backwardation</strong> and/or <strong>contango</strong> can induce a fairly large drift between the performance of an instrument&#8217;s spot market and its corresponding futures market.</p>
<p>This phenomenon can be described as <strong>roll yield of futures trading</strong> and I suggested it was one of the <a href="http://www.automated-trading-system.com/trend-following-returns-breakdown/">four components in Trend Following returns</a>. As per that last post&#8217;s conclusion, breaking down the returns should allow to focus, study and improve a trading system&#8217;s individual component &#8211; and this is what we are doing here with the roll yield, by looking into the <strong>Commodity Yield Curve</strong>.</p>
<p>The roll yield had a negative impact in the Crude Oil example, however let&#8217;s explore how it could be turned into an <strong>extra source of profit</strong>&#8230;</p>
<h3>Term Structure &#8211; or Yield Curve</h3>
<p><strong>Term structure</strong> best applies to interest rates analysis. If we take the example of US Treasuries; they cover a wide range of maturities, from T-Bills (one year or less maturity)  , T-Notes (one year to ten years) to T-Bonds (up to thirty years). For any given date, each treasury is priced depending on its maturity and an implied yield can be derived for each maturity. Charting these yields for each maturity gives the <strong>yield curve</strong>, also called <strong>term structure of interest rates</strong>.<span id="more-2478"></span></p>
<p>Below can be found a &#8220;normal&#8221; (upward sloping) yield curve for US Treasuries (from last Friday) showing that yields went slightly down  in the middle of the curve whereas the short and long ends of the curve did not change much:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/07/yield-cruve.png" alt="yield-cruve" title="yield-cruve" width="484" height="271" class="alignnone size-full wp-image-2480" /></p>
<p>The yield curve, or term structures of interest rates is a major economic indicator, closely watched by many traders to gain insights in the market. You can read more about it at <a href="http://www.investopedia.com/university/advancedbond/advancedbond4.asp" target="_blank" rel="nofollow">investopedia</a> and <a href="http://en.wikipedia.org/wiki/Yield_curve" target="_blank" rel="nofollow">wikipedia</a>.</p>
<h3>Application in Futures Trading</h3>
<p><strong>Term structure</strong> can be similarly transposed to <strong>futures trading</strong>, which deals with the same concept of trading the same instrument (i.e. where a commodity like Corn replaces <em>money</em> used in the case of the <em>classic</em> yield curve) with different maturities (all different contracts and their various expiry/delivery months).</p>
<p>Note that the term <strong>Commodity Yield Curve</strong> is a bit of misnomer as the concept could be applied to any instrument traded in different maturities (i.e. all futures for instance).</p>
<h3>Commodity/Futures Yield Curve: How to Build it?</h3>
<p>The <strong>futures yield curve</strong> is a representation of the <strong>backwardation/contango rate</strong> for the <strong>different maturities of futures contracts</strong>. The contango/backwardation rates are calculated by taking the price difference between the spot/cash market price and the futures contract price. This difference can be expressed as a percentage (for x number of days: time to expiration of the futures contract) and then annualised to calculate an annual contango or backwardation rate, representing an implied yield for the specific maturity.</p>
<p>For example, if the spot market trades at 70 and the October contract (expiring in 90 days) trades at 71, the yield can be calculated as follows:</p>
<ol>
<li>Price difference = 71 &#8211; 70 = 1</li>
<li>Percentage price difference = 1/70 = 1.43% (for 90 days)</li>
<li>Annualised contango rate (yield) = (1.43% + 1)^(365/90) &#8211; 1 = 5.92%</li>
</ol>
<p>Performing this calculation for each contract/maturity would allow to chart a futures yield curve.</p>
<h3>Volatility of the Yield Curve</h3>
<p>I calculated and charted the Crude Oil yield curve in order to analyse and visualise the evolution of the contango/backwardation rates, both across the historical timeline and the range of contract maturities. This was done as discussed above for all contracts available for a given date.</p>
<p>Here is a sample chart using data from December 03 to January 04 where Crude Oil was trading in <em>backwardation</em>:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/07/backwardation-yield-curve.png" alt="backwardation-yield-curve" title="backwardation-yield-curve" width="493" height="411" class="alignnone size-full wp-image-2495" /></p>
<p>Each &#8220;ribbon&#8221; on the chart represents the yields for all 18 different maturities (1=short, 18=long) for a given date: each ribbon represents the yield curve for that day. All yields are negative because of the backwardated aspect of Crude Oil at the time. Backwardation rates have <em>reasonable </em>values (-15%/+5%) and the associated yield curves vary slightly across time, albeit maintaining a similar pattern.</p>
<p>However this snapshot was taken at relatively quiet times in the market. Fast forward to 2009 and you can see that the market now exhibits contango, with rates spiking to much higher values:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/07/contango-yield-curve.png" alt="contango-yield-curve" title="contango-yield-curve" width="490" height="404" class="alignnone size-full wp-image-2496" /></p>
<p>Adding any more dates to this chart would make it hardly readable, but to give an idea of how the term structure of Crude Oil can vary over a longer period of time, I have simply plotted the shortest end of the curve (i.e. yields for the contract with closest maturity), which you can imagine as a &#8220;vertical slice&#8221; of the 3-D chart alongside the date axis, where maturity = 1. Here is the chart:</p>
<p><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/07/short-term-yield.png" alt="short-term-yield" title="short-term-yield" width="496" height="321" class="alignnone size-full wp-image-2497" /></p>
<p>There are spikes, alternation between contango and backwardation. It clearly displays some volatility and, for lack of a better term, a <em>character of its own</em>.</p>
<p>Note that because the yield is calculated as an implied value based solely on the price difference between contracts, some discrepancies in these contract prices (for whatever reason) would impact the curve in a more volatile and &#8220;artificial&#8221; way than if it did purely represent the fundamental yield factors (cost of carry, supply/demand and shortage, convenience yield, etc.)</p>
<h3>Some Observations</h3>
<p>The main observations are:</p>
<ul>
<li>Yield curves and their associated contango and backwardation rates evolve in a fairly volatile fashion across time.</li>
<li>For any given date, different contracts and their associated maturities offer different yields, possibly within a wide range of values.</li>
</ul>
<p>This can add an extra dimension to your trading decisions. The yield curve offers other opportunities (than the traditional front-month contract) when wanting to buy or sell any instrument via futures trading. These extra opportunities can be turned into an extra source of profit.</p>
<p>This is really an introduction to a next post, in which we will look into how we can use this information and <strong>apply it to a trading system to improve its roll yield component and enhance its overall performance</strong>.<br />
Stay tuned&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/roll-yield-commodity-yield-curve/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Crude Oil, Contango and Roll Yield for Commodity Trading</title>
		<link>http://www.automated-trading-system.com/crude-oil-contango-and-roll-yield-for-commodity-trading/</link>
		<comments>http://www.automated-trading-system.com/crude-oil-contango-and-roll-yield-for-commodity-trading/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 10:19:35 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Futures]]></category>
		<category><![CDATA[backwardation]]></category>
		<category><![CDATA[contango]]></category>
		<category><![CDATA[rollover]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=2385</guid>
		<description><![CDATA[We have already discussed how roll yield can negatively affect the overall return of a commodity holding The impact of contango or backwardation can be relatively large compared to the overall return. Petroleum has unfortunately been in the news lately. Nevertheless, Crude Oil performance last year gave us a good illustration of the impact that [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/06/OilBarrel-Magnera.jpg"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/06/OilBarrel-Magnera.jpg" alt="OilBarrel-Magnera" title="OilBarrel-Magnera" width="199" height="300" class="alignleft size-full wp-image-2386" /></a><br />
We have already discussed how <a href="http://www.automated-trading-system.com/practical-guide-to-etf-trading-systems-garner/">roll yield can negatively affect the overall return of a commodity holding</a> The impact of <a href="http://en.wikipedia.org/wiki/Contango" target="_blank" rel="nofollow">contango</a> or <a href="http://en.wikipedia.org/wiki/Normal_backwardation" target="_blank" rel="nofollow">backwardation</a> can be relatively large compared to the overall return.</p>
<p>Petroleum has unfortunately been in the news lately. Nevertheless, Crude Oil performance last year gave us a good illustration of the impact that contango/backwardation can have.</p>
<h3>Crude Oil &#8211; 2009</h3>
<p>Crude Oil&#8217;s had a fantastic year in 2009. The spot price bottomed around 35 and topped 80 to finish on a near +100% performance</p>
<p>Many would assume that quick and easy way to double their money was to invest in Crude Oil in 2009 (assuming you could time the top and bottom perfectly). This is without counting the strong effect of contango that would have eaten into the return.</p>
<p>This can be illustrated by the fact that the USO ETF &#8211; supposed to <em>reflect</em> the performance, less expenses, of the spot price of West Texas Intermediate (WTI) light, sweet crude oil &#8211; did not manage to emulate the levels of performance seen in the Crude Oil spot price in 2009:<span id="more-2385"></span></p>
<div id="attachment_2387" class="wp-caption alignnone" style="width: 508px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/06/USO.png" alt="A &quot;mere&quot; +34% performance over 2009 pales in comparison with spot price performance" title="USO" width="498" height="217" class="size-full wp-image-2387" /><p class="wp-caption-text">A mere +34% performance over 2009 pales in comparison with spot price performance</p></div>
<p>This is, of course, because the ETF managers invest in Crude Oil futures and are subject to the same contango, which eats into their returns.</p>
<p>Below is a chart of several prices for Crude Oil in 2009:</p>
<img src="http://www.automated-trading-system.com/wp-content/uploads/2010/06/CL-2009.png" alt="my caption" title="CL-2009" width="440" height="289" class="size-full wp-image-2388" />
<ul>
<li>The spot price is the headline price.</li>
<li>The rolled contract price represents a back-adjusted contract, trading in the front-month contract and rolling over to the next contract before expiry.</li>
<li>Two other single contracts, with different maturities are also plotted.</li>
</ul>
<p>All prices are rebased to start 2009 at the same level as the spot price.</p>
<p>Whereas you cannot trade the spot price, you can trade using the 3 other contracts. Note how they all underperform the spot price performance: this is contango in action.</p>
<p>Most people call this a negative roll yield (long positions in a market in contango or short positions in a market in backwardation) because the drift is more apparent at time of rolling over to the new contract (which is priced dearer than the current contract), however the decay induced by the contango is gradual and erodes the price regularly &#8211; as can be seen in the further-dated contracts (the premium priced in the future-dated contract deflates gradually to zero at time of expiry).</p>
<p>The commodity <em>yield curve</em> is clearly an incidental impact on an overall trading strategy results, but it can also be used to form the basis of the strategy itself</p>
<h3>Term Structure Trading Strategy</h3>
<p>One such example of a strategy using term structure (aka. yield curve) as a trading signal is described in the paper<br />
<a href="http://papers.ssrn.com/sol3/papers.cfm?abstract_id=1127213" target="_blank">Tactical Allocation in Commodity Futures Markets: Combining Momentum and Term Structure Signals</a>.</p>
<blockquote><p><strong>ABSTRACT</strong>: This paper examines the combined role of momentum and term structure signals for the design of profitable trading strategies in commodity futures markets. With significant annualized alphas of 10.14% and 12.66% respectively, the momentum and term structure strategies appear profitable when implemented individually. With an abnormal return of 21.02%, a novel double-sort strategy that exploits both momentum and term structure signals clearly outperforms the single-sort strategies.</p></blockquote>
<p>The authors calculate the <em>roll return</em> for various instruments and select the most backwardated and contangoed markets. Only backwardated markets are allowed to be long and contangoed markets to be short. The increase in performance compared to a standard momentum strategy appears interesting.</p>
<h3>Term Structure as a Strategy Filter</h3>
<p>Another idea to explore is using term structure as a filter to a Trend Following strategy. Similarly to the concept explained above, one could prevent going short strongly backwardated contracts or long strongly contangoed contracts &#8211; basically avoid the markets where the odds are stacked against them.</p>
<p>I have not come across any such published test but found this paper:</p>
<p><a href="http://papers.ssrn.com/sol3/papers.cfm?abstract_id=892387" target="_blank" rel="nofollow">Separating the Wheat from the Chaff: Backwardation as the Long-Term Driver of Commodity Futures Performance; Evidence from Soy, Corn and Wheat Futures from 1950 to 2004</a></p>
<p>It gives interesting fundamental insights as to why markets might be in contango or backwardation and studies the impact or prediction power of the roll yield on a passive long investment strategy. One of their conclusions is that yield return rates start having predictive power when considered on a long-term basis (multi-year) as opposed to monthly measurements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/crude-oil-contango-and-roll-yield-for-commodity-trading/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MMDI Portfolio Filter in Trading Blox</title>
		<link>http://www.automated-trading-system.com/mmdi-portfolio-filter-trading-blox/</link>
		<comments>http://www.automated-trading-system.com/mmdi-portfolio-filter-trading-blox/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 12:21:08 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Backtest]]></category>
		<category><![CDATA[Futures]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Strategies]]></category>
		<category><![CDATA[robust]]></category>
		<category><![CDATA[screenshots]]></category>
		<category><![CDATA[Trading Blox]]></category>
		<category><![CDATA[Trend Following]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=1447</guid>
		<description><![CDATA[David Varadi, from the very good CSS Analytics blog, pointed me to his interesting findings on a Mean Median Divergence Indicator (MMDI) he devised as a replacement to the standard MACD. I wanted to test the MMDI as a follow-up to Moving Median: a better indicator than Moving Average?. This also provided a good opportunity [...]]]></description>
			<content:encoded><![CDATA[<p>David Varadi, from the <a href="http://cssanalytics.wordpress.com/" target="_blank">very good CSS Analytics blog</a>, pointed me to his <a href="http://cssanalytics.wordpress.com/2009/08/06/meanmedian-divergence-a-great-trend-indicator-part-1/" target="_blank">interesting findings on a Mean Median Divergence Indicator</a> (MMDI) he devised as a replacement to the standard MACD.</p>
<p>I wanted to test the MMDI as a follow-up to <a href="http://www.automated-trading-system.com/moving-median-better-indicator-than-moving-average/">Moving Median: a better indicator than Moving Average?</a>. This also provided a good opportunity to test Trading Blox (which <a href="">I am thinking of buying</a>).</p>
<h3>MMDI: What is it?</h3>
<p>In short, this is an indicator very similar to the MACD, except that the short moving average of the MACD is replaced by a moving median.</p>
<h3>Portfolio Filter: Trade with the trend</h3>
<p>One concept often used to improve the edge of a trading system is to look at 2 or more timeframes. The main  timeframe (shorter one) is used for triggering trading signals (eg Donchian Channel breakouts), and the longer timeframe is used to determine the direction of the main trend. The filter rules prevent any trade signal to be taken if it goes against the main trend.</p>
<h3>Trading Blox: a componentized testing framework</h3>
<p>A great feature of Trading Blox is that it provides you with a <em>skeleton workflow</em> that forms the framework for the backtesting process. What this means is that Trading Blox implements and runs its logical workflow in the <em>simulation loop</em> (ie read data, update indicators, check entry signals, check exit signals, post-simulation scripts, etc.) but provides you with hooks at every step (about 35 hooks per simulation loop) where you can write your own code for customisation (with access to Trading Blox internal objects).<span id="more-1447"></span></p>
<p>Next is the concept of <em>blocks</em>, which represent the different components of a trading systems (Entry signals, Money Management, Risk Management, Portfolio Filter, etc.). These blocks are easily reusable in any system and implement the functionality required via the code contained in their scripts.</p>
<p>One such block we are interested in for today is the MACD Portfolio Filter:</p>
<div id="attachment_1458" class="wp-caption aligncenter" style="width: 460px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/02/MACDPortfolioFilter.png" alt="MACD Portfolio Filter Blox" title="MACDPortfolioFilter" width="450" height="291" class="size-full wp-image-1458" /><p class="wp-caption-text">MACD Portfolio Filter Blox</p></div>
<p>This block stops the system from opening new trades in the opposite direction to the trend (the direction of the trend is derived from the MACD value).</p>
<h3>MMDI Portfolio Filter</h3>
<p>It was easy to use the standard Donchian channel system that ships with Trading Blox and replace its MACD Portfolio filter block by an implementation of the MMDI Portfolio filter. All it took was a copy of that block and an update of some of the scripts to implement the MMDI indicator and the filtering based on its value.</p>
<p>Indicator calculation:</p>

<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;">mmdiIndicator=Median(ohlcDiv4,mmdiShort)-emaIndicator</pre></div></div>

<p>Filtering code (long side):</p>

<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;">[...]
<span style="color: #008000;">' If positive, then allow long trades
</span><span style="color: #8D38C9; font-weight: bold;">IF</span> ( mmdiIndicator &gt; 0 ) <span style="color: #8D38C9; font-weight: bold;">THEN</span>
	instrument.AllowLongTrades
ENDIF
[...]</pre></div></div>

<p>And applying the new block (MMDI Portfolio Filter) to the system in the system editor screen:<br />
<div id="attachment_1458" class="wp-caption alignleft" style="width: 490px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/02/SystemEditorMMDI.png" alt="SystemEditorMMDI" title="SystemEditorMMDI" width="480" height="343" class="alignleft size-full wp-image-1464" /><p class="wp-caption-text">System Editor</p></div><br />
&nbsp;<br />
&nbsp;</p>
<h3>Test Scenario</h3>
<p>The test is a comparison of the standard Donchian Channel breakout Tend Following system with MACD Portfolio Filter against its variation using the MMDI Portfolio Filter.</p>
<p>In order to get more data points (and to test Trading Blox parameter stepping), the comparison was run over a combination of system parameters:<br />
- Long MMDI Moving Average: 200, 250 and 300<br />
- Short MMDI Moving Median: 50, 62 and 74<br />
- Donchian Channel Length (Entry): 20, 30 and 40<br />
- Donchian Channel Length (Exit): 15<br />
- Stop level: 2 x ATR(40)<br />
- Slippage: 15% of ATR (+3% at rollover)<br />
- Commissions: $12.50 per contract<br />
- Dates: 01/01/2001 to 09/30/2010<br />
- Instruments: 28 liquid futures (currencies, commodities, financials)</p>
<h3>Test Results</h3>
<p>Here are the two results tables produced by Trading Blox, showing a few stats for each system tested:</p>
<div id="attachment_1450" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/02/MACD_Results.png" target="_blank"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/02/MACD_Results-300x182.png" alt="MACD Portfolio Filter Results" title="MACD_Results" width="300" height="182" class="size-medium wp-image-1450" /></a><p class="wp-caption-text">MACD Portfolio Filter Results - click to expand</p></div>
<div id="attachment_1451" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/02/MMDI_Results.png" target="_blank"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/02/MMDI_Results-300x180.png" alt="MMDI Portfolio Filter results" title="MMDI_Results" width="300" height="180" class="size-medium wp-image-1451" /></a><p class="wp-caption-text">MMDI Portfolio Filter results - click to expand</p></div>
<p>Looking at the CAGR and Sharpe ratio on aggregate, here is the how the systems compare:</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;">
      MACD Sys.
    </th>
<th style="background-color:#e5eecc; border:1px solid #c3c3c3; padding:5px;">
      MMDI Sys.
    </th>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;">
Median CAGR
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">13.94%</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">15.58%</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;">
CAGR Median Absolute Deviation
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">1.68%</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">1.83%</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;">
CAGR Coefficient of Variation
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
0.1205
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
0.1175
    </td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;">
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
    </td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;">
Median Sharpe ratio
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">0.42</div>
</td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">0.45</div>
</td>
</tr>
<tr>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;">
Sharpe ratio Median Absolute Deviation
    </td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">0.06</div>
</td>
<td style="background-color:#f3f3f3; border:1px solid #c3c3c3; padding:2px;" align = "right">
<div style="color:black">0.07</div>
</td>
</tr>
<tr>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;">
Sharpe ratio Coefficient of Variation
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
0.1429
    </td>
<td style="background-color:#ffffff; border:1px solid #c3c3c3; padding:2px;" align = "right">
0.1556
    </td>
</tr>
</table>
<h3>Conclusions</h3>
<p>First on Trading Blox: it was fairly straight-forward to code up this new indicator and system. The stepped parameter tests were also really quick to run (<1 min). Still pretty pleased and feeling at ease with it.</p>
<p>The test results show a small improvement in the MMDI favour. A possible explanation might be that the more volatile nature of the moving median (as illustrated in the <a href="http://www.automated-trading-system.com/moving-median-better-indicator-than-moving-average/">moving median indicator post</a>) allows it to pick up changes in trend faster (and get in them at an earlier, better price).</p>
<p>The whipsawing produced in the Moving Median crossover run would normally take place during range-bound markets, where few Donchain breakouts would happen, therefore cancelling the extra noise and losses associated with them.</p>
<p>Might be worth investigating further&#8230;<br />
&nbsp;<br />
&nbsp;<br />
PS: David&#8217;s code for MMDI on TradeStation is available for free on his <a href="http://www.dvindicators.com/indicator/mmdi/" target="_blank">dvindicators.com website</a></p>
<p>PS2: As a comparison, and to illustrate the impact of a portfolio filter, here are the results for the same system without any Portfolio Filter:</p>
<div id="attachment_1469" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/02/NoFilterResults.png" target="_blank"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/02/NoFilterResults-300x56.png" alt="Only 3 sets of results as the MACD/MMDI stepped parameters have been removed" title="NoFilterResults" width="300" height="56" class="size-medium wp-image-1469" /></a><p class="wp-caption-text">Only 3 sets of results as the MACD/MMDI stepped parameters have been removed  - click to expand</p></div>
<p>Without the trend filter applied to the portfolio, the Donchian channel breakout system now exhibits a negative performance (-2.68% on average across the 3 backtests). The trend is definitely your friend!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/mmdi-portfolio-filter-trading-blox/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Mammoth Hedge Fund moves into Trend Following</title>
		<link>http://www.automated-trading-system.com/aqr-trend-following/</link>
		<comments>http://www.automated-trading-system.com/aqr-trend-following/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 13:06:44 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Futures]]></category>
		<category><![CDATA[Trend Following]]></category>
		<category><![CDATA[AQR]]></category>
		<category><![CDATA[research paper]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=1389</guid>
		<description><![CDATA[AQR is a top hedge fund, managing around $24B in Assets. Lately, they have been making noise about their moving into the Managed Futures space (a.k.a. Trend Following). They seem to be working at institutional investor&#8217;s acceptance of trend following as an &#8220;investment&#8221; concept. They might just be trying to catch up with another mammoth [...]]]></description>
			<content:encoded><![CDATA[<p>AQR is a top hedge fund, managing around $24B in Assets. Lately, they have been making noise about their moving into the <em>Managed Futures</em> space (a.k.a. Trend Following). They seem to be working at institutional investor&#8217;s acceptance of trend following as an &#8220;investment&#8221; concept. They might just be trying to catch up with another mammoth hedge fund: MAN who have been strong in this space since taking AHL over.<br />
<img src="http://www.automated-trading-system.com/wp-content/uploads/2010/01/aqr1.png" alt="aqr" title="aqr" width="491" height="83" class="aligncenter size-full wp-image-1413" /></p>
<p>A <a href="http://www.automated-trading-system.com/wp-content/uploads/2010/01/UnderstandingManagedFutures.pdf" target="_blank"><strong>research paper</strong></a> (summarised below) was recently published by AQR, explaining some concepts of trend following.</p>
<p>Clifford Asness, AQR Managing &#038; Founding Principal, was also invited to speak about it with his good friends at CNBC (he is also an ex-Goldman, so he surely has lots of connections with the media and government). The video is not that interesting but here it is below, anyway. If you&#8217;re short of time (aren&#8217;t we all?), I recommend you skip to the paper (8 pages) or the summary, which yield more interesting insights.<span id="more-1389"></span></p>
<p><object id="cnbcplayer" height="380" width="400" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" ><param name="type" value="application/x-shockwave-flash"/><param name="allowfullscreen" value="true"/><param name="allowscriptaccess" value="always"/><param name="quality" value="best"/><param name="scale" value="noscale" /><param name="wmode" value="transparent"/><param name="bgcolor" value="#000000"/><param name="salign" value="lt"/><param name="movie" value="http://plus.cnbc.com/rssvideosearch/action/player/id/1378386599/code/cnbcplayershare"/><embed name="cnbcplayer" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" allowfullscreen="true" allowscriptaccess="always" bgcolor="#000000" height="380" width="400" quality="best" wmode="transparent" scale="noscale" salign="lt" src="http://plus.cnbc.com/rssvideosearch/action/player/id/1378386599/code/cnbcplayershare" type="application/x-shockwave-flash" /><br />
</object></p>
<h3>Summary of Paper: Understanding Managed Futures</h3>
<p><a href="http://www.automated-trading-system.com/wp-content/uploads/2010/01/UnderstandingManagedFutures.pdf" target="_blank"><img src="http://www.automated-trading-system.com/wp-content/uploads/2009/12/Uncovering-the-Trend-Following-Strategy.png" alt="Understanding Managed Futures" title="Understanding Managed Futures" width="66" height="66" class="alignnone size-full wp-image-1117" /></a><br />
<a href="http://www.automated-trading-system.com/wp-content/uploads/2010/01/UnderstandingManagedFutures.pdf" target="_blank">Click to download paper</a></p>
<p>- They start with a chart displaying the Managed Futures &#8220;smile&#8221;, basically a scatter plot of Trend Following strategy return vs. S&#038;P 500 total return &#8211; making the point that Trend following performs best in case of <em>extreme</em> stock market moves (one of the main points they want to drive home throughout the paper is that Trend Following is a great portfolio diversificator with low correlation to other assets). They further <em>empirically</em> demonstrate this by pointing out Trend Following&#8217;s performance in Q4 2008 (strongly positive) in contrast to the global crash.</p>
<p>- The paper uses a hypothetical Trend following strategy for comparison and analysis. This strategy trades 60 liquid futures markets divided in the four asset classes defined by AQR (equities, commodities, bonds and currencies). To determine the trend, the strategy considers the excess return over cash of each instrument for the prior 12 months (a positive return results in a long position and a negative return results in a short position). The portfolio is equal-risk-weighted (i.e. normalised for annualised volatility) across the instruments and rebalanced every month.</p>
<p>- The second part breaks down the three parts of a trend and some behavioral biases or technical explanations for them:</p>
<ul>
<li><strong>Start of the trend and under-reaction</strong>, due to anchor and insufficient adjustment to new conditions (i.e. news, supply shock, etc.), disposition effect (selling winners too early) and market particpants fighting trends (central banks or commodity hedgers)</li>
<li><strong>Trend continuation and over-reaction</strong>, due to herding and feedback trading as well as confirmation bias (similar to the reflexivity concept explained by George Soros in <a href="http://www.amazon.com/exec/obidos/ASIN/0471445495/autotradblog-20" target="_blank" rel="nofollow">The Alchemy of Finance</a>) and Risk Management practices (stop losses being triggered generate more losses, etc.)</li>
<li><strong>End of the trend</strong> where the market comes to the realisation that prices have gone too far</li>
</ul>
<p>- The analysis of the strategy looks at the performance of each market and compares it to the overall strategy performance &#8211; noting the effect of the <em>free-lunch</em> that is <strong>diversification</strong>: The Sharpe ratio of the overall strategy is 1.3, higher than any of the individual market Sharpe ratio (all between 0 and 1).</p>
<p>- Another observation is the <strong>low correlation</strong> between the individual markets (average pair-wise correlation of 0.08) as well as between the overall strategy and various asset classes (Equities, Bonds and Commodities).</p>
<p>- Finally, they compare a 60/40 portfolio performance (60% Equities, 40% Bonds) with a hybrid portfolio (80% 60/40 portfolio and 20% Managed Futures) and show that return, standard deviation, Sharpe ratio, worst month and worst drawdown are all improved under the second scenario. I believe this is how they intend to market their new trend following funds: as a portfolio diversificator improving its overall variance-adjusted return</p>
<p>- In conclusion they highlight some of the risks (range-bound periods, high turnover and trading costs as well as manager fees) and finally (it is a marketing paper after all!) some of the <em>value-add</em> that a fund like theirs can provide (advanced strategies using rigorous quantitative methods over different time horizons, sophisticated risk management systems, portfolio optimisation and smart order execution algorithms, etc.)</p>
<p>The trend following space is just getting a bit more crowded&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/aqr-trend-following/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

