<?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; distribution</title>
	<atom:link href="http://www.automated-trading-system.com/tag/distribution/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.automated-trading-system.com</link>
	<description>Systematic Trading research and development, with a flavour of Trend Following</description>
	<lastBuildDate>Tue, 07 Feb 2012 09:58:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Trading Regimes as Strategy Filters</title>
		<link>http://www.automated-trading-system.com/trading-regimes-strategy-filters/</link>
		<comments>http://www.automated-trading-system.com/trading-regimes-strategy-filters/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 11:41:18 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Strategies]]></category>
		<category><![CDATA[distribution]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[fractal]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[trading regimes]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=2051</guid>
		<description><![CDATA[Non-stationarity of the markets&#8230; That old chestnut! Everything would be so much easier (boring?) if markets were not changing all the time&#8230; &#160; Non-Stationarity, is defined as a quality of a process in which the statistical parameters (probability distributions) of the process change with time. One of the consequences is that it might not make [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_2052" class="wp-caption alignnone" style="width: 410px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/04/non-stationarity-Jaci-Berkopec.jpg" alt="non-stationary riddles - pic by Jaci Berkopec" title="non-stationarity-Jaci Berkopec" width="400" height="266" class="size-full wp-image-2052" /><p class="wp-caption-text">non-stationary riddles - pic by Jaci Berkopec</p></div>Non-stationarity of the markets&#8230; That old chestnut!<br />
Everything would be so much easier (boring?) if markets were not changing all the time&#8230;<br />
&nbsp;</p>
<blockquote><p>Non-Stationarity, is defined as a quality of a process in which the statistical parameters (probability distributions) of the process change with time.</p></blockquote>
<p>One of the consequences is that it might not make much sense to consider and model financial markets as one big distribution over time. And this is where Trading Regimes come in.</p>
<p>The concept behind regimes is that non-stationary time series, such as market data, shift through different &#8220;modes&#8221; during which market behavior and dynamics are different.</p>
<p>Being able to recognise these trading regimes would a allow a trader to adapt his strategies to better respond to these regime shifts.</p>
<h3>Trading Regimes as Filters</h3>
<p>Readers interested in the more formal definition of regime switching in econometrics might want to investigate <a href="http://en.wikipedia.org/wiki/Markov_chain" target="_blank" rel="nofollow">Markov-based systems</a>.</p>
<p>In this post, we will make a looser interpretation of the term: Trading regimes can be thought as <strong>providing a context to the trading strategy</strong>. This could be any meta-indicator or external variable susceptible to affect or &#8220;predict&#8221; the performance of a trading strategy. Let&#8217;s scratch the surface by making a (non-exhaustive) list of potential ideas.<span id="more-2051"></span></p>
<h3>Directional Trend Filter</h3>
<p>OK, we start with a wide departure from Trading Regime in the formal sense of the term.</p>
<p>The directional trend filter however is a basic and popular filter. It is based on the idea that &#8220;the trend is your friend&#8221;: it considers the trend on a higher timeframe and <strong>only allow trades in the direction of the main trend</strong>. The trading regimes might be thought of 2 or 3 modes: bullish/uptrend, bearish/downtrend or neutral.</p>
<h3>Exceptional Conditions Filter</h3>
<p>Another possible filter could be a switch indicating when the market makes an extreme divergence from history. The idea being that a strategy designed and tested on historical norms might degrade during these <strong><em>abnormal</em> periods</strong>.</p>
<p>Michael Stokes from MarketSCI discusses his <a href="http://marketsci.wordpress.com/2008/10/15/a-new-approach-for-coping-with-abnormal-markets-shades-of-grey/" target="_blank">Abnormal Market Filter</a> implementing a smart &#8220;shades of grey&#8221; concept, with a &#8220;dimmer&#8221; switch rather than a binary ON/OFF, normal/abnormal switch.</p>
<p>This filter is based on extreme volatilities but I have also seen traders using abnormal correlation filters (when many markets in the portfolio exhibit sudden spurious correlations such as during credit events).</p>
<h3>External Factors: Macro Environment</h3>
<p>There are many causes to instabilities of financial markets, for example <strong>business cycles or monetary policies</strong>.</p>
<p>I alluded in a <a href="http://www.automated-trading-system.com/practical-guide-to-etf-trading-systems-garner/">previous post</a> how business cycles could be used in an interesting meta-strategy, trading regime filter:</p>
<blockquote><p>it would be interesting to measure and test the impact of a macro filter on a Trend Following system (ie something in the vein of: &#8220;favour long trades in the system when the macro indicators indicate a period of expansion and short trades during declines&#8221;). Maybe exploring a <strong>mechanized version of Schumpeter Business Cycles or Kondratiev Waves</strong> as a very long-term filter would be a worthy approach.</p></blockquote>
<p>Similarly, macro indicators such as yield curve, GDP, Monetary supply might provide some input into a Trading Regime model.</p>
<h3>Trend Propensity: Fractal Measurements</h3>
<p>For a Trend Following system (or a Mean Reversion system) it could be a great advantage to be able to identify those markets that are more likely to trend (or not). The <a href="http://en.wikipedia.org/wiki/Hurst_exponent" target="_blank" rel="nofollow">Hurst exponent</a> can be estimated on time series to derive their tendency to revert to the mean or cluster in the same direction.</p>
<p>Each market could be classified as <strong>trending or mean-reverting</strong> based on the value of its Hurst exponent.</p>
<h3>Basic Strategies</h3>
<p>This is a concept implicitely used by traders <strong>trading the equity curve of their systems</strong>. A simple approach is to monitor the equity curve of the system and apply a moving average to it: you can allocate more or less funds based on the current relative position of the equity curve to its moving average. An anti-martingale-type strategy would reduce funds when the system equity curve is below its MA.</p>
<p>This can be taken further by having a collection of<strong> &#8220;dummy&#8221; trading strategies, which performance is monitored</strong> to derive the current market regime (identified by which group of strategies is over/under performing). This is a concept explored in the Hack the Market post, linked above.</p>
<h3>Price Behaviors</h3>
<p>This approach is what triggered this post. One of my current working assumption is how Trend Following represents a trading strategy positioned to benefit from <a href="http://www.automated-trading-system.com/why-trend-following-works-look-at-the-distribution/">positive kurtosis</a> and <a href="http://www.automated-trading-system.com/why-trend-following-works-autocorrelation/">positive serial correlation</a>.</p>
<p>One hypothesis I am investigating regarding these characteristics is whether they could be used for Trading Regime identification:</p>
<blockquote><p>Understanding these market characteristics is a first step towards being able to identify and measure them. This, in turn should be a step to linking Trend Following performance to the state of these market characteristics. Finally, this might be a step towards devising a way for a Trend Following strategy to adapt to these changing market characteristics (this last point makes a very big assumption: market characteristic changes can be predicted with some degree of accuracy).</p></blockquote>
<p>Hopefully more on that coming soon, with an attempt at calculating serial correlation &#8220;in the tails&#8221;.</p>
<p>There are of course other price behaviors that might be used for Trading Regime identification (mean, variance, volatility, covariance, cointegration, skew, etc.)</p>
<h3>Does the concept make sense?</h3>
<p>An important point to consider, for a trader planning on using trading regimes, is the fact that the approach would result in<strong> trading a collection of &#8220;more specialized&#8221; strategies</strong> (read: less robust), switching between them as the market switches between its various regimes.</p>
<p>Thinking that such an approach can be more succesful than a &#8220;one-size-fits-all&#8221;, more robust trading strategy makes a <strong>strong assumption about regime persistence</strong>, namely that the regime persists longer than the time it takes to identify the shift to the new regime.</p>
<p>In essence, if the regime switch identification lag is too long, you would probably end up applying the <strong>wrong specialized trading strategy to the current regime</strong> and suffer from under-performance.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/trading-regimes-strategy-filters/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Vince&#8217;s Leverage Space Model: better than MPT?</title>
		<link>http://www.automated-trading-system.com/vince-leverage-space-model/</link>
		<comments>http://www.automated-trading-system.com/vince-leverage-space-model/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 12:11:23 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Backtest]]></category>
		<category><![CDATA[Money Management]]></category>
		<category><![CDATA[distribution]]></category>
		<category><![CDATA[leverage space model]]></category>
		<category><![CDATA[optimal f]]></category>
		<category><![CDATA[optimisation]]></category>
		<category><![CDATA[ralph vince]]></category>
		<category><![CDATA[research paper]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=1946</guid>
		<description><![CDATA[Ralph Vince&#8216;s book Handbook of Portfolio Mathematics has been shamefully lying untouched on my desk for a few months&#8230; I started reading it but never finished it. I recently found a 30-page paper introducing the ideas and principles of his Leverage Space Model. I thought reading it might be a good way to get back [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Ralph Vince</strong>&#8216;s book <a href="http://www.automated-trading-system.com/Handbook-Portfolio-Mathematics-Vince" target="_blank" rel="nofollow">Handbook of Portfolio Mathematics</a> has been shamefully lying untouched on my desk for a few months&#8230; I started reading it but never finished it.</p>
<p>I recently found a 30-page paper introducing the ideas and principles of his <strong>Leverage Space Model</strong>. I thought reading it might be a good way to get back into Vince&#8217;s material.</p>
<p>Follows a summary of the paper (<a href='http://www.automated-trading-system.com/wp-content/uploads/2010/03/Vince-LeverageSpaceModel.pdf'>PDF download link</a>), which is maths-less (only concepts and principles are discussed). It is a good introduction to Ralph Vince theories.<span id="more-1946"></span></p>
<h3>Vince&#8217;s Optimal f</h3>
<p>This is what Vince is famous for. It is basically a way to determine trading quantity (aka leverage) using the probability distributions of the trade outcomes.</p>
<p>If <em>f</em> represents the fraction of capital to wager (risk) on each bet (trade), the optimal value is the one which optimises the geometric growth of the bankroll (account balance).</p>
<p>In his previous books, Vince has defined the formula to determine the optimal f. The first part of the paper discusses the <strong>optimal f</strong> concept and is a good introduction for the non-initiated (showing how over-betting on a game with positive expectancy can and will result in a loss).</p>
<h3>Leverage Space Model promises</h3>
<p>The optimal f section discusses a single-component approach whereas the Leverage Space Model deals with <strong>multiple components portfolio</strong>.</p>
<p>It is presented as an improvement on the <em>Modern Portfolio Theory</em>, briefly discussed. This is based on the following advantages:</p>
<blockquote><ol>
<li>Risk is defined as drawdown (instead of variance in the MPT)</li>
<li>The fallacy and danger of correlation is eliminated</li>
<li>Valid for any distributional form &#8211; Fat-tails are addressed</li>
<li>The model is all about Leverage, which is not addressed in the MPT model.</li>
</ol>
</blockquote>
<h3>Return aspect</h3>
<p>The model starts by building a <strong>multi-dimensional terrain</strong>, drawing the overall expected return, based on multiple combinations of components in the portfolio and their respective <em>f</em>-values.</p>
<div id="attachment_1951" class="wp-caption alignnone" style="width: 260px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/03/Full-Return-LSM.png" alt="In this example the model builds the terrain for 2 simultaneous coin-toss with a payoff of 2:1" title="Full-Return-LSM" width="250" height="198" class="size-full wp-image-1951" /><p class="wp-caption-text">In this example the model builds the terrain for 2 simultaneous coin-toss with a payoff of 2:1. The x and y axis represent the respective f-values (leverage) for each of the bets/trades - while the z-axis (vertical) represents the expected return</p></div>
<p>The maximum portfolio growth is located at the peak of the terrain, resulting from the specific corresponding <em>f</em>-values combination. The terrain construction <strong>does not take into account correlation</strong> between the instruments &#8211; instead, the model uses the joint probability of two scenarios occurring simultaneously, dictated by the price data history.</p>
<h3>The Risk Aspect</h3>
<p>So far, the model has only looked at returns. To introduce the risk component, you must determine your <strong>maximum allowed drawdown</strong>. This is a hard and fast rule: no combination should breach that limit.</p>
<p>Using a derivation of the <em>risk of ruin</em>, the model computes the risk of maximum drawdown for each set of <em>f</em>-values (for a specific timeline &#8211; as, in the long run, the risk of drawdown tends to 100%). If the <em>risk of drawdown</em> is too high, the specific <em>f</em>-values combination is ignored.</p>
<p>In practice, <strong>the initial terrain is truncated</strong>: by removing all points breaching the maximum drawdown threshold.</p>
<div id="attachment_1952" class="wp-caption alignnone" style="width: 261px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/03/Truncated-Return-LSM.png" alt="The terrain has been truncated: all areas deemed too risky, from a drawdown perspective, have been removed." title="Truncated-Return-LSM" width="251" height="197" class="size-full wp-image-1952" /><p class="wp-caption-text">The terrain has been truncated: all areas deemed too risky, from a drawdown perspective, have been removed.</p></div>
<h3>The Algorithm</h3>
<p>Vince implements a <em>genetic algorithm</em> to calculate the terrain, by initially calculating the <em>expected return</em> for each set of <em>f</em>-values, and secondly by running the maximum drawdown test on this same set. Once the whole set combination has been run through, the terrain is built (including truncations). The the aim is then to find the optimal set (highest return with lowest <em>f</em>-values).</p>
<h3>Comments and Extra Info</h3>
<p>The paper is rather short and does not deal with any of the maths behind the models. For this you&#8217;d have to get yourself a copy of <a href="http://www.automated-trading-system.com/Handbook-Portfolio-Mathematics-Vince" target="_blank" rel="nofollow">the Handbook of Portfolio Mathematics</a> which introduces the model in more detail or Vince&#8217;s <a href="http://www.amazon.com/exec/obidos/ASIN/0470455950/autotradblog-20" target="_blank" rel="nofollow">latest book</a>, dedicated to the Leverage Space Model, which has had a not-so-positive <a href="http://www.maxdama.com/?p=156" target="_blank">review by Max Dama</a>.</p>
<p>The ideas in the paper are an interesting take on position sizing. Vince uses a simple objective/bliss function (CAGR with a binary risk/drawdown filter) to evaluate all possible scenarios of portfolio allocation/leverage. It might be interesting to use the concepts of the model with your own <a href="http://www.automated-trading-system.com/bliss-recipe-robustness-spice/">bliss function recipe</a>.</p>
<p>One of Vince&#8217;s claim that the MPT does not address leverage sounds a bit simplistic &#8211; surely the percentage of Cash as an asset in the portfolio is an implicit measure of leverage. On the other hand, the approach on correlation/joint probability of scenarios sounds interesting and seems to go in the right direction. As Vince says:</p>
<blockquote><p>Counting on correlation fails you when you need it the most.</p></blockquote>
<p>Another point that seems missed out is how the model handles non-stationarity of the market. Vince mentions the <em>chronomorphism</em> of market prices distributions (i.e. they change with time) and even draws a betting comparison with blackjack &#8211; in which the optimal f curve changes for each card dealt. However there is no mention of how the model takes an adaptive approach to these <em>chronomorphic</em> distributions.</p>
<p><a href="http://parametricplanet.com/rvince/" target="_blank">Vince&#8217;s homepage</a> contains a link to the java software that implements his model  (needs to register/leave email to download) and another one with a spreadsheet example. I have not had time to take a serious look at all those. Please let me know your feedback if you do.</p>
<p>Joshua Ulrich &#8211; blogger and reader of this blog (hello there: finally got round to adding you to the blogroll!) &#8211; is collaborating with Ralph Vince to port the Leverage Space Model to the R platform. His <a href="http://blog.fosstrading.com/search/label/LSPM" target="_blank">FOSS Trading</a> blog is definitely worth a read too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/vince-leverage-space-model/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Intricacies of Market and Trend Following Changes</title>
		<link>http://www.automated-trading-system.com/intricacies-of-market-and-trend-following-changes/</link>
		<comments>http://www.automated-trading-system.com/intricacies-of-market-and-trend-following-changes/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 11:10:49 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Strategies]]></category>
		<category><![CDATA[autocorrelation]]></category>
		<category><![CDATA[distribution]]></category>
		<category><![CDATA[kurtosis]]></category>
		<category><![CDATA[michael covel]]></category>
		<category><![CDATA[niederhoffer]]></category>
		<category><![CDATA[Turtle]]></category>
		<category><![CDATA[walk-forward]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=1880</guid>
		<description><![CDATA[In the last post we looked at the Turtle Trading system and saw that its performance went from outstanding for a long period of time to flat for 20 years. This opens a can of worms: Does Trend Following work, is it dead, do markets change, does trend following rules need to adapt to these [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1887" class="wp-caption aligncenter" style="width: 310px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/03/nebulous-look1.jpg" alt="nebulous intricacies" title="nebulous look" width="300" height="215" class="size-full wp-image-1887" /><p class="wp-caption-text">nebulous intricacies</p></div>
<p>In the last post we looked at the <a href="http://www.automated-trading-system.com/turtles-just-lucky/">Turtle Trading system</a> and saw that its performance went from outstanding for a long period of time to flat for 20 years. This opens a can of worms:</p>
<p><em>Does Trend Following work, is it dead, do markets change, does trend following rules need to adapt to these changes?</em></p>
<p>Let&#8217;s look at the different points of view.<span id="more-1880"></span></p>
<h3>The EMH Crowd</h3>
<p>The EMH crowd does not believe in anything else than the <em>Random Walk</em> and by definition discards any profit-generating mechanical strategy.</p>
<p>As much as the <strong>Efficient Market Hypothesis</strong> (EMH) is a cornerstone of most modern financial theory, it has proven to be wrong partly because of some of its assumptions (not all actors in the market are rational, market prices are not fully random and normally distributed, etc.).</p>
<p>One great book that discredits the EMH approach and their <em>descendant</em> theories (CAPM, etc.) is by <strong>Mandelbrot</strong>: <a href="http://www.amazon.com/exec/obidos/ASIN/0465043577/autotradblog-20" target="_blank" rel="nofollow">The (mis)behavior of the markets</a>. It lays the arguments against the EMH in an approachable (ie not too much maths) way.</p>
<h3>Trend Following is dead/does not work</h3>
<p>Curtis Faith declared that &#8220;every few years trend following traders experience a period of losses and inevitably some expert will announce the end of trend following.&#8221;</p>
<p>Mike Covel also has a similar quote in his <a href="http://www.amazon.com/exec/obidos/ASIN/013702018X/autotradblog-20" target="_blank" rel="nofollow">Trend Following</a> book: &#8220;every 5 years some famous trader blows up and everyone declares <strong>trend following to be dead</strong>. Then 5 years later some famous trader blows up and everyone declares trend following to be dead, etc. &#8221;</p>
<p>One of the main proponents of the argument against Trend Following is infamous trader <strong>Vic Niederhoffer</strong> (who &#8220;blew up&#8221; twice). He has been highly vocal about it, declaring Trend Following as one of the <a href="http://www.dailyspeculations.com/vic/goodboy_interview.html" target="_blank" rel="nofollow">top Stock Market con</a>.<br />
Here is <a href="http://www.dailyspeculations.com/wordpress/?p=830" target="_blank" rel="nofollow">another link</a> from his website to read more about it.</p>
<p>Arguments like this, despite the empirical evidence against it &#8211; in the form of Trend Following Wizards success, can be taken as a motivation for healthy skepticism and push you to strengthen your statistical research.</p>
<h3>Are markets changing? (and must Trend Following change too?)</h3>
<p>The self-professed &#8220;Trend Following poster boy&#8221; (a.k.a. Michael Covel) authoratively declares that this is a <a href="http://www.michaelcovel.com/2009/10/13/the-ever-changing-markets-argument/" target="_blank" rel="nofollow">specious argument</a>.</p>
<blockquote><p>Occasionally, someone trying to promote something or start a debate will argue that trend following rules must always change due to changing market conditions. This is nonsense. It is a specious argument.</p></blockquote>
<p>This is at best ambiguous. Covel likes to cite Bill Dunn who:</p>
<blockquote><p>proffered that his basic system rules have not changed since 1974</p></blockquote>
<p>Now, that is seducing: it seems to sell you the idea that you can develop a system, implement it and trade it for life. However this is not strictly true. As mentioned in <a href="http://www.streetstories.com/dunn_art_futures.html" target="_blank" rel="nofollow">this interview</a>:</p>
<blockquote><p>Dunn annually adjusts the parameters of trading signals and each markets weighting. In February &#8211; just as the grains were about to take off &#8211; he dumped the entire grain sector. But Dunn has no regrets.</p></blockquote>
<p>Dunn is also known to have collaborated with Robert Pardo, a strong proponent of Walk-Forward testing (see below: a constant system adjustment).</p>
<p>To clarify: although Trend Following principles will never change, the rules/parameters of a Trend Following system might need to be adjusted to changing market conditions.</p>
<h3>How can a Trend Following strategy adapt to the ever-changing markets?</h3>
<p>In an <a href="http://www.activetradermag.com/index.php/c/Trading_Strategies/d/Tuning_up_the_turtle" target="_blank" rel="nofollow">Active Trader article</a>, Anthony Garner attempts to discuss:</p>
<blockquote><p>Do markets change? Is it necessary to undertake continued research and development and adapt a trend-following system to maintain its profitability over the years?</p></blockquote>
<p>The article is only available for the magazine subscribers, but the result of the equity curve can be found on the <a href="http://www.tradingblox.com/forum/viewtopic.php?t=7301" target="_blank" rel="nofollow">Trading Blox forum</a>. By &#8220;tuning up&#8221; the Turtle system, Garner manages to obtain interesting stats (MAR=2.26, CAGR=35.28%). The main change to the system is the use of a longer-term timeframe.</p>
<p><a href="http://www.tradingblox.com/forum/viewtopic.php?t=7301" target="_blank" rel="nofollow"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/03/tunedturtle_139.png" alt="tunedturtle_139" title="tunedturtle_139" width="166" height="125" class="alignnone size-full wp-image-1884" /></a></p>
<h3>Practically</h3>
<p>I know I would not be happy trading the original Turtle System in the last 20 years and get a 0% return. If you started trading this system &#8220;back then&#8221;, when and how would you think it is time to switch to a revised system?</p>
<p>Let&#8217;s look at options:</p>
<h4>1. Walk-Forward</h4>
<p><a href="http://www.automated-trading-system.com/walk-forward-testing/">Walk-Forward testing</a>&#8216;s principle is to keep running (in simulation) a &#8220;pool&#8221; of systems using different rules/parameters. At regular interval, you evaluate what systems are best (performance, robustness, etc.) and trade those until the next re-evaluation. The potential risk with this approach is that you might end up like a dog <em>chasing your tail</em>.</p>
<p>However, this approach would have you switched from the original Turtle system to the new one a while ago.</p>
<h4>2. Alternative Walk-Forward</h4>
<p>Markets exhibit some degree of inefficiency &#8211; and Trend Following is a strategy designed to profit from these inefficiencies. I am still refining my theoritical understanding and explanation of it, but I believe Trend Following&#8217;s performance is mostly the result of <a href="http://www.automated-trading-system.com/why-trend-following-works-look-at-the-distribution/">fat-tailed distributions</a> (distribution kurtosis) and possibly <a href="http://www.automated-trading-system.com/why-trend-following-works-autocorrelation/">autocorrelation</a>.</p>
<p>If one can associate the evolution of these characteristics to the performance of Trend Following systems it might be possible to adapt the system rules/parameters to the values and evolution of the price distribution characteristics. This is a topic I&#8217;d like to investigate further.</p>
<h4>3. Mixing Systems</h4>
<p>Finally, and this seems to be a strategy adopted by many professionals: mix different systems and different timeframes. Here the rationale is that we cannot predict what systems are going to under/over perform and mixing several ones together will smooth out the equity curve.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/intricacies-of-market-and-trend-following-changes/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Why Trend Following works: Autocorrelation?</title>
		<link>http://www.automated-trading-system.com/why-trend-following-works-autocorrelation/</link>
		<comments>http://www.automated-trading-system.com/why-trend-following-works-autocorrelation/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 11:46:09 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[Strategies]]></category>
		<category><![CDATA[Trend Following]]></category>
		<category><![CDATA[autocorrelation]]></category>
		<category><![CDATA[distribution]]></category>
		<category><![CDATA[kurtosis]]></category>
		<category><![CDATA[options]]></category>
		<category><![CDATA[Stats]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=1783</guid>
		<description><![CDATA[Is it important to understand why Trend Following works (ie what are the sources of its profitability)? &#160; I believe yes. Because markets are non-stationary (changing all the time), their characteristics &#8211; including those at the root of Trend Following profits &#8211; are changing too. &#160; Understanding these market characteristics is a first step towards [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_1785" class="wp-caption alignleft" style="width: 260px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2010/02/autocorrelation-kylemcdonald-300x300.jpg" alt="some Autocorrelation representation by kylemcdonald@flickr (CC)" title="autocorrelation-kylemcdonald" width="250" height="250" class="size-medium wp-image-1785" /><p class="wp-caption-text">some Autocorrelation representation by kylemcdonald@flickr (CC)</p></div>Is it important to understand <strong>why Trend Following works</strong> (ie what are the sources of its profitability)?<br />
&nbsp;<br />
I believe yes. Because markets are <strong>non-stationary</strong> (changing all the time), their characteristics &#8211; including those at the root of Trend Following profits &#8211; are changing too.<br />
&nbsp;<br />
Understanding these market characteristics is a first step towards being able to <strong>identify and measure them</strong>. This, in turn should be a step to linking Trend Following performance to the state of these market characteristics. Finally, this might be a step towards devising a way for a Trend Following strategy to <strong>adapt to these changing market characteristics</strong> (this last point makes a very big assumption: market characteristic changes can be predicted with some degree of accuracy).</p>
<h3>Kurtosis only?</h3>
<p>In an earlier post, I discussed how <a href="http://www.automated-trading-system.com/why-trend-following-works-look-at-the-distribution/">fat-tails are a reason for Trend Following success</a> (or in technical terms: the <strong>excess kurtosis</strong> of price distributions).</p>
<p>However, there is something unsatisfying in that explanation: if the kurtosis was the sole source of Trend Following success:<span id="more-1783"></span></p>
<ul>
<li>Random entries should work as well as any other entries</li>
<li>Strategies such as buying Out-of-The-Money (OTM) options (think Nassim Taleb for example) should exhibit similar performance to Trend Following (with the advantage of being a rather simpler strategy)</li>
</ul>
<h3>Something Extra?</h3>
<p>I recently came across <a href="http://www.automated-trading-system.com/wp-content/uploads/2010/02/AIMA.pdf" target="_blank" rel="nofollow">this paper (PDF)</a> explaining that Trend Following and OTM options buying are strategies exhibiting similar performance profiles. However, the conclusion of this paper was that <strong>Trend Following showed superior performance</strong>.</p>
<p>Additionally, there is definitely a measurable <strong>edge to Trend Following entries</strong> (such as this <a href="http://www.automated-trading-system.com/e-ratio-trading-edge/#e-ratio-filter-chart">Donchian breakout e-ratio calculation</a> shows). Random entries would not show such an edge.</p>
<p>So, there must be something extra to the kurtosis story explaining Trend Following success&#8230;</p>
<h3>Autocorrelation</h3>
<p>One hypothesis that I want to investigate further is <a href="http://en.wikipedia.org/wiki/Autocorrelation" target="_blank">autocorrelation</a> (also referred to serial correlation).</p>
<p>One of the main principles of Trend Following entries &#8211; in the face of conventional wisdom &#8211; is:</p>
<blockquote><p>Buy High and Sell Low</p></blockquote>
<p>Well, it should really say &#8220;Buy High, Sell Higher and Sell Short Low, Buy Back Lower&#8221;. The point is that <strong>Trend Following entries are made at extremes, in the direction of the extremes</strong>.</p>
<p>If market exhibit positive <strong>autocorrelation at extremes</strong>, it can be derived that following the direction of the extreme moves should provide an edge (positive expectancy). This would explain why Trend Following entries perform better than random entries and why Trend Following is a superior strategy to buying Out-of-The-Money options.</p>
<h3>Calculation Project</h3>
<p>Now, this sounds all well and fine <em>in theory</em> but does this stack up to verification?</p>
<p>To check this, I am planning to run some calculations on historical prices and see if markets exhibit such autocorrelation at extremes. Another aspect that will be interesting to look into is whether this autocorrelation evolves over time and whether these autocorrelation levels are autocorrelated themselves (ie is there some degree of predictability in the autocorrelation evolution).</p>
<p>Now, please note that I am stepping out of my comfort zone here: my &#8220;heavy maths&#8221; days are quite far behind me and I know that using statistics can be a minefield (because it is so easy to use it in an incorrect manner). For example, the &#8220;standard&#8221; correlation calculation (Pearson&#8217;s correlation coefficient) only determines linear dependence &#8211; although market data is non-linear. Might set myself up for some hardship but as we say in French: &#8220;Qui ne risque rien n&#8217;a rien&#8221; (no pain, no gain).</p>
<p>I am also thinking of getting <a href="http://www.amazon.com/exec/obidos/ASIN/0199280967/autotradblog-20" target="_blank" rel="nofollow">one</a> or <a href="http://www.amazon.com/exec/obidos/ASIN/0071276254/autotradblog-20" target="_blank" rel="nofollow">two</a> Econometrics books to give me a headstart on this. But if any of you clever readers have any suggestions or tips on any of the above, please let me know.</p>
<p>Please bear with me and stay tuned.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/why-trend-following-works-autocorrelation/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Price Distributions and Trend Following</title>
		<link>http://www.automated-trading-system.com/price-distributions-trend-following/</link>
		<comments>http://www.automated-trading-system.com/price-distributions-trend-following/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 10:58:58 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[Forex]]></category>
		<category><![CDATA[Trend Following]]></category>
		<category><![CDATA[distribution]]></category>
		<category><![CDATA[kurtosis]]></category>
		<category><![CDATA[research paper]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=1116</guid>
		<description><![CDATA[I posited in an earlier post that fat tails are one of the main reasons why trend following works. The underlying concept can be summarized as follows: trend following attempts to capture big price moves (a.k.a. trends). Since price distributions are leptokurtic (i.e. they exhibit fat-tails) long trends occur at abnormal frequency, providing greater sources [...]]]></description>
			<content:encoded><![CDATA[<p>I posited in an earlier post that <a href="http://www.automated-trading-system.com/why-trend-following-works-look-at-the-distribution/">fat tails are one of the main reasons why trend following works</a>. The underlying concept can be summarized as follows: trend following attempts to capture big price moves (a.k.a. trends). Since price distributions are <em>leptokurtic</em> (i.e. they exhibit fat-tails) long trends occur at abnormal frequency, providing greater sources of <em>alpha</em> for trend followers.</p>
<p>Following the article, a reader of the blog (Alex) kindly forwarded me a research paper trying to identify which <a href="http://en.wikipedia.org/wiki/Moment_(mathematics)" target="_blank" rel="nofollow">moments of a distribution</a> (mean/drift, variance, skew, kurtosis) affect the returns of a trend-following strategy. This is an interesting read (10 pages, not too mathematically challenging) which I encourage you to read:</p>
<p><a href="http://www.automated-trading-system.com/wp-content/uploads/2009/12/Uncovering-the-Trend-Following-Strategy.pdf" target="_blank"><img src="http://www.automated-trading-system.com/wp-content/uploads/2009/12/Uncovering-the-Trend-Following-Strategy.png" alt="Uncovering the Trend Following Strategy" title="Uncovering the Trend Following Strategy" width="66" height="66" class="alignnone size-full wp-image-1117" /></a><br />
<a href="http://www.automated-trading-system.com/wp-content/uploads/2009/12/Uncovering-the-Trend-Following-Strategy.pdf" target="_blank">Click to download paper</a></p>
<h3>Summary of the paper</h3>
<p>The authors are mostly interested in currencies and in order to free themselves of historical data limitation, they generate artificial price data to <em>simulate</em> different types of price distributions by varying the different underlying  moments.</p>
<p>They then apply a standard Triple moving Average Trend Following system to the different time series generated and measure the annualized gross profit for the simulation (over 5,000 trading days) for each type of distribution.<span id="more-1116"></span></p>
<p>The other parameter measured is the Trading Frequency, from which they derive the auto-correlation characteristic of the underlying data (by applying the logic that a trend following system will trade in and out more frequently in a mean-reverting environment and vice-versa).</p>
<h3>Conclusions</h3>
<p>By applying some regression analysis to the various results observed, the authors arrive to the equation predicting the return of thee Trend following system:</p>
<blockquote><p>TMA Result = 38.88Stdev(1 &#8211; 6.77TFrq + 0.0392Skew &#8211; 0.010Kurtosis + Drift(65.65 + 324,600Drift))</p></blockquote>
<p>with a standard estimation error of 0.3%</p>
<p>The interpretations are that:</p>
<blockquote><p>Market volatility (38.88 Stdev) determines the profit (or loss) potential of the trend-following strategy. This relationship is direct, so if market volatility doubles,so does the expected TMA result. Accordingly, it is no longer surprising that trend-following models tend to show the best results across the major currency blocks with high market volatility.</p>
<p>A high Tfreq will have a negative impact on trend model performance.</p>
<p>Skew will enhance performance, while the opposite is true for kurtosis. Drift will increase the value of the equation and thereby contribute positively to the TMA model result.</p></blockquote>
<p>So it appears that the kurtosis (the source of fat-tails) actually has a negative effect on a trend following model (contrary to that earlier post) and in a relatively large way:</p>
<blockquote><p>The currency path (auto-correlation/trading frequency) is the most important factor in determining performance (91%). The impact from kurtosis (68%) and drift (56%) is also significant. Skewness is less significant, but still explains 26% of variance on its own. Volatility has no importance at all (0.4%). This might initially come as a surprise, but as illustrated in Equation, it is a multiplication variable and so does not in itself generate trend model profitability (or loss where the path characteristic is unfavorable).</p></blockquote>
<h3>Comments</h3>
<p>Mathematical theory is not my strongest suit (despite studying over 10 hrs of Maths per week in my prime!) and I am definitely thinking of getting some refresher training on that. But there are a few points that bother me in that research paper. To the more knowledgeable readers: &#8220;Please chime in and tell me where I might be wrong:</em></p>
<p><b>Simulated Data</b><br />
This tends to make me a bit sceptical of the results especially with the authors&#8217; random walk and efficient markets hypothesis (EMH) assumptions. After reading Taleb and especially Mandelbrot (I really enjoyed reading <a href="http://www.automated-trading-system.com/Mandelbrot-misbehavior" target="_blank">The (mis)behavior of Markets</a> with its debunking of the EMH and alternative explanation of financial markets), I have been converted to the <em>Dark Side</em> of the force: I am not sure we really know how to modelise the data theoritically and this random simulation might be missing specific price data characteristics (granted, the authors empirical verification seems to confirm the assumptions&#8230;).</p>
<p><b>Measure of auto-correlation by proxy</b><br />
The auto-correlation of the underlying data is actually derived from the trading frequency of the trading system itself. This does not sound right.<br />
Whereas it seems intuitive that the more a trend following strategy trades in and out the least profitable, I am not sure this necessarily and direclty implies auto-correlation in the underlying data.</p>
<p><b>Only one model tested</b><br />
Testing the performance of trend following by using one model only might not bee so representative. It would be interesting to see how the results translate to a collection of trend following systems (different styles, different timeframes, additional markets, etc.)</p>
<p>In any case, the finding that kurtosis has a negative effect on trend following returns seems to contradict my earlier post. As per the points above I&#8217;ll take the paper&#8217;s findings with a pinch of salt &#8211; but it might be a useful tool in determining when or not to use trend following strategy (by measuring the characteristics of the price distribution).</p>
<p>Whether trading using these market regimes identification is a valid and robust approach is a different question&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/price-distributions-trend-following/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Why Trend Following works: look at the Distribution</title>
		<link>http://www.automated-trading-system.com/why-trend-following-works-look-at-the-distribution/</link>
		<comments>http://www.automated-trading-system.com/why-trend-following-works-look-at-the-distribution/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 10:33:08 +0000</pubDate>
		<dc:creator>Jez Liberty</dc:creator>
				<category><![CDATA[Strategies]]></category>
		<category><![CDATA[Trend Following]]></category>
		<category><![CDATA[dave harding]]></category>
		<category><![CDATA[distribution]]></category>
		<category><![CDATA[fat-tail]]></category>
		<category><![CDATA[levy]]></category>
		<category><![CDATA[mandelbrot]]></category>
		<category><![CDATA[power law]]></category>
		<category><![CDATA[winton capital]]></category>

		<guid isPermaLink="false">http://www.automated-trading-system.com/?p=668</guid>
		<description><![CDATA[One of the most important underlying concepts that contribute to the success of Trend Following is the fact that the strategy is based on the non-normality of market returns. Let me explain. Trend followers position themselves to profit from and capture the “fat tails” exhibited in market returns distribution. In a fat-tail distribution (Power law, [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most important underlying concepts that contribute to the success of Trend Following is the fact that the strategy is based on the non-normality of market returns. Let me explain.</p>
<p>Trend followers position themselves to profit from and capture the “fat tails” exhibited in market returns distribution. In a <em>fat-tail</em> distribution (Power law, Levy or Mandelbrotian distributions), extreme occurrences occur with a probability greater than normal.<br />
<div id="attachment_722" class="wp-caption aligncenter" style="width: 506px"><img src="http://www.automated-trading-system.com/wp-content/uploads/2009/10/Distribution1.png" alt="Fat-tail vs. normal distribution: notice the thickness of both extremes on the Levy distribution.&quot; title=&quot;Distributions: Normal v. Levy" title="Distributions: Levy vs. Normal" width="496" height="393" class="size-full wp-image-722" /><p class="wp-caption-text">Fat-tail vs. normal distribution: notice the thickness of both extremes on the Levy distribution.</p></div><br />
As Dave Harding of Winton Capital puts it: <span id="more-668"></span></p>
<blockquote><p>If you put in stops and run your profits and trade randomly you make money; and if you put in targets and no stops, and you trade randomly you lose money. So the old saw about cutting losses and running profits has some truth to it.</p></blockquote>
<p>The basics of trend following is to ride the trend until the end (when it bends) and to protect yourself on the downside by cutting your losses.</p>
<p>This ensures that the location of your trades in the returns distribution will:</p>
<ul>
<li>Never venture on the left fat-tail (i.e. no extreme negative return)</li>
<li>Not be bounded on the right-hand side of the distribution (i.e. allow for extreme positive returns)</li>
</ul>
<p>As the markets are mostly random, most of the trades will end up in the centre of the distribution curve either side of the horizontal axis &#8211; and their return should cancel each other out.</p>
<p>Trend Following’s <em>alpha</em> (the actual strategy return) is generated by extreme movements: By letting trades run on the right-hand side <em>fat-tail</em> and stopping them from &#8220;wandering&#8221; on the left-hand side one, an overall positive return is generated. This outlines the fact that Trend Following relies on rare extreme returns (outliers) whereas the bulk of trades cancel each other out.</p>
<p>Note that this post simplifies matters to illustrate the fundamental point. Other parameters such as trading costs, etc. obviously need to be considered.</p>
<p><b>UPDATE:</b> For those readers wanting to investigate this concept a bit further, <a href="http://www.automated-trading-system.com/price-distributions-trend-following/">a later post</a> presents a research paper investigating the effects of the 4 first moments of the price distributions on the return of a Trend Following system. <a href="http://www.automated-trading-system.com/price-distributions-trend-following/">Please read here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.automated-trading-system.com/why-trend-following-works-look-at-the-distribution/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

