<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-35364652</atom:id><lastBuildDate>Sat, 26 May 2012 22:55:58 +0000</lastBuildDate><title>Quantitative Trading</title><description>Quantitative investment and trading ideas, research, and analysis.</description><link>http://epchan.blogspot.com/</link><managingEditor>noreply@blogger.com (Ernie Chan)</managingEditor><generator>Blogger</generator><openSearch:totalResults>172</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/QuantitativeTrading" /><feedburner:info uri="quantitativetrading" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-1996572864561896812</guid><pubDate>Thu, 26 Apr 2012 19:48:00 +0000</pubDate><atom:updated>2012-04-26T15:48:24.596-04:00</atom:updated><title>A few announcements</title><description>First, an iPad version of this blog has been launched, so if you are reading this on an iPad, the look will be different.&amp;nbsp;If you want to go back to the old look, just hit Page Turn in the bottom left corner and choose the option there. Any comments or suggestions on this new look are most welcome!&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Second, and this is probably irrelevant to most of you reading this blog, a Chinese translation of my book Quantitative Trading is now &lt;a href="http://www.books.com.tw/exep/prod/booksfile.php?item=0010528455" target="_blank"&gt;available&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Third, and most interesting, Larry Connors will be hosting a &lt;a href="http://presentations.tradingmarkets.com/1580186/special-presentation-to-ernie-chans-trading-group-connors-research-trading-strategy-series-w?utm_source=CREmailPartner&amp;amp;utm_campaign=None&amp;amp;utm_medium=Chan&amp;amp;utm_content=120501-CRTSSWP" target="_blank"&gt;webinar&lt;/a&gt; on "How to Trade High Probability Stock Gaps" on&amp;nbsp;&lt;strong style="text-align: left;"&gt;Tuesday, May 1, 2:00pm ET&lt;/strong&gt;&lt;span style="text-align: left;"&gt;.&lt;/span&gt;&amp;nbsp;(Click on link to register.) It is sheer coincidence that I was just writing about stock gaps in my &lt;a href="http://epchan.blogspot.ca/2012/04/life-and-death-of-strategy.html" target="_blank"&gt;previous post&lt;/a&gt;! I have always found Larry's strategies to be clear, concise, and simple - exactly the ingredients for out-of-sample as opposed to in-sample returns!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-1996572864561896812?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/I9iwyHGOLbU/few-announcements.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>35</thr:total><feedburner:origLink>http://epchan.blogspot.com/2012/04/few-announcements.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-6705992173073923207</guid><pubDate>Fri, 20 Apr 2012 16:05:00 +0000</pubDate><atom:updated>2012-04-20T12:05:50.685-04:00</atom:updated><title>The life and death of a strategy</title><description>Sometimes it is instructive to look back at some strategies that used to thrive, and then quite suddenly contracted a chronic illness that ultimately led to its demise. It gives us a sense of the unreliability of backtests and curb our over-confidence, which is always useful when dealing with the financial markets.&lt;br /&gt;&lt;br /&gt;One good example is a well-known strategy that we called "buy-on-gap". In its simplest version, just buy at the open 100 stocks within the S&amp;amp;P500 which have the lowest returns from their previous day's lows to the current day's open, provided that these returns are lower than one standard deviation. (The standard deviation is computed as the 90-day moving standard deviation of close-to-close returns of a stock.) Exit such &amp;nbsp;long positions at the day's close.&lt;br /&gt;&lt;br /&gt;Many traders know of variants of this strategy, and I started trading it around the beginning of 2007, and in fact, it formed part of my first fund's portfolio of strategies. You can see the cumulative return chart below (click to enlarge) from 2007/01/03-2008/10/29. The APR is 19%, &lt;i&gt;unlevered&lt;/i&gt;. The Sharpe ratio is 1.4 and the maximum drawdown is just 4%. Note that Lehman Brothers went bankrupt on 2008/09/15, and this is a long-only strategy, yet the performance was spectacular in September-October 2008. We were patting ourselves furiously on the back.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-EOJE2qyS8Ek/T5GC_AJVYeI/AAAAAAAAA6o/T6uYgkoqzX0/s1600/cumret_bog2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="224" src="http://4.bp.blogspot.com/-EOJE2qyS8Ek/T5GC_AJVYeI/AAAAAAAAA6o/T6uYgkoqzX0/s320/cumret_bog2.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Now look what happened after this happy period.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-Q5Abo4IpY0M/T5GEXNv_lJI/AAAAAAAAA6w/8lQynToRHVw/s1600/cumret_bog2_2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="231" src="http://3.bp.blogspot.com/-Q5Abo4IpY0M/T5GEXNv_lJI/AAAAAAAAA6w/8lQynToRHVw/s320/cumret_bog2_2.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;The APR was -6%. 2008/10/29 turned out to be the high watermark.&lt;br /&gt;&lt;br /&gt;I have seen some strategies that have the opposite behavior: poor performance prior to 2009, and stellar performance since then. Was there a structural break in the market due to the financial crisis? Was this due to the advent of high frequency trading? The declining volume in the equities market? I will leave these deep questions to financial economists. The only lesson I have learned from this and other examples is that, once a strategy is in decline for some time, it seldom comes back to health, and the best course of action is to bury it swiftly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-6705992173073923207?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/KxaaPbmqbHg/life-and-death-of-strategy.html</link><author>noreply@blogger.com (Ernie Chan)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-EOJE2qyS8Ek/T5GC_AJVYeI/AAAAAAAAA6o/T6uYgkoqzX0/s72-c/cumret_bog2.png" height="72" width="72" /><thr:total>49</thr:total><feedburner:origLink>http://epchan.blogspot.com/2012/04/life-and-death-of-strategy.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-2237953507761473634</guid><pubDate>Fri, 23 Mar 2012 17:56:00 +0000</pubDate><atom:updated>2012-03-23T13:56:56.960-04:00</atom:updated><title>High-frequency trading in the foreign exchange market</title><description>This is the title of a &lt;a href="http://www.bis.org/publ/mktc05.pdf" target="_blank"&gt;report&lt;/a&gt; published by the Bank of International Settlements (which serves central banks around the world) in September 2011. As a Forex trader myself, I of course&amp;nbsp;peruse it with great interest hoping to glimpse whatever is the state-of-the-art. Here are a few interesting nuggets, together with my commentary:&lt;br /&gt;&lt;br /&gt;1) FX HFT operate with a latency of less than 1 ms, while most of us mere algorithmic traders typically suffer a latency of at least 10ms. &amp;nbsp;For example, Interactive Brokers does not yet provide collocation facilities for its customers, so the best we can do is to place our trading servers on the internet backbone close to its Stamford, CT, location. The best round-trip ping time is 10ms. Those who trade with FXCM may have a better chance for lower latency, as they provide &lt;i&gt;free &lt;/i&gt;collocation to their clients. Those who trade on the ECN FXall can &lt;a href="http://www.equinix.com/company/news-and-events/press-releases/americas/2009/fxall_offers_foreign_exchange_platform_en/" target="_blank"&gt;collocate at their Equinix data center&lt;/a&gt;, while &lt;a href="http://www.fcm360.com/financial-industry-solutions/foreign-exchange-hosting-colocation-connectivity/icap-ebs-servers/" target="_blank"&gt;FCM360&lt;/a&gt; provides collocation service to EBS traders.&amp;nbsp;I cannot find any collocation service for Hotspot FX or Currenex. If you know of such services, or FX brokers who provide collocation, do leave a comment!&lt;br /&gt;&lt;br /&gt;2) HFT typically operate in markets with high liquidity and low volatility. The former is not surprising, since markets with low liquidity has few counter-parties to take advantage of. The latter requires a bit of nuance. I think most HFT would benefit from high volatility in a mean-reverting market, but unfortunately high volatility is usually correlated with market in a free fall. So don't be surprised if you find that HFT-provided liquidity suddenly disappears when the market is in stress, though the BIS report stated that they are also quick to re-enter the market once the turmoil is over.&lt;br /&gt;&lt;br /&gt;3) As a&amp;nbsp;corollary&amp;nbsp;of 2), HFT mostly trade in the major currency pairs. But increasingly, NZD and MXN have drawn many automated and HF traders.&lt;br /&gt;&lt;br /&gt;4) Almost by definition, the bid/ask quotes placed by HFT tend to remain on the book for a very short time, measured in ms, unless forced by the exchange to stay longer. EBS and Reuters both has minimum quote life or minimum fill ratio. One exchange that does &lt;i&gt;not&lt;/i&gt;&amp;nbsp;have such minimums is Currenex, which is therefore particularly attractive to HF trading. Hence if you are not a HF player, and do not wish to be taken advantage of &amp;nbsp;by a HF player, be wary of Currenex!&lt;br /&gt;&lt;br /&gt;5) Two of the&amp;nbsp;favourite&amp;nbsp;categories of HFT strategies: triangle arbitrage and liquidity-redistribution (taking advantage of pricing discrepancies across different trading platforms.) Despite the bad reputation HFTers have been acquiring in the last few years, I think they do provide a useful service to other algo traders like myself via these 2 strategies. It is a hassle to keep looking for a better broker/prices for your strategy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-2237953507761473634?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/XiagQqGzypU/high-frequency-trading-in-foreign.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>42</thr:total><feedburner:origLink>http://epchan.blogspot.com/2012/03/high-frequency-trading-in-foreign.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-7058330961437969371</guid><pubDate>Sat, 03 Mar 2012 16:01:00 +0000</pubDate><atom:updated>2012-03-03T13:08:13.609-05:00</atom:updated><title>Hidden Markov model applied to FX prediction</title><description>I read with interest an older paper "&lt;a href="http://research.stlouisfed.org/wp/2001/2001-021.pdf" target="_blank"&gt;Can Markov Switching Models Predict Excess Foreign Exchange Returns?&lt;/a&gt;" by Dueker and Neely of the Federal Reserve Bank of St. Louis. I have a fondness for hidden Markov models because of its great success in speech recognition applications, but I confess that I have never been able to create a HMM model that outperforms simple technical indicators. I blame that both on my own lack of creativity as well as the fact that HMM tend to have too many parameters that need to be fitted to historical data, which makes it vulnerable to data snooping bias. Hence I approached this paper with the great hope that experts can teach me how to apply HMM properly to finance.&lt;br /&gt;&lt;br /&gt;The objective of the model is simple: to predict the excess return of an exchange rate over an 8-day period. (Excess return in this context is measured by the % change in the exchange rate minus the interest rate differential &amp;nbsp;between the base and quote currencies of the currency pair.) If the expected excess return is higher than a threshold (called "filter" in the paper), then go long. If it is lower than another threshold, go short. Even though the prediction is on a 8-day return, the trading decision is made daily.&lt;br /&gt;&lt;br /&gt;The excess return is assumed to have a 3-parameter student-t distribution. The 3 parameters are the mean, the degree of freedom, and the scale. The scale parameter (which controls the variance) can switch between a high and low value based on a Markov model. The degree of freedom (which controls the kurtosis, a.k.a. "thickness of the tails") can also switch between 2 values based on another Markov model. The mean is linearly dependent on the values assumed by the degree of freedom and the scale as well as another Markov variable that switches between 2 values. Hence the mean can assume 8 distinct values. The 3 Markov models are independent. The student-t distribution is more appropriate for the modelling financial returns than normal distribution because of the allowance for heavy tails. The authors also believe that this model captures the switch between periods of high and low volatility, with the consequent change of preference (=different mean returns) for "safe" versus "risky" currencies, a phenomenon well-demonstrated in the period between August 2011 to January 2012.&lt;br /&gt;&lt;br /&gt;The parameters of the Markov models and the student-t distributions are estimated in the in-sample period (1974-1981) for each currency pair in order to minimize the cumulative deviation of the excess returns from zero. There are a total of 14 parameters to be so estimated. After these estimations, we have to also estimate the 2 trading thresholds by maximizing the in-sample return of the trading strategy, assuming a transaction costs of 10 basis point per trade.&lt;br /&gt;&lt;br /&gt;With this large number (16 in total) of parameters, I dread to see the out-of-sample (1982-2005) results. Amazing, these are far better than I expected: the annualized returns range from 1.1% to 7.5% for 4 major currency pairs. The Sharpe ratios are not as impressive: they range from 0.11 to 0.71.&amp;nbsp;Of course, when &amp;nbsp;researchers report out-of-sample results, one should take that with a grain of salt. If the out-of-sample results weren't good, they wouldn't be reporting them, and they would have kept changing the underlying model until good "out-of-sample" results are obtained! So it is really up to us to implement this model, apply it to data after 2005 and to more currency pairs, to find out if there is really something here. In fact, this is the reason why I prefer to read older papers - to allow for the possibility of true out-of-sample tests immediately.&lt;br /&gt;&lt;br /&gt;What do you think can be done to improve this model? I suspect that as a first step, one can see whether the estimated Markov states correspond reasonably to what traders think of as risk-on vs risk-off regimes. If they do, then regardless of the usage of this model as a signal generator, it can at least generate good&amp;nbsp;&lt;a href="http://epchan.blogspot.com/2011/12/risk-indicators.html" target="_blank"&gt;risk indicators&lt;/a&gt;. If not, then maybe the hidden Markov model need to be replaced with a Markov model that is conditioned on observable indicators.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-7058330961437969371?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/5I-UbhpzL48/hidden-markov-model-applied-to-fx.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>22</thr:total><feedburner:origLink>http://epchan.blogspot.com/2012/03/hidden-markov-model-applied-to-fx.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-9105077643393403741</guid><pubDate>Mon, 13 Feb 2012 15:47:00 +0000</pubDate><atom:updated>2012-02-13T10:48:07.009-05:00</atom:updated><title>Ideas from a psychologist</title><description>I have just finished reading Daniel Kahneman's bestseller "&lt;a href="http://www.amazon.com/gp/product/0374275637/ref=as_li_qf_sp_asin_tl?ie=UTF8&amp;amp;tag=quantitativet-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0374275637%22%3EThinking,%20Fast%20and%20Slow%3C/a%3E%3Cimg%20src=%22http://www.assoc-amazon.com/e/ir?t=quantitativet-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=0374275637%22%20width=%221%22%20height=%221%22%20border=%220%22%20alt=%22%22%20style=%22border:none%20!important;%20margin:0px%20!important;%22" target="_blank"&gt;Thinking, Fast and Slow&lt;/a&gt;", and found it full of inspirations important for traders. This is no surprise, of course, since Kahneman won the 2002 Nobel prize in economics for his work on decision theory. Here are some of the notables:&lt;br /&gt;&lt;br /&gt;1) &lt;b&gt;Simple sum is often better than a linear regression fit.&lt;/b&gt; Remember my constant mantra that "simpler is better" when building trading models? I have always advocated linear regression over nonlinear models, but Kahneman went a step further. He said that in social science modeling (which of course includes financial markets modeling), assigning equal weights to the predictive factors is often superior to weighting them using multivariate linear regressors&amp;nbsp;&lt;i&gt;when applied to out-of-sample data&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;2) &lt;b&gt;Overconfidence in corporate acquisitions. &lt;/b&gt;Managers of acquiring companies often believe that they are better than the managers of acquirees. This overconfidence has several causes: there is an illusion of control which overemphasizes the role of skill and neglects the role of luck, and there is a focus on what one knows and a neglect of what one does not, etc. The market already knows this: the stock of the acquirer usually suffers a sell-off upon announcement of the acquisition, because the result of any acquisition is more often bad than good, but the question is whether it has sufficiently discounted this phenomenon. Would shorting the stock of an acquirer at the completion of an acquisition and holding the short position for, say, 5 years, hedging this position with SPY, be profitable?&lt;br /&gt;&lt;br /&gt;3) &lt;b&gt;Premortem. &lt;/b&gt;After designing a trading strategy, it is always useful to write a brief imaginary history of how it has become an unmitigated financial disaster for you a few years from now. This will likely reveal scenarios that you have not previously thought of, and triggering additional risk management measures.&lt;br /&gt;&lt;br /&gt;4) &lt;b&gt;Risk seeking in the face of losses. &lt;/b&gt;Suppose you are running a strategy that has a fixed holding period. Have you ever extended this holding period when the position is losing, in the hope that the position will recoup some of its losses? I have, and the result was double the loss I would have suffered had I exited on time. Apparently this is a very common suboptimal behavioral bias: this is why many defendants with a weak legal case often risk continued litigations instead of accepting an unfavorable settlement.&lt;br /&gt;&lt;br /&gt;5) &lt;b&gt;Why do we often demand Sharpe ratio &amp;nbsp;&amp;gt;=2? &lt;/b&gt;Psychological experiments have shown that people find the pain of losing $1 can only be compensated by the pleasure of winning&amp;nbsp;$2. So if we equate standard deviation as the average drawdown of a strategy, then we need to have twice the average return!&lt;br /&gt;&lt;br /&gt;Many businesses have profited from arbitraging the difference between rational decisions and biased decisions that people commonly made. (For e.g. lottery franchises benefit from people overweighting the probability of winning, sellers of extended warranties benefit from buyers' risk-aversion.) I wonder if there are still&amp;nbsp;opportunities left for rational traders to take advantage of the biased decisions of irrational traders?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-9105077643393403741?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/unV5qgZMefk/ideas-from-psychologist.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>48</thr:total><feedburner:origLink>http://epchan.blogspot.com/2012/02/ideas-from-psychologist.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-785550411785053767</guid><pubDate>Mon, 30 Jan 2012 17:34:00 +0000</pubDate><atom:updated>2012-01-30T12:34:59.587-05:00</atom:updated><title>What worked in 2011?</title><description>We all know that 2011 was a bad year for many hedge funds, with the average fund &lt;a href="http://online.wsj.com/article/SB10001424052970203806504577180941947811200.html" target="_blank"&gt;down 5%&lt;/a&gt;. But what type of strategies did well, and what did particularly poorly? The numbers are out: Forex funds lose more than average, down 6%. In fact, 71 out of 77 Forex funds tracked by a Citigroup currency analyst were down in 2011. And the winners are? Statarb funds, with a &lt;a href="http://www.bloomberg.com/news/2012-01-10/chase-coleman-channels-ancestor-stuyvesant-with-45-robertson-like-return.html" target="_blank"&gt;5% averge return&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;This superior performance of statarb funds is quite a contrast from the last financial crisis 2007-9. Then, most of the big factor-driven statarb models &lt;a href="http://epchan.blogspot.com/2007/08/readers-comment-on-quant-funds-losses.html" target="_blank"&gt;failed miserably&lt;/a&gt;. What caused this difference? Is it because the risk management techniques of big funds have improved? Or maybe that's because in 2011, the deviation from factor returns mean-revert within a few days, so those statarb models that re-balance on a daily basis can benefit from the buying/selling opportunity at steep discount/premium?&lt;br /&gt;&lt;br /&gt;To settle this question, let me report the 2011 backtest results (without transaction costs) of running &lt;a href="http://epchan.blogspot.com/2007/10/how-mean-reversion-strategy-performed.html" target="_blank"&gt;Andrew Lo&lt;/a&gt;'s prototype mean-reversion model : ranking stocks based on their previous day's returns, shorting the top decile and buying the bottom one, rebalancing only at the close. (Click on chart to make it larger.)&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-tmaUlu6Ogws/TybQYIKmbgI/AAAAAAAAA3s/0PstYNXICoA/s1600/andrewLo2011.bmp" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="280" src="http://2.bp.blogspot.com/-tmaUlu6Ogws/TybQYIKmbgI/AAAAAAAAA3s/0PstYNXICoA/s400/andrewLo2011.bmp" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;The APR in 2011 was 18.6%. Note in particular its performance since the crisis began officially on 20110808: despite a steep drawdown, the overall performance was spectacular! Clearly, high volatility benefited a prototypical statarb strategy, and the out-performance has not much to do with improved risk management.&lt;br /&gt;&lt;br /&gt;You might wonder what would happen if we had used the intraday version of this strategy instead: enter all positions at the open, and exit them all at the close? I tried it: the performance is surprisingly similar to the interday strategy. So intraday vs. interday volatility or mean-reversion does not seem to play a part in last year's equities market. Contrasting this with the performance of Forex models, it is clear that high volatilities benefited statarb models while they hurt FX models.&lt;br /&gt;&lt;br /&gt;In the next article or two, I will explore the 2011 performance of some other equities mean-reverting models that I used to trade. But what about your models? If you have some thoughts on what worked and what didn't in 2011, please share them with us in the comments section.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-785550411785053767?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/haje0tJ-_QE/what-worked-in-2011.html</link><author>noreply@blogger.com (Ernie Chan)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-tmaUlu6Ogws/TybQYIKmbgI/AAAAAAAAA3s/0PstYNXICoA/s72-c/andrewLo2011.bmp" height="72" width="72" /><thr:total>47</thr:total><feedburner:origLink>http://epchan.blogspot.com/2012/01/what-worked-in-2011.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-8917675394690276478</guid><pubDate>Tue, 27 Dec 2011 14:32:00 +0000</pubDate><atom:updated>2011-12-27T09:32:29.153-05:00</atom:updated><title>Risk indicators</title><description>During the financial crisis of 2008, I &lt;a href="http://epchan.blogspot.com/2008/10/how-does-financial-crisis-affect.html" target="_blank"&gt;wrote about&lt;/a&gt; how I watched some risk indicators such as the &lt;a href="http://finance.yahoo.com/q?s=^VIX" target="_blank"&gt;VIX&lt;/a&gt; or the &lt;a href="http://www.bloomberg.com/apps/quote?ticker=.TEDSP:IND" target="_blank"&gt;TED spread&lt;/a&gt;&lt;span style="font-family: inherit;"&gt; &lt;/span&gt;&lt;span style="background-color: white; line-height: 19px;"&gt;&lt;span style="font-family: inherit;"&gt;&amp;nbsp;to decide what leverage I should &lt;/span&gt;&lt;span style="font-family: inherit;"&gt;use for my trading strategies. It turns out that this procedure is just as critical for the current crisis that &lt;span style="font-family: inherit;"&gt;began&lt;/span&gt; in August 2011. In fact, more than leverage-determinants, they can be used as the all-important variable that determines whether a certain strategy should be run at all. (What's the point of running a model that you think will lose money with low leverage?)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; font-family: inherit; line-height: 19px;"&gt;T&lt;/span&gt;&lt;span style="background-color: white; font-family: inherit; line-height: 19px;"&gt;here are now more than a few of these risk indicators to pick from. Besides the VIX and the TED, there are the&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; color: #25241e; font-family: inherit; font-size: 15px;"&gt;&lt;a href="http://www.stoxx.com/indices/index_information.html?symbol=V2TX" target="_blank"&gt;VSTOXX&lt;/a&gt; (EURO STOXX 50 Volatility&lt;/span&gt;&lt;span style="background-color: white; color: #25241e; font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;),&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #25241e; font-family: inherit; font-size: 15px;"&gt;the &lt;a href="http://www.bloomberg.com/apps/quote?ticker=JPMVXYG7:IND" target="_blank"&gt;VXY&lt;/a&gt; &lt;/span&gt;&lt;span style="background-color: white; color: #25241e; font-family: inherit; font-size: 15px;"&gt;(&lt;/span&gt;&lt;span style="background-color: white; color: #222222; font-family: inherit; line-height: 16px;"&gt;&lt;span style="font-family: inherit; font-size: small;"&gt;JPMorgan G7 Volatility Index), the &lt;a href="http://www.bloomberg.com/apps/quote?ticker=JPMVXYEM:IND" target="_blank"&gt;EM-VXY&lt;/a&gt; (JPMorgan Emerging Market Volatility Index), the ETF's&amp;nbsp;&lt;a href="http://finance.yahoo.com/q?s=ONN" target="_blank"&gt;ONN&lt;/a&gt;&amp;nbsp;and &lt;a href="http://finance.yahoo.com/q?s=OFF&amp;amp;ql=1" target="_blank"&gt;OFF&lt;/a&gt;, and probably many more that I haven't heard of yet.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: inherit;"&gt;&lt;span style="background-color: white; line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="line-height: 19px;"&gt;A lot of academic research has been done on whether we can devise "&lt;/span&gt;&lt;a href="http://epchan.blogspot.com/2008/05/machine-learning-regime-switching.html" style="line-height: 19px;" target="_blank"&gt;regime switching&lt;/a&gt;&lt;span style="line-height: 19px;"&gt;" models based on some complicated pattern-recognition algorithms to decide whether a market is in a certain "regime" which favors this or that particular model or parameter set. And often, these regime switching models rely on the recognition of some complicated set of patterns in the historical price series. Sorry to say, I have not found any of these complex regime switching model to have any real out-of-sample predictive power. On the other hand, my research shows that some of the aforementioned simple risk indicators will indeed prevent some trading models from falling off the cliff.&lt;/span&gt;&lt;br /&gt;&lt;span style="line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="line-height: 19px;"&gt;But which of these indicators are applicable to which model? This is not so obvious. For example, you might think that the EM-VXY would be an ideal leading indicator for Forex trading models that involve emerging market currencies, but I have found that it is only a contemporaneous (and thus useless) indicator to mine. Another example, I said during the 2008 financial crisis that VIX seems to be a useless contemporaneous indicator for equities trading models, but strangely, it is a good leading indicator for FX models. In contrast, the TED spread that everyone were obsessed about in 2008 shot up to over 300 bps then, but never went beyond 100 bps this time around. So really only rigorous backtesting can guide us here.&lt;/span&gt;&lt;br /&gt;&lt;span style="line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="line-height: 19px;"&gt;What risk indicators do you use? And have you really backtested their efficacies? Your comments would be very welcome here.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-8917675394690276478?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/hQ388yxqeA8/risk-indicators.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>19</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/12/risk-indicators.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-860618627764654049</guid><pubDate>Fri, 11 Nov 2011 13:31:00 +0000</pubDate><atom:updated>2011-11-11T08:31:13.563-05:00</atom:updated><title>Trading platform and EC2 revisited</title><description>Recently I opened a&amp;nbsp;&lt;a href="http://epchan.blogspot.com/2011/09/more-on-automated-trading-platforms.html"&gt;discussion&lt;/a&gt; on the various software platforms which allow the programmers among us to build trading strategies easily. Here is one other addition: &lt;a href="http://www.quantopian.com/"&gt;Quantopian&lt;/a&gt;. It is only in alpha stage, but I did get a preview of its features:&lt;br /&gt;&lt;br /&gt;1) You can code in Python, which is an easier language to learn than Java, but no less powerful. In fact, I know of a superb programmer who uses Python to backtest HF strategies.&lt;br /&gt;&lt;br /&gt;2) It is web-based, which means you can take advantage of collocation on a server much more stable than your own desktops. (For those who worry about the confidentiality of your strategies, the founder indicated to me that they can run an image of the software on an Amazon EC2 account that you owned so they won't have access to your codes. As for the confidentiality of codes residing on EC2 itself, please see below*.)&lt;br /&gt;&lt;br /&gt;3) It is event-driven (or for those who like the latest jargon: CEP-enabled), like all the Java API's that I discussed in the previous article.&lt;br /&gt;&lt;br /&gt;4) They have 1-min US equities data for backtesting. Tick-level data will be available soon.&lt;br /&gt;&lt;br /&gt;5) Toolboxes for common technical indicators, mathematical algorithms, etc. will be available soon.&lt;br /&gt;&lt;br /&gt;6) They will run a competition for trading models which makes it easier for independent traders to become trading&amp;nbsp;advisers&amp;nbsp;to others, or to raise money for their own funds.&lt;br /&gt;&lt;br /&gt;Unfortunately, live walk-forward testing is not yet available.&lt;br /&gt;&lt;br /&gt;* Some readers have wondered whether it is safe to run their trading models on Amazon's EC2. Won't Amazon's employees have access to their wildly profitable strategies? The answer is no: Amazon's &lt;a href="http://media.amazonwebservices.com/pdf/AWS_Security_Whitepaper.pdf"&gt;security policy&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, sans-serif;"&gt;&lt;b&gt;Guest Operating System: Virtual instances are completely controlled by the customer. Customers have full root access&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, sans-serif;"&gt;&lt;b&gt;or administrative control over accounts, services, and applications. AWS does not have any access rights to customer&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, sans-serif;"&gt;&lt;b&gt;instances and cannot log into the guest OS....&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, sans-serif; font-size: 13px;"&gt;&lt;span style="font-size: xx-small;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Thanks to a reader OL from France who provided me with this info. He also told me that:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, sans-serif; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;"&lt;/span&gt;So, I finally deployed my momentum strategy on a Linux instance of EC2 (which is free btw).&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, sans-serif;"&gt;I wrote it based on the java demo application provided by Interactive Brokers and some parts of Algoquant.&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, sans-serif;"&gt;So far, I use a European instance of EC2 which alas doesn't have the best latency to IB US servers (90 ms) but still better than my bedroom connection.&amp;nbsp;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, sans-serif;"&gt;A test ping from a US instance to IB US servers results in only 15 ms ..."&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: white; font-family: verdana, helvetica, sans-serif;"&gt;So there you go: Java+Algoquant+IB+EC2=profit.&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: xx-small;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-860618627764654049?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/_5749XjZEr4/trading-platform-and-ec2-revisited.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>59</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/11/trading-platform-and-ec2-revisited.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-6061194021576415109</guid><pubDate>Fri, 30 Sep 2011 16:22:00 +0000</pubDate><atom:updated>2011-09-30T12:22:30.864-04:00</atom:updated><title>Stop loss, profit cap, survivorship bias, and black swans</title><description>I have long espoused the view that we should not impose stop-losses on mean-reverting strategies, nor profit caps on momentum strategies. My view on the latter has not changed, but it has evolved on the former.&lt;br /&gt;&lt;br /&gt;My original reason for opposing stop-losses on mean-reverting strategy is this. Say you believe your specific price series is mean-reverting, and say you have entered into a long position when the price is low. Now, however, the price gets much lower, and you are suffering a large unrealized loss. Well, based on your mean-reverting belief, you should buy more instead of liquidating! Indeed, if you backtest the effect of stop-losses on mean-reverting strategies, you will almost inevitably find that they decrease the overall returns and even Sharpe ratios.&lt;br /&gt;&lt;br /&gt;But what this simplistic view ignored is 1) survivorship bias, and 2) black swan events. (Hat tip: Ben, who prompted me to consider these two issues.)&lt;br /&gt;&lt;br /&gt;1) We normally would only trade those price series with a mean-reverting strategy only if we see that the prices did eventually revert. No one would bother to trade those price series that used to mean-revert, but suddenly stopped doing so. But saying that stop-losses are harmful to mean-reverting strategies is ignoring the fact that some mean-reverting will stop working altogether and would not survive our strategies selection process.&lt;br /&gt;&lt;br /&gt;2) Let's define black swan events as those that did not occur in your backtest period. For example, let's say you never had a loss of 20% in a single day. So if you backtest a stop-loss of 20%, it will have no effect whatsoever on your backtest performance. However, no one can say for sure that it won't occur in the future. So if you or your investors simply cannot tolerate a 20% loss, you should impose this as a stop-loss. (After all, your brokerage has already imposed a stop-loss of 100% on you whether you like it or not.)&lt;br /&gt;&lt;br /&gt;We can in fact turn point 2) around when deciding what stop-loss to use: a stop-loss should be loose enough so that it should have no effect on the backtest performance, and of course tight enough so that it will not result in the demise of your trading career.&lt;br /&gt;&lt;br /&gt;There is also the issue of whether to use stop-loss on the intraday drawdown, or to use it on the multiple-day drawdown. I would argue that only intraday stop-loss is important to prevent a black-swan loss. In practice, when a strategy has a string of non-catastrophic losses occurring over multiple days, resulting in a large, unprecedented, drawdown, the trader will typically re-examine the strategy, taking into account this most recent performance and tweak the strategy so that it could theoretically be avoided. This is almost like a multi-day stop-loss strategy, as we stop an old strategy and start a new, modified, one. (Though the modified strategy might still recommend that you keep holding the current position!)&lt;br /&gt;&lt;br /&gt;Now why am I still holding dear to the principle that one should not impose profit-caps on momentum strategies? Why, the possibility of black swan events again! But this time, any black swan can only result in&amp;nbsp;unprecedented&amp;nbsp;one-day &lt;i&gt;gain &lt;/i&gt;instead of loss, since we should&amp;nbsp;&lt;a href="http://epchan.blogspot.com/2009/06/my-interview-stop-loss-and-principle-of.html"&gt;always&lt;/a&gt;&amp;nbsp;have stop-losses on momentum strategies. We certainly don't want to impose a profit-cap to rule out this possibility!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-6061194021576415109?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/BsJH97HyJRY/stop-loss-profit-cap-survivorship-bias.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>55</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/09/stop-loss-profit-cap-survivorship-bias.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-7031446748717729259</guid><pubDate>Sun, 18 Sep 2011 11:37:00 +0000</pubDate><atom:updated>2011-09-18T07:37:30.611-04:00</atom:updated><title>More on automated trading platforms</title><description>The ideal software platform for automating backtesting and executing your algorithmic trading strategies depends mainly on your level of programming expertise and your budget. If you are a competent programmer in, say, Java or C#, there is nothing to prevent you from utilizing the API offered (usually for free) by many brokerages to automate execution. And of course, it is also easy for you to write a separate backtesting program utilizing historical data. However, even for programmer-traders, there are a couple of inconveniences in developing these programs from scratch:&lt;br /&gt;&lt;br /&gt;A) Every time we change brokerages, we have to re-write parts of the low-level functions that utilize the brokerage's API;&lt;br /&gt;&lt;br /&gt;B) The automated trading program cannot be used to backtest unless a simulator is built to feed the historical data into the program as if they were live. To reduce bugs, it is better to have the same code that both backtests and trades live.&lt;br /&gt;&lt;br /&gt;This is where a number of open-source algorithmic trading development platforms come in. These platforms all assume that the user is a Java programmer. But they eliminate the hassles A) and B) above as they serve as the layer that shield you from the details of the brokerage's API, and let you go from backtesting to live trading mode with a figurative turn of a key. I have taken a tour of one such platforms &lt;a href="http://www.marketcetera.com/"&gt;Marketcetera&lt;/a&gt;, and will highlight some features here:&lt;br /&gt;&lt;br /&gt;1) It has a trading GUI with features similar to that of IB's TWS. This will be useful if your own brokerage's GUI is&amp;nbsp;dysfunctional.&lt;br /&gt;&lt;br /&gt;2) Complex Event Processing (CEP) is available as a module. CEP is essentially a way for you to easily specify what kind of market/pricing events should trigger a trading action. For e.g., "BUY if ask price is below 20-min moving average." Of course, you could have written this trading rule in a callback function, but to retrieve the 20-min MA on-demand could be quite messy. CEP solves that data retrieval problem for you by storing only those data that is needed by your registered trading rules.&lt;br /&gt;&lt;br /&gt;3) It can use either FIX or a brokerage's API for connection. Available brokerage connectors include Interactive Brokers and Lime Brokerage.&lt;br /&gt;&lt;br /&gt;4) It offers a news feed, which can be used by your trading algorithms to trigger trading actions if you use Java's string processing utilities to parse the stories properly.&lt;br /&gt;&lt;br /&gt;5)&amp;nbsp;The monthly cost ranges from $3,500 - $4,500.&lt;br /&gt;&lt;br /&gt;If Marketcera is beyond your budget, you can check out &lt;a href="http://code.google.com/p/algo-trader/"&gt;AlgoTrader&lt;/a&gt;. It has advantages 1)-3) but not 4) listed above, and is completely free. I invite readers who have tried these or other similar automated trading platforms to comment their user experience here.&lt;br /&gt;&lt;br /&gt;P.S. For those of us who use Matlab to automate our executions, a reader pointed out there is a new product &lt;a href="http://www.agoratron.com/our_products.html"&gt;MATTICK&lt;/a&gt;&amp;nbsp;that allows you to send order via the FIX protocol which should let us trade with a great variety of brokerages.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-7031446748717729259?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/obnB6i7w9fU/more-on-automated-trading-platforms.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>29</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/09/more-on-automated-trading-platforms.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-7595117820521039966</guid><pubDate>Sat, 23 Jul 2011 16:52:00 +0000</pubDate><atom:updated>2011-07-23T12:52:30.347-04:00</atom:updated><title>Sorry, your return is too high for us</title><description>I enjoyed reading Richard Wilson's &lt;a href="http://www.amazon.com/gp/product/0470520639/ref=as_li_qf_sp_asin_tl?ie=UTF8&amp;amp;tag=quantitativet-20&amp;amp;linkCode=as2&amp;amp;camp=217145&amp;amp;creative=399377&amp;amp;creativeASIN=0470520639"&gt;The Hedge Fund Book&lt;/a&gt;&amp;nbsp;(Richard also runs the &lt;a href="http://hedgefundblogger.com/"&gt;Hedge Fund Blogger&lt;/a&gt;&amp;nbsp;site). To be clear: it is purely marketing-oriented. It doesn't tell you how to find a successful trading strategy, but its focus is to tell you how to market your fund to investors once you have a successful strategy. To that end, it does a pretty good job in conveying what might be conventional wisdom to seasoned fund managers. (For e.g., don't bother to market to institutional investors if your AUM is less than $100M.) The book is filled with quite engaging interviews with fund managers, fund marketers, and other fund service providers (including our very own administrator Fund Associates). If Scott Patterson's &lt;a href="http://www.amazon.com/gp/product/0307453383/ref=as_li_tf_tl?ie=UTF8&amp;amp;tag=quantitativet-20&amp;amp;linkCode=as2&amp;amp;camp=217145&amp;amp;creative=399377&amp;amp;creativeASIN=0307453383"&gt;The Quants&lt;/a&gt;&amp;nbsp;is about the gods of hedge funds, this book is for and about the mortals.&lt;br /&gt;&lt;br /&gt;One paragraph in the book stood out: "I've worked closely on the third-party marketing and capital introduction/prime brokerage side of the business, and I often see both types of firms deny clients service [to funds with high returns and high risk] ... Nobody wants to be associated with a manager aiming at 30 percent a month returns."&lt;br /&gt;&lt;br /&gt;Maybe not &lt;i&gt;aiming at&lt;/i&gt;, but what's wrong with &lt;i&gt;achieving &lt;/i&gt;a 30 percent a month returns? I have actually met institutional investors who don't want to look at a fund that actually achieved double-digit monthly returns. Presumably that's because they believe that a high return automatically implies high risk, and also presumably a high leverage as well. &amp;nbsp;I would argue that there are 2 reasons not to completely dismiss such funds out-of-hand:&lt;br /&gt;&lt;br /&gt;1) Leverage should not be determined arbitrarily, but should be based on the minimum of what's dictated by half-Kelly (see my extensive discussions of Kelly formula on this blog and in my book) and what's dictated by the maximum single-day drawdown seen historically or in VaR simulations. And if this minimum still turns out to be higher than what most institutional investors are comfortable with, one should be bold enough to adopt it in your fund.&lt;br /&gt;&lt;br /&gt;2) As an investor, there is an easy way to control leverage and risk: just apply Constant Proportion Portfolio Insurance (a concept also discussed elsewhere on this blog). For example, if the fund manager tells you the fund employs a constant 10x leverage (as dictated by the risk analysis outlined in 1) and you are only comfortable with 5x leverage, just invest half your capital into the fund, and keep the other half as cash in your bank account! Going forward, if the fund loses money, your effective leverage would have decreased to below 5x. Say you invested $1M into the fund, and kept $1M in the bank. And say the fund lost $0.5M. Your total equity is now $1.5M, and the fund manager is supposed to trade a $0.5M*10=$5M portfolio. Your effective leverage is now only 3.33x, well within your tolerance. Now if instead, the fund made money, you can immediately withdraw some of the profits to keep your effective leverage at 5x. So, say the fund made $0.5M. Your equity is now $2.5M, and the fund manager is supposed to trade a $1.5M*10=$15M portfolio. If you don't withdraw, this would increase your effective leverage to 6x. But if you immediately withdraw $0.25M, then the fund manager will trade a $1.25M*10=$12.5M portfolio, giving you an effective leverage of the desired 5x.&lt;br /&gt;&lt;br /&gt;If you are an investor in hedge funds, please let us know what you think of this scheme in the comments section!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-7595117820521039966?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/akThLetsqmY/sorry-your-return-is-too-high-for-us.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>30</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/07/sorry-your-return-is-too-high-for-us.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-7054341098400875757</guid><pubDate>Mon, 18 Jul 2011 16:35:00 +0000</pubDate><atom:updated>2011-07-18T12:35:23.524-04:00</atom:updated><title>The social utility of hedge funds</title><description>There is an &lt;a href="http://www.newyorker.com/reporting/2011/07/25/110725fa_fact_cassidy#ixzz1STONOVrZ"&gt;article&lt;/a&gt; in the New Yorker magazine profiling Bridgewater Associates, the world's biggest global macro hedge fund. Inevitably, we come to the awkward question: "&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 15px;"&gt;If hedge-fund managers are playing a zero-sum game, what is their social utility?"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 15px;"&gt;I thought about this question a lot in the past, and&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 15px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 15px;"&gt;I used to agree with many others that the social utility of hedge funds, or trading in general, is to provide liquidity to the markets. And a good economic case can be made that the more liquid a market is, the higher the utility it is to all participants. However, based on recent experience of flash crash and other unfortunate mishaps, we find out that traders typically do &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 15px;"&gt;&lt;u&gt;not&lt;/u&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 15px;"&gt; provide liquidity when it is needed most! So this answer becomes quite unsatisfactory.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 15px;"&gt;In trying to come up with a better reply, I though it is curious that few people asked "What is the purpose of having a Department of Defence?" since wars between nations are typically also zero-sum games, yet we greatly honour those who serve in the armed forces (in contrast to our feelings for hedge fund managers).&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 15px;"&gt;To me, clearly the answer with the best moral justification is that, in both cases, there is great social utility in defending either your clients' comfortable retirement from financial meltdown (e.g. due to governmental or corporate mismanagement), or in defending your country from foreign aggression. More specifically, the purpose of hedge funds is to reduce &lt;b&gt;long-term&amp;nbsp;volatility &lt;/b&gt;in your clients' net worth. (I would like to say "reduce &lt;i&gt;risks &lt;/i&gt;to your clients' net worth", but that would be a bit too optimistic!)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 15px;"&gt;I emphasize long-term volatility, because of course trading generates a lot of daily or hourly volatility in your clients' equity. But I do not believe that such short-term volatility affects ones' life goals. On the other hand, a 3-or-more-year drawdown in a typical buy-and-hold portfolio can wreck havoc with many lives.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman', serif; font-size: 15px;"&gt;If one day, the markets become so quiescent that few hedge funds can generate higher Sharpe ratio than a buy-and-hold portfolio (as indeed seems to be the case with the US equities markets these days), then yes, most hedge fund managers should just quit, instead of hogging intellectual resources from our best universities.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-7054341098400875757?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/zrieWmpl-EA/social-utility-of-hedge-funds.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>13</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/07/social-utility-of-hedge-funds.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-6555880069015523039</guid><pubDate>Sun, 03 Jul 2011 13:21:00 +0000</pubDate><atom:updated>2011-07-03T09:21:55.306-04:00</atom:updated><title>Hedge fund transparency and "barometers"</title><description>Jim Liew of Alpha Quant Club recently posted an interesting &lt;a href="http://allaboutalpha.com/blog/2011/06/30/hedge-fund-indexes-learn-to-walk-upright-introducing-the-hedge-fund-barometer/"&gt;article&lt;/a&gt; about the increasing demand for transparency of hedge fund strategies by institutional investors, so much so that they are essentially willing to invest only in managed accounts with real-time trades and positions updates. This is, of course, bad for fund managers, since not only can the investor reverse-engineer the simpler strategies from such knowledge, they can also piggy-back on the trades, thus paying a much smaller portion of their profits as performance fee. One might be tempted to think that since the investors are going to reverse-engineer the product anyway, why not just make it as simple and as generic as possible, and charge a much lower fee than the usual 2-20 (which hopefully will attract a much larger investor base), so that the main value to the investor is just convenience and not the originality of the strategy?&lt;br /&gt;&lt;br /&gt;In fact,&amp;nbsp;Jim wants to do just that. He proposes to construct hedge fund "barometers", essentially prototypical hedge fund strategies running in managed accounts. This would work well if these barometers have large enough capacities such that the performance can hold up even when a large number of investors sign up. From the investors' point of view, this is a trade-off between investing in a truly outstanding, high-performance strategy while paying a large fee and losing "transparency", versus just investing in a generic strategy that may still outperform the broad market. For some institutional investors, this might just be the bargain they are looking for.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-6555880069015523039?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/SW7ADjx0sPM/hedge-fund-transparency-and-barometers.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>20</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/07/hedge-fund-transparency-and-barometers.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-2906231668663797558</guid><pubDate>Fri, 17 Jun 2011 13:53:00 +0000</pubDate><atom:updated>2011-06-17T10:35:37.942-04:00</atom:updated><title>When cointegration of a pair breaks down</title><description>I have written a lot in the past about the cointegration of ETF pairs, and how this condition can lead to profitable pairs trading. However, as every investment advisor could have told you, past cointegration is no guarantee of future cointegration. Often, cointegration for a pair breaks down for an extended period, maybe as long as a half a year or more. Naturally, trading this pair during this period is a losing proposition, but abandoning such a pair completely is also unsatisfactory, since cointegration often mysteriously returns after a while.&lt;br /&gt;&lt;br /&gt;A case in point is the ETF pair &lt;a href="http://epchan.blogspot.com/2006/11/gold-vs-gold-miners-another-arbitrage.html"&gt;GLD-GDX&lt;/a&gt;. When I first tested it in 2006, it was an excellent candidate for pair trading, and I not only traded it in my personal portfolio, but we traded it in our fund too. Unfortunately, it went haywire in 2008. We promptly abandoned it, only to see the strategy recovered sharply in 2007.&lt;br /&gt;&lt;br /&gt;So the big question is: how do we know whether the loss of cointegration is temporary, and how do we know when to resume trading a pair?&lt;br /&gt;&lt;br /&gt;To answer the first question, it is often necessary to go beyond the technicals, and delve into the fundamentals of pair. Take GLD-GDX as the example. When I taught my pairs trading workshop in South Africa, several &amp;nbsp;portfolio managers in attendance told me that there are 2 reasons why gold spot price diverged from gold miners' stock prices. Firstly, due to the sharp increase in oil prices during the first half of 2008, it costs the gold miners a lot more in energy to extract the gold from the ground, hence the gold miners' income lags behind the rise in gold prices. Secondly, many gold miners hedge their exposure to fluctuating gold prices with derivatives. Hence when gold price rise beyond a certain limit, the gold miners cease to benefit from this rise. Recently, the Economist magazine published an &lt;a href="http://www.economist.com/node/18774624"&gt;article&lt;/a&gt; that essentially confirms this view. But further confirmation can be gained by introducing oil (future) price into the cointegration equation. If you do that, and if you trade this triplet of GLD-GDX-USO, you will find that it is profitable throughout the entire period from 2006-2010. If you find trading a triplet too complicated, you can at least backtest a trading filter such that you will cease to trade GLD-GDX whenever USO goes beyond (above, and maybe below too) a certain band. If you have done all these backtests, you will have a plan in place to tell you when to resume trading this pair. But even if you haven't done this backtest, and you find that you need to stop trading a pair because of cumulating losses, you should at least continue &lt;i&gt;paper &lt;/i&gt;trading it to see when it is turning around!&lt;br /&gt;&lt;br /&gt;(By the way, if you think trading ETF pairs offers too low returns due to the low leverage allowed, consider the single stock futures on ETF's trading on the OneChicago exchange. Certainly the future on GDX is available there, while you might just trade the futures GC and CL directly on CME. There is, of course, the usual caveat that applies to futures pairs trading: the switch from contango to backwardation and vice versa can ruin many a pairs-trading strategy, even if the spot prices remain cointegrating. But that's a story for another time.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-2906231668663797558?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/QATqKcj5sIo/when-cointegration-of-pair-breaks-down.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>73</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/06/when-cointegration-of-pair-breaks-down.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-3285163410460162756</guid><pubDate>Thu, 02 Jun 2011 15:05:00 +0000</pubDate><atom:updated>2011-06-02T11:05:40.126-04:00</atom:updated><title>Even more on news driven trading</title><description>News driven trading is even more in vogue today than when I last &lt;a href="http://epchan.blogspot.com/2007/07/more-on-news-driven-trading.html"&gt;mentioned&lt;/a&gt; it, judging from the increasing number of vendors (e.g. Ravenpack, Sensobeat, Recorded Future, etc.) and researchers pitching their wares. Not only are traditional financial and economic news deemed important, but researchers have found even blog posts (at least those on &lt;a href="http://seekingalpha.com/article/263429-seeking-alpha-as-a-predictor-of-stock-movements-and-earnings-surprises"&gt;Seeking Alpha&lt;/a&gt;) and &lt;a href="http://www.finalternatives.com/node/16666"&gt;Twitter&lt;/a&gt;&amp;nbsp;(Hat tip: Satya and William) to be predictive of stock prices.&lt;br /&gt;&lt;br /&gt;One key ingredient to success in this type of trading is of course the ability to gain access to breaking news ahead of other traders. On the macroeconomic news front, the MIT Billion Prices project has spun off a company called PriceStats to deliver daily consumer product price index to subscribers. PriceStats compiles this index by continuously scanning online retailers' websites, and hopefully provides a preview of the official CPI numbers. Whether this is useful for futures and currencies traders is of course subject to their rigorous backtests, though the &lt;a href="http://bpp.mit.edu/usa/daily-price-indexes/?country=USA"&gt;chart&lt;/a&gt; displayed on their website does suggest that the daily price index is a leading indicator of the CPI.&lt;br /&gt;&lt;br /&gt;There is an important caveat to using news trading: not all news are equal. So another key ingredient to success is to carefully differentiate between the different types of news and backtest their predictive abilities separately. For example, I recall some research has indicated that an analyst downgrade of a stock from a "hold" to a "sell" rating has more impact than from "buy" to "hold" rating.&lt;br /&gt;&lt;br /&gt;My own experience with news driven trading is that for all this trouble, the trading opportunities are relatively few compared to pure price driven trading, the consistency of success is low, and finally the profitability lifespan is short. If you have better experience, do share it with us.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-3285163410460162756?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/d46QcZ0o20M/even-more-on-news-driven-trading.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>10</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/06/even-more-on-news-driven-trading.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-1082883065374923520</guid><pubDate>Tue, 17 May 2011 12:11:00 +0000</pubDate><atom:updated>2011-05-17T08:11:50.911-04:00</atom:updated><title>A platform, a shareware site, and some courses for quant traders</title><description>I mentioned in various places that &lt;a href="http://www.alphacet.com/"&gt;Alphacet Discovery&lt;/a&gt; is an industrial strength integrated platform for backtesting and implementing quantitative trading strategies. But of course, it has many competitors, one of which is a relatively new company called &lt;a href="http://www.deltixlab.com/"&gt;Deltix&lt;/a&gt;. Deltix has the distinction of offering a full Matlab interface, which is convenient if you are already a Matlab programmer. (Full disclosure: I previously have a consulting relationship with Alphacet, but have none with Deltix.)&lt;br /&gt;&lt;br /&gt;There is also a new website for sharing trading strategy software called &lt;a href="http://quantonomics.com/"&gt;Quantonomics&lt;/a&gt;. In the words of its founder Joshua, the goal is to "connect programmers and stock traders". Joshua also told me that he will create a custom application on his site for any of you readers as a gift!&lt;br /&gt;&lt;br /&gt;A colleague of mine in Singapore, Dr. Li Haksun, who was previously a quant with UBS and BNP Paribas, is offering a &lt;a href="http://www.ntusgxcfe.ntu.edu.sg/ATC-TSD/ATC-TSD1.html"&gt;course on quantitative trading strategy&lt;/a&gt;&amp;nbsp;in July. It covers more theoretical concepts than my own courses: e.g. hidden markov model, stochastic control, and Kalman filters are included.&lt;br /&gt;&lt;br /&gt;And of course, my own workshops on &lt;a href="http://www.technicalanalyst.co.uk/training/backtestingEC.htm"&gt;Backtesting&lt;/a&gt; and &lt;a href="http://www.technicalanalyst.co.uk/training/statarb.htm"&gt;Statistical Arbitrage&lt;/a&gt; will be offered again in London next week.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-1082883065374923520?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/n_VIZKigYH8/platform-shareware-site-and-some.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>9</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/05/platform-shareware-site-and-some.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-5422248599899251817</guid><pubDate>Tue, 10 May 2011 19:32:00 +0000</pubDate><atom:updated>2011-05-10T15:32:51.759-04:00</atom:updated><title>Time-of-day effects in FX trading</title><description>As I mentioned in a previous &lt;a href="http://epchan.blogspot.com/2011/03/momentum-strategies.html"&gt;post&lt;/a&gt;, one of the main ingredients of success in constructing a profitable momentum trading strategy in Forex (and futures) is to pay attention to the entry and exit times. I haven't seen any good momentum strategy that has "time-translation invariance",&lt;i&gt; i.e. &lt;/i&gt;works without reference to a fixed time of the day. The fixed time can refer to a benchmark level of the market (e.g. the previous close), or it can be the entry or exit time. &amp;nbsp;(This is in contrast to mean-reverting strategies where the reference price can often be just a moving average.)&amp;nbsp;A&amp;nbsp;&lt;a href="http://www.snb.ch/n/mmr/reference/working_paper_2011_04/source"&gt;recent research paper&lt;/a&gt;&amp;nbsp;(Hat tip: William) points to another example of such time-of-day effects in FX markets: a currency typically depreciates during its local trading hours.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-5422248599899251817?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/VZzzUSZDYIo/time-of-day-effects-in-fx-trading.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>10</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/05/time-of-day-effects-in-fx-trading.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-9089434256301340371</guid><pubDate>Sat, 23 Apr 2011 14:14:00 +0000</pubDate><atom:updated>2011-04-23T10:14:08.443-04:00</atom:updated><title>The many facets of linear regression</title><description>Many years ago, a portfolio manager asked me in a phone interview: "Do you believe that linear or nonlinear models are more powerful in building trading models?" Being a babe-in-the-woods, I did not hesitate in answering "Nonlinear!" Little did I know that this is &lt;i&gt;the&lt;/i&gt; question that separate the men from the boys in the realm of quantitative trading. Subsequent experiences showed me that nonlinear models have mostly&amp;nbsp;been&amp;nbsp;unmitigated disasters in terms of trading profits. As Max Dama said in a recent excellent &lt;a href="http://www.maxdama.com/?p=414"&gt;article&lt;/a&gt; on linear regression: "&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;...&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;when the signal to noise ratio is .05:1, ... there’s not much point in worrying about [higher order effects]". One is almost certain to overfit a nonlinear model to non-recurring noise.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;Until recently, I have used linear regression mainly in finding hedge ratios between two instruments in pair trading, or more generally in finding the weightings (in number of shares) of individual stocks in a basket in some form of index arbitrage. Of course, others have found linear algebra useful in principal component analysis and more generally factor analysis as well. But thanks to a number of commenters on this blog as well as various private correspondents, I have begun to apply linear regression more directly in trading models.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;One way to directly apply linear regression to trading is to use it in place of moving averages. Using moving average implicitly assumes that there is no trend in a price series, that the mean of the prices will remain the same. This of course may not be true. So using linear regression to project the current equilibrium price is sometimes more accurate than just setting it equal to a moving average. I have found that in some cases, this equilibrium price results in better mean-reverting models: e.g. short an instrument when its current price is way above the equilibrium price.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;Of course, one can also use linear regression in a similar way in momentum models: e.g. if the current price is way above the equilibrium price, consider this a "breakout" and buy the instrument.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;Max in his article referenced above also pointed out a more sophisticated version of linear regression, commonly called "weighted least squares regression" (WLS). WLS is to linear regression what exponential moving average (EMA) is to simple moving average (SMA): it gives more weights to recent data points. Indeed I have found that EMA often gives better results than SMA in trading. However, so far I have not found WLS to be better than simple least squares. Max also referenced an article which establishes the equivalence between weighted least squares and Kalman filter. Now Kalman filter is a linear model that is very popular among quantitative traders. The nice feature about Kalman filter is that there is very few free parameters: the model will adapt itself to the means and covariances of the input time series gradually. And furthermore, it can do so one-step at a time&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;(or in technical jargon, using an "online" algorithm)&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;: i.e., there is no need to separate the data into "training" and "test" sets, and no need to define a "lookback" period unlike moving averages. It makes use of "hidden states" much like Hidden Markov Models (HHM), but unlike HHM, Kalman filter is faithfully linear.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;I haven't used Kalman filter much myself, but I would welcome any comments from our readers on its usage. Also,&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;if you know of other ways to use linear regression in trading, do share with us here!&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 21px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-9089434256301340371?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/8t8yKMwSmVk/many-facets-of-linear-regression.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>32</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/04/many-facets-of-linear-regression.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-2063823706876656711</guid><pubDate>Fri, 11 Mar 2011 19:21:00 +0000</pubDate><atom:updated>2011-03-11T14:22:38.717-05:00</atom:updated><title>Momentum strategies in futures and forex</title><description>I have long found that it is easier to find good (i.e. high Sharpe ratio) mean-reverting strategies than good momentum strategies. Partly, that is because I was mainly a stock trader instead of a futures/currencies trader, and individual stocks mean-revert most of the time. There are exceptions, such as after special corporate events such as earnings announcements, and I have tested momentum strategies based on these events. But the success of even these event-driven strategies has been uneven, especially since more traders become aware of them.&lt;br /&gt;&lt;br /&gt;Now that I am focusing more on trading futures and currencies, I have gradually been introduced to the world of momentum investing. There is a good book in this area that deserves to be better known: Joe Duffy's &lt;a href="http://www.amazon.com/gp/product/098238971X/ref=as_li_tf_tl?ie=UTF8&amp;amp;tag=quantitativet-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=098238971X"&gt;The Ultimate Trading Robot&lt;/a&gt;,&amp;nbsp;which is an almost step-by-step guide to constructing futures trending strategies that rely on prices alone.&amp;nbsp;Another example would be the London Breakout strategy mentioned by our reader Bernd in the comments &lt;a href="http://www.blogger.com/comment.g?blogID=35364652&amp;amp;postID=389093680987686968"&gt;here&lt;/a&gt;. After studying these examples, I realized why my previous, rather desultory, search for momentum strategies in the futures and FX markets had been in vain: the overnight gap in these markets seems critical. For futures, the overnight gap is obvious, but in the case of the London Breakout strategy, for example, the trader has the task defining for herself what the optimal closing and opening times are in order to compute the gap. Intraday trend without an overnight breakout does not seem persistent enough to be traded profitably. I also wonder if there is a more elegant (i.e. mathematical) way to quantify such breakout&amp;nbsp;phenomena&amp;nbsp;without using the traditional technical indicators.&lt;br /&gt;&lt;br /&gt;If you know of ideas for good momentum strategies, you are most welcome to share and discuss them here!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-2063823706876656711?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/YZTneDBWArw/momentum-strategies.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>62</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/03/momentum-strategies.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-389093680987686968</guid><pubDate>Tue, 25 Jan 2011 19:31:00 +0000</pubDate><atom:updated>2011-01-25T14:31:01.876-05:00</atom:updated><title>High frequency trading ideas</title><description>I just started reading Larry Harris' book "&lt;a href="http://www.amazon.com/dp/0195144708?tag=quantitativet-20&amp;amp;camp=14573&amp;amp;creative=327641&amp;amp;linkCode=as1&amp;amp;creativeASIN=0195144708&amp;amp;adid=0D3KY6CFQFQZ1PS6KVYR&amp;amp;"&gt;Trading and Exchanges&lt;/a&gt;" (thanks to &lt;a href="http://www.maxdama.com/"&gt;Max Dama&lt;/a&gt;'s glowing book review) and already a couple of potential high frequency trading techniques stood out:&lt;br /&gt;&lt;br /&gt;"&lt;b&gt;Quote matching&lt;/b&gt;" - a technique whereby front-runners place a limit buy order just a cent (for stocks) higher than the best bid price. If the order is filled, they then place a limit sell order just a cent lower than the best ask. Assuming the best bid-ask quotes don't move, the worst they can do is to lose 1 cent&amp;nbsp;by selling the share back to the best bidder, while the most profit they can make is the bid-ask spread&amp;nbsp;plus rebates for providing liquidity&amp;nbsp;minus 2 cents by having the sell long limit order filled. This could work out quite profitably if the bid-ask spread is wide. But of course, the best bid-ask do change constantly, so front-runners would need to cancel and correct their limit orders constantly, and the optimal algorithm for doing this could get quite complicated. Meanwhile, if you are a bona fide liquidity provider, you would have to avoid providing this free option to the front-runners by constantly monitoring who is in front of you. As usual, this chess game can quickly degenerate into an HFT arms race.&lt;br /&gt;&lt;br /&gt;"&lt;b&gt;Manipulation of stop orders&lt;/b&gt;" - a.k.a. "gunning the market", a technique whereby the market gunners buy aggressively so as to trigger large buy stop orders that they believe are in place at a higher price. When these buy stop orders are filled, the prices are driven higher still, and these manipulators then sell their position profitably.&lt;br /&gt;&lt;br /&gt;One of my old momentum strategies was a victim of these market gunners, and after that sad experience I refused to use stop orders any more, at least for stocks. However, here is a question for our knowledgeable readers: can other traders actually see what stop orders there are on an order book (whether for stocks, futures, or Forex markets)? And if so, would a trading robot that simulates stop orders by sending out buy market orders when the stop price is touched work better than manually placing a buy stop order on the order book?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-389093680987686968?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/LhCx1jOy8EM/high-frequency-trading-ideas.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>52</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/01/high-frequency-trading-ideas.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-1067263832054806475</guid><pubDate>Wed, 05 Jan 2011 16:57:00 +0000</pubDate><atom:updated>2011-01-05T15:18:32.615-05:00</atom:updated><title>Shorting the VIX calendar spread</title><description>Lately there were a few interesting discussions in the&amp;nbsp;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;blogosphere&amp;nbsp;&lt;/span&gt;on the profitability of shorting the VXX-VXZ spread. (See &lt;a href="http://matlab-trading.blogspot.com/2010/12/vix-buy-hold-strategy.html"&gt;Quantum Blog&lt;/a&gt; and &lt;a href="http://speculators-ball.blogspot.com/2010/12/is-vxx-due-for-bounce.html"&gt;The Speculator's Ball&lt;/a&gt;.) For background, VXX is an ETN that tracks the first and second month of the VIX future, which in turn tracks the VIX volatility index, which in turn tracks the volatility of SPX. VXZ is the ETN that tracks the 4th - 7th months of the VIX future. During the period 2009-2010, there were 2 different reasons why shorting this "calendar spread" was profitable:&lt;br /&gt;&lt;br /&gt;1) The VIX futures were/are in contango: i.e. the back months' futures are more expensive than the front months'.&lt;br /&gt;2) The volatility of SPX was decreasing with time.&lt;br /&gt;&lt;br /&gt;However, some traders seem to think that either one of these conditions is enough to ensure the profitability of shorting a calendar spread. &amp;nbsp;It is not. (Otherwise, life as a futures trader would be too easy!)&lt;br /&gt;&lt;br /&gt;To see this, let's resort to a simplistic linear approximation to a model of futures prices. From &lt;a href="http://www.amazon.com/gp/product/0132164949?ie=UTF8&amp;amp;tag=quantitativet-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0132164949"&gt;John Hull&lt;/a&gt;'s book on derivatives, section 3.12, the price of &amp;nbsp;a future which matures at time T is&lt;br /&gt;&lt;br /&gt;F(t, T)=E(S&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;T&lt;/span&gt;)exp(c(T-t)),&lt;br /&gt;&lt;br /&gt;where&amp;nbsp;E(S&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;T&lt;/span&gt;) is the expected value of the spot price at maturity, c is a constant, and t is the current time. If the futures are in contango, then c &amp;gt; 0.&lt;br /&gt;&lt;br /&gt;If we assume that abs(c) is small, and T-t is also small (i.e. not too far from maturity), and that the expected value of the spot price changes slowly, we can linearize this formula as&lt;br /&gt;&lt;br /&gt;F=(a+b(T-t))*(1+c(T-t))&lt;br /&gt;&lt;br /&gt;If the market expects the future spot price to increase, then b &amp;gt; 0.&lt;br /&gt;&lt;br /&gt;After a few simple algebraic steps, you can verify that the calendar spread's price is proportional to&lt;br /&gt;&lt;br /&gt;F(t, T&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;1&lt;/span&gt;)-F(t, T&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;2&lt;/span&gt;)&amp;nbsp;~ bct&lt;br /&gt;&lt;br /&gt;where T&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;1&lt;/span&gt; &amp;lt; T&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;2 &lt;/span&gt;(i.e. F(t, T&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;1&lt;/span&gt;) is the front month's price, and&amp;nbsp;F(t, T&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;2&lt;/span&gt;) the back month's).&lt;br /&gt;&lt;br /&gt;This is a satisfyingly illustrative result. It says that shorting this calendar spread will be profitable if&lt;br /&gt;&lt;br /&gt;A) futures are in contango &lt;i&gt;and &lt;/i&gt;the expected spot price in the future is decreasing; or else&lt;br /&gt;B) futures are in backwardation &lt;i&gt;and&lt;/i&gt; the expected spot price in the future is increasing.&lt;br /&gt;&lt;br /&gt;So what is the situation today? Will it still be profitable to short this spread? As our fellow bloggers have pointed out, VIX futures are still in contango, but the market is expecting volatility to increase in the future over the last month or so. So this may no longer be a profitable trade anymore.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-1067263832054806475?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/gju8ABgbD3E/shorting-vix-calendar-spread.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>32</thr:total><feedburner:origLink>http://epchan.blogspot.com/2011/01/shorting-vix-calendar-spread.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-8273714220487768486</guid><pubDate>Thu, 18 Nov 2010 16:48:00 +0000</pubDate><atom:updated>2010-11-18T11:48:15.104-05:00</atom:updated><title>Columbia Workshop on Financial Engineering</title><description>Our readers in New York may be interested in &lt;a href="http://www.cap.columbia.edu/announcements/CAP_Workshop_10/index.html"&gt;this finance workshop&lt;/a&gt; at Columbia University tomorrow.&lt;br /&gt;I am particularly interested in the talk by Kent Daniel on "Characterizing Momentum", and by Doug Borden (of Knight Equity Markets) on "Stochastic Control Theory in High-Frequency Trading". Doug's talk can be downloaded &lt;a href="http://www.ieor.columbia.edu/pdf-files/Borden_D_FESeminar_Sp10.pdf"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;h2&gt;&lt;br /&gt;&lt;/h2&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-8273714220487768486?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/2g7NthZo9BE/columbia-workshop-on-financial.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>6</thr:total><feedburner:origLink>http://epchan.blogspot.com/2010/11/columbia-workshop-on-financial.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-972618319387728271</guid><pubDate>Sun, 10 Oct 2010 15:33:00 +0000</pubDate><atom:updated>2010-10-10T11:33:23.698-04:00</atom:updated><title>Data mining and artificial intelligence update</title><description>Long time readers of this blog know that I haven't found &lt;a href="http://epchan.blogspot.com/2006/12/artificial-intelligence-and-stock.html"&gt;data mining or artificial intelligence&lt;/a&gt; techniques to be very useful for my own trading, for they typically overfit to non-recurring past patterns. (Not surprisingly, they are much more useful for &lt;a href="http://www.nytimes.com/2010/10/10/science/10google.html"&gt;driverless cars&lt;/a&gt;.) Nevertheless, one must keep an open mind and continues to keep tabs on new developments in this field.&lt;br /&gt;&lt;br /&gt;To this end, &lt;a href="http://www.eecs.berkeley.edu/Pubs/TechRpts/2010/EECS-2010-63.pdf"&gt;here&lt;/a&gt; is a new paper written by an engineering student at UC Berkeley which uses "support&lt;br /&gt;vector machine" together with 10 simple technical indicators to predict the SPX index, purportedly with 60% accuracy. If one includes an additional indicator which measures the number of news articles on a stock in the previous day, then the accuracy supposedly goes up to 70%.&lt;br /&gt;&lt;br /&gt;I did not have the chance to reproduce and verify this result yet, but I invite you to try it out and share your findings here. If you do so, you may find this new data mining product called &lt;a href="http://www.11antsanalytics.com/"&gt;11Ants Analytics&lt;/a&gt; useful. It is an Excel-based software that includes &lt;a href="http://www.11antsanalytics.com/aboutus/uth.aspx"&gt;11 machine learning algorithms&lt;/a&gt; including the aforementioned support vector machines. It also includes decision trees which are sometimes quite useful in automatically generating a small set of trading rules from an input set of technical indicators. (Whether those rules remain profitable in the future is another question!) If you have tried this product, I would also appreciate your comments here.&lt;br /&gt;&lt;br /&gt;(If you are a die-hard MATLAB fan, support vector machines are available in their Bioinformatics Toolbox, and classification and decision trees in their Statistics Toolbox.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-972618319387728271?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/AvzQ1Ns2a04/data-mining-and-artificial-intelligence.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>51</thr:total><feedburner:origLink>http://epchan.blogspot.com/2010/10/data-mining-and-artificial-intelligence.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-6216734132052011006</guid><pubDate>Sat, 02 Oct 2010 18:06:00 +0000</pubDate><atom:updated>2010-10-02T14:09:03.710-04:00</atom:updated><title>The main virtue of buying options</title><description>I realized that I have omitted the most obvious virtue of trading options instead of stocks in my last post: the much more attractive reward-risk ratio for options.&lt;br /&gt;&lt;br /&gt;Suppose your stock strategy generated a buy signal. You can either buy the stock now, or you can buy an ATM call. If you buy the stock, you are of course benefiting from 100% of the upside potential of the stock price movement, but you are similarly exposed to 100% of the downside risk. Indeed you can lose the entire market value of the stock. If you buy the call, you will benefit from &amp;gt; 50% of the upside potential of the stock price, assuming that your holding period is so short that the time value will not dissipate much. As the stock price rises, so does your delta. (It increases from 0.5 to 1.) But what about the downside risk? All you can lose is the option premium, usually &amp;lt;&amp;lt; 50% of the market value of the stock.&lt;br /&gt;&lt;br /&gt;In other words, while one may be tempted to hedge a large stock position with stock index futures, there is no need to hedge an equivalent call option position. This should simplify your strategy implementation and reduce risk management costs (i.e. the probable loss on your short futures position).&lt;br /&gt;&lt;br /&gt;Given that I am a short-term trader anyway, I can't figure out why I have been trading stocks instead of options all these years! (Aside from the caveats detailed in the previous post.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-6216734132052011006?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/Ho054uocUXY/main-virtue-of-buying-options.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>22</thr:total><feedburner:origLink>http://epchan.blogspot.com/2010/10/main-virtue-of-buying-options.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-35364652.post-8536206933715179379</guid><pubDate>Sat, 25 Sep 2010 15:26:00 +0000</pubDate><atom:updated>2010-09-25T11:26:56.131-04:00</atom:updated><title>Implementing stock strategies using options</title><description>There are many stock trading strategies that are quite attractive in terms of Sharpe ratios, but not very attractive in terms of returns. (Pairs trading comes to mind. But in general, any market neutral strategy suffers from this problem.)&amp;nbsp; Certainly, one cannot feed a family with annualized returns in the single or low double digits, unless one already has millions of dollars of capital. One way to solve this dilemma is of course to join a proprietary trading group, where we would have access to perhaps x30 leverage. Another way is to implement a stock trading strategy using options instead, though there are a sizable number of issues to consider. (I recently brushed up on my options know-how by reading the popular "&lt;a href="http://www.amazon.com/dp/0735201978?tag=quantitativet-20&amp;amp;camp=14573&amp;amp;creative=327641&amp;amp;linkCode=as1&amp;amp;creativeASIN=0735201978&amp;amp;adid=0Q0NBNQ5ETXJS894MZPP&amp;amp;"&gt;Options as a Strategic Investment&lt;/a&gt;".)&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Using options will allow you to increase your leverage beyond the Reg T x2 leverage (or even the day trading x4 leverage) only if you buy options only, but not selling them. For example, to implement a pairs trading strategy on 2 different stocks, you would have to buy call options on the long side, and &lt;i&gt;buy &lt;/i&gt;put options on the short side (but not sell call options). Otherwise the margin requirement for selling calls is as onerous as shorting the underlying stock itself.&lt;/li&gt;&lt;li&gt; The effective leverage is computed by multiplying the &lt;i&gt;delta &lt;/i&gt;of the option by the underlying stock price divided by the option premium. If you buy an out-of-money (OTM) option, the delta will be small (smaller than 0.5), but the option premium is small also. Vice versa for an in-the-money (ITM) option. So you would have to find the optimal strike price so that the effective leverage is maximized. I personally choose to buy an at-the-money (ATM) call or slightly ITM call without actually computing the optimized strike, but perhaps you have reached a different conclusion?&lt;/li&gt;&lt;li&gt;Naturally, the shorter the time-to-expiration, the cheaper the option and higher the effective leverage. Additionally, for ITM options, their deltas increase as we get closer to expiration, which also contributes to higher effective leverage. However, the time-to-expiration must of course be longer than the expected holding period of your position, otherwise you would incur the transaction cost of rolling over to the further-month options. &lt;/li&gt;&lt;li&gt;The discussion of finding the right strike price based on its delta is moot if your brokerage's API does not provide you with delta for your automated trading system. In theory, Interactive Brokers's API provide deltas for whole options chains, and &lt;a href="http://exchangeapi.com/"&gt;quant2ib&lt;/a&gt;'s MATLAB API will pass these on to your MATLAB exeuction program too. However, I have not been successful in retrieving deltas using quant2ib's API. If you have encountered a similar problem, and perhaps have found the reason/cure for this, please let me know. For now, I am reduced to assuming that all my near ATM calls for different stocks have the same delta, and I increase this common value from 0.5 to close to 1 as time passes.&lt;/li&gt;&lt;li&gt;Options don't have MOO, LOO, MOC or LOC order types. If one uses market orders to buy at the open or close, one would incur significant transaction costs due to the much wider bid-ask spread compared to stocks. I try to use limit orders on options orders as much as possible.&lt;/li&gt;&lt;/ol&gt;If you have used options to implement stock trading strategies, and have experiences with these or other issues, please do share them here.&lt;br /&gt;&lt;br /&gt;====&lt;br /&gt;&lt;br /&gt;Reminder: my next &lt;a href="http://www.technicalanalyst.co.uk/training/pairs-trading.htm"&gt;pairs trading workshop&lt;/a&gt; will take place in New York on October 26-27th.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/35364652-8536206933715179379?l=epchan.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/QuantitativeTrading/~3/XLn3g6sS2IQ/implementing-stock-strategies-using.html</link><author>noreply@blogger.com (Ernie Chan)</author><thr:total>33</thr:total><feedburner:origLink>http://epchan.blogspot.com/2010/09/implementing-stock-strategies-using.html</feedburner:origLink></item></channel></rss>

