Icon

TRADING THE ODDS

Icon

A quantitative approach to profit in the US equity and futures markets, trading the markets like professional card counters are playing Blackjack or expert poker players are playing Poker. The key is to have the odds on your side and bet accordingly, knowing what, when, where, why and how much you bet on each trade or wager.


By proceeding beyond this point and/or using the information presented on this site(s) the reader is deemed to have read, understood and fully and without reservation accepted the terms and conditions laid down in the Disclaimer. The information, analysis and commentary on this site is provided for statistical and informational purposes only. Nothing herein should be interpreted or regarded as personalized investment advice or to state or imply that past results are an indication of future performance. The author of this website is not a licensed financial advisor and will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on the content of this website(s). Under no circumstances does this information represent a recommendation or advice to buy, sell or hold any security.
( Data courtesy of MetaStock http://www.equis.com/ )

XLE vs. XLU on August 17, 2010

On a Twitter update on Monday, August 16 (see the Twitter Feed box on the right), I alluded to a favorable pairs trading (buying) opportunity in XLE (Energy Select Sector SPDR) vs. XLU (Utilities Select Sector SPDR), meaning long XLE and selling short XLU in equal money amounts, targeting a higher close the next day (out-performance of the XLE in comparison to the XLU on close  – or during the session – of Tuesday, August 17). The opportunity might still arise at or shortly after the open on Tuesday’s session.

Below you’ll find the reason why.

Table I below shows the performance metrics (since 01/01/2002) for a pairs trade XLE (Energy Select Sector SPDR) vs. XLU (Utilities Select Sector SPDR), assumed one would’ve bought the pair (is equivalent to buying the first and selling short the second ETF in equal money amounts (number of shares in each ETF = 100% net asset value / share price)) on close of a session when

  • Strat. #1: XLE closed lower on five consecutive sessions,
  • Strat. #2: the pairs’s (the ratio of the ETF’s closing prices) Bollinger Bands %B with 4-days EMA and 1 standard deviation closed below -0.70 ,
  • Strat. #3: XLE closed lower on five consecutive sessions and under-performed the XLU on those five consecutive sessions as well,
  • Strat. #4: XLE closed lower on five consecutive sessions , and the 4-day CCI (Commodity Channel Index) of the pair (the ratio of the ETF’s closing prices) closed below -100.

XLE vs. XLU (Benchmark) represents a buy-and-hold approach (assumed one would always be long the XLE and short the XLU in equal money amounts).

Especially setup #3 and #4 offer excellent odds (probabilities of a winning trade greater than 75%, and a superior median winning trade of gt. +1.20% in comparison to a median losing trade of -0.36%). The only shortcoming is the fact that the number of occurrences (especially with respect to setups #3 and #4) is way too small to read anything statistically significant into it, but nonetheless worth mentioning.

Successful trading,
Frank

Disclaimer: Long XLE and short XLU at time of writing.

Remarks: Due to their conceptual scope – and if not explicitely stated otherwise -, all models/setups/strategies do not account for slippage, fees and transaction costs, do not account for return on cash, do not use position sizing (e.g. Kelly, optimal f) – they’re always ‘all in-, do not use leverage (e.g. leveraged ETFs) - but a marginable account is mandatory -, do not utilize any kind of abnormal market filter (e.g. during market phases with extremely elevated volatility) , do not use intraday buy/sell stops (end-of-day prices only), and models/setups/strategies are not ‘adaptive‘ (do not adjust to the ongoing changes in market conditions like bull and bear markets).

________________________________

If you might want to be instantly notified about what’s happening in the markets and at TRADING THE ODDS, I encourage you to subscribe to my RSS Feed or Email Feed, and (or) follow me on Twitter.

xx

The information on this site is provided for statistical and informational purposes only. Nothing herein should be interpreted or regarded as personalized investment advice or to state or imply that past results are an indication of future performance. The author of this website is not a licensed financial advisor and will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on the content of this website(s). Under no circumstances does this information represent an advice or recommendation to buy, sell or hold any security.

Add to Technorati Favorites


Pairs Trading Part II – SPY vs. RTH

One of the most interesting findings dealt with in a previous posting (Pairs Trading (ETFs) was the RTHs (Retail HOLDR.) salient feature of being a favorable candidate for a potential mean-reversion strategy in conjunction with a major market or sector ETF. With respect to the primarily method used for cointegration (the augmented Dickey-Fuller test), the RTH showed a probability better than 90% of being cointegrated with the IWM (Russel 2000) and the SMH (Semiconductor HOLDR.), and missed being cointegrated with SPY and QQQQ by a hairbreadth only (two price series are called cointegrated if the pair has a consistent mean and standard deviation, both prices series never indefinitely wandering off in opposite directions and never drifting farther and farther away from its mean without eventually returning to the initial ratio or mean).

But the RTH doesn’t seem to be a favorable candidate for a longer-term (the half-life – the expected time to revert half of its deviation from the mean – is regualary measured in weeks or month) pairs trading strategy only, but may provide favorable short-term mean-reversion opportunities as well (market timing).

Table I below shows the performance metrics (since 06/01/2001 due to the RTH‘s inception in May 2001) for different pairs in conjunction with the RTH and – for demonstration puposes – different pairs of major market ETFs (SPY, QQQQ and IWM) and sector ETFs (XLY – Consumer Discretionary – and XLP – Consumer Staples -) based on an exemplary mean-reversion strategy, assumed one would’ve bought the pair (is equivalent to buying the first and selling short the second ETF in equal money amounts (number of shares in each ETF = 100% net asset value / share price)) on close of a session when the 4-day EMA (Exponential Moving Average) of the pair (the ratio of the closing prices) is less than the 4-day EMA of the ratio of closing prices for yesterday, and vice versa (selling short the first and buying the second ETF in equal money amounts in the event of a rising 4-day EMA of the ratio of closing prices).

Here is the link to the stats in a more ‘readable’, original size: Statistics 1

While – with respect to the specific setup defined – the SPY vs. QQQQ, the SPY vs. IWM, the XLY vs. XLP and the SPY itself (buy and hold) as a benchmark virtually went nowhere (or even closed in the red) over the course of the last 9 years – especially after accounting for fees and transaction costs -, the RTH as a pairs trading component in conjunction with the SPY, the QQQQ, the  IWM and the SMH not only easily out-performed a (S&P 500) buy-and-hold approach by a wide margin (and almost year by year as well, see ‘Periodic Returns‘ in the stats above), but comes up with a smoother equity curve as well, meaning there are much less dramatic departures from a gradually/geometrically increasing trendline (R-squared, maximum drawdown, maximum sessions in drawdown) in comparison to a SPY‘s buy and hold approach.

Interestingly the SPY vs. RTH and SMH vs. RTH pairs trading strategies and a S&P 500 buy-and-hold approach do NOT differ with respect to the probability of a winning trade (the probability is almost always slightly above 50% only). The reason for the deviation in total returns is the fact that – in contrast to the SPY‘s buy and hold approach – the median winning trade (+0.51%) now equals or slightly exceeds the median losing trade (-0.50% ), significantly improving the respective expectancy (probability of winning * average gain – probability of losing * average loss).

But a SPY vs. RTH‘s pairs trading strategy has another advantage as well: Chosing a slightly different setup in order to especially exploit those reversal opportunities where the pair is (from a historical and statistical perspective) exceptionally stretched to one or the other side would be sufficient to not only surpass previous compounded returns, but to cut in half the time in market and the maximium drawdown as well. Table II below shows the performance metrics (since 06/01/2001 due to the RTH‘s inception in May 2001) for the same pairs, assumed one would’ve bought the pair (buying the first and selling short the second ETF in equal money amounts) on close of a session when the pair (the ratio of the closing prices) closed at least -0.50% below its 4-day EMA, and vice versa (selling short the first and buying the second ETF in equal money amounts in the event of a close at least +0.50% above the 4-day EMA of the ratio of closing prices).

Here is the link to the stats in a more ‘readable’, original size: Statistics 2

With respect to SPY vs. RTH (Strat. #1), time in market and maximum drawdown have been exactly cut in half (giving you the chance to earn an additional return on cash) while the geometric growth rate per trade doubled. Although the probability of a winning trade (again) only slightly improved (from 54.63% to 57.44%), it is (again) the effectiviness (doing things right instead of doing the right thing only, meaning increasing your gains when you’re right and cutting your losses when you’re wrong) of the strategy which makes for the improvement in key performance metrics.

But what about the robustness of a SPY vs. RTH pairs trading strategy ? It it works with a -0.50%/+0.50% level below/above a 4-day EMA, it should work with a -/+0.30% up to a -/+0.70% level and a 3-day and 5-day EMA as well showing some gradual – no radical -  changes with respect to the key performance metrics only.

Table III below shows the performance metrics for the SPY vs. RTH pairs trading strategy, assumed one would’ve bought the pair (buying the first and selling short the second ETF in equal money amounts) on close of a session when the pair (the ratio of the closing prices) closed at least

  • Strat. #1: -0.30% below (long) and +0.30% above (short) its 4-day EMA,
  • Strat. #2:-0.40% below (long) and +0.40% above (short) its 4-day EMA,
  • Strat. #3:-0.50% below (long) and +0.50% above (short) its 4-day EMA,
  • Strat. #4:-0.60% below (long) and +0.60% above (short) its 4-day EMA,
  • Strat. #5:-0.70% below (long) and +0.70% above (short) its 4-day EMA.

SPY vs. RTH (Strat. #6) represents a buy-and-hold approach (assumed one would always be long the SPY and short the RTH).

Here is the link to the stats in a more ‘readable’, original size: Statistics 3

And last but not least, table IV below shows the performance metrics for the SPY vs. RTH pairs trading strategy, assumed one would’ve bought the pair (buying the first and selling short the second ETF in equal money amounts) on close of a session when the pair (the ratio of the closing prices) closed at least

  • Strat. #1:-0.50% below (long) and +0.50% above (short) its 3-day EMA,
  • Strat. #2:-0.50% below (long) and +0.50% above (short) its 4-day EMA,
  • Strat. #3:-0.50% below (long) and +0.50% above (short) its 5-day EMA.

SPY vs. RTH (Strat. #4) represents a buy-and-hold approach (assumed one would always be long the SPY and short the RTH).

Neither a slight variation in the percentage level below/above the 4-day EMA nor a variation in the duration of the EMA itself affects any of the strategy’s key performance indicators in a significant way, except – but expectedly – the so called opportunity factor (total number of sessions and time in market).

Summary: A SPY vs. RTH‘s pairs trading strategy, assumed one would’ve bought the pair (buying the SPY and selling short the RTH in equal money amounts) on close of a session when the pair (the ratio of the closing prices) closed at least -0.50% below its 4-day EMA, and vice versa (selling short the SPY and buying the RTH in equal money amounts in the event of a close at least +0.50% above the 4-day EMA of the ratio of closing prices), historically provided a (consistently) profitable market timing strategy (a median annual return of +15.65%), (consistently, in 8 out of the last 9 years) out-performing a S&P 500 buy-and-hold approach, with a smooth equity curve (R-squared, maximum drawdowns on a week/month/year end basis, maximum time in a drawdown), meeting at least basic requirements for robustness and reliability. Unfortunately a shortcoming is the deviation in yearly returns (one standard deviation = 32.72%).

A favorable basis for some further investigations and refinements (accounting for return on cash, position sizing, and making the strategy adaptiv to changing market conditions – if necessary).

to be continued …

Successful trading,
Frank

Remarks: Due to their conceptual scope – and if not explicitely stated otherwise -, all models/setups/strategies do not account for slippage, fees and transaction costs, do not account for return on cash, do not use position sizing (e.g. Kelly, optimal f) – they’re always ‘all in-, do not use leverage (e.g. leveraged ETFs) - but a marginable account is mandatory -, do not utilize any kind of abnormal market filter (e.g. during market phases with extremely elevated volatility) , do not use intraday buy/sell stops (end-of-day prices only), and models/setups/strategies are not ‘adaptive‘ (do not adjust to the ongoing changes in market conditions like bull and bear markets).

________________________________

If you might want to be instantly notified about what’s happening in the markets and at TRADING THE ODDS, I encourage you to subscribe to my RSS Feed or Email Feed, and (or) follow me on Twitter.

xx

Disclaimer: Long SMH and short XRT at time of writing.

The information on this site is provided for statistical and informational purposes only. Nothing herein should be interpreted or regarded as personalized investment advice or to state or imply that past results are an indication of future performance. The author of this website is not a licensed financial advisor and will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on the content of this website(s). Under no circumstances does this information represent an advice or recommendation to buy, sell or hold any security.

Add to Technorati Favorites


BLOGROLL

Twitter Feed

     SPY (S&P 500 SPDR.)

DISCLAIMER

The information on this site is provided for statistical and informational purposes only. Nothing herein should be interpreted or regarded as personalized investment advice or to state or imply that past results are an indication of future performance. Under no circumstances does this information represent an advice or recommendation to buy, sell or hold any security.

The author of this website is not a licensed financial advisor and will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on the content of this website, including the information that others post here.

While every effort will be made to provide complete, the most accurate and current information, none of the information on this site is guaranteed to be correct, and anything written here should be subject to independent verification. I make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to this blog or the information, analysis, statistics, or related graphics contained on the blog for any purpose.

I may or may not hold positions for myself, my family and/or clients in the securities mentioned here. Actions may have been taken before or after information is presented, and any opinions expressed in this site are subject to change without notice.

Please read the full ... DISCLAIMER

Archives