MRTS Introduction WM
MRTS Introduction WM
MRTS Introduction WM
Introduction
we are short, we need a falling trend. With swing trades, we are enter-
ing the long position when prices are recognized to be at relative lows.
System Overview
The target characteristics of most of the systems described in this book are:
• Trades SPY, or a similar index or ETF.
• Development period is 1/1/1999 through 1/1/2012.
• Takes only long positions.
• Trades about 24 times per year.
• Holds a few days.
• Is highly accurate with a high percentage of winning trades.
• Uses end-of-day data.
• Most entries are made at the close of trading at the closing price.
• Exits are made either at the close of a day or at an intra-day price
that is pre-computed.
• Profit targets are used.
• Maximum holding periods are used.
• Trailing exits are used.
• Maximum loss exits are not used.
• System logic is generally simple.
• Data is often transformed.
• Auxiliary data series are sometimes used.
Explanations
Trades ETFs
The test period used is 1/1/1999 through 12/31/2011. Prices for many issues
are roughly the same at the end of this period as they were at the begin-
ning. This provides a 13 year period with little upward or downward
bias. Systems that are profitable during periods of rising prices may be
simply taking advantage of a bull market. That is not a bad thing, but
it does depend on identifying the bull market. Systems that are profit-
able during flat periods have removed the bull market bias.
Long only
portion of short / flat in a long / flat / short system does nothing to increase
the performance of the long trades, but does increase the likelihood of
loss of generality and does increase the curve-fitness of the model.
Also read Curse of Dimensionality in Chapter 3.
Systems that are long / flat are making binary decisions—they are asking
whether the correct position is long or flat. From the perspective of
machine learning and pattern recognition, they are binary classifiers.
They sort every pattern, no matter how it is defined, into one of two cat-
egories—long or not long.
(Everything said about long / flat systems can also be said about
short / flat systems. Discussing only one at a time makes the text
of this book clearer. I am often confused by descriptions that try to
include both long and short—such as “go long (short) when the indi-
cator rises (falls) through the critical level”—so they will be avoided.)
There is a bias toward rising equity prices. Some of the contributing
factors include:
• Resource extraction.
• Population growth.
• Inflation.
• Productivity improvement.
• Survivorship bias.
• Feedback from long-only investments.
• Legislative rules.
Bottoms in prices are more clearly defined than tops. It is easier to develop
a system that selects long entries than one that selects short entries.
It is more common to be long than to be short. Short trades are prohib-
ited in some accounts, such as most IRA accounts.
The logic to identify short entries is typically not just the symmetric
opposite of the long entry. So isolating long and short signals produces
programs that have fewer logical statements and fewer variable param-
eters.
Prices act differently as they are rising than as they are falling. Par-
ticularly in rising markets, price drops are often steeper and of shorter
duration. While any given technique might be effective in either a long
/ flat or short / flat system, the specific rules and parameter values are
not necessarily symmetric. If the system buys when the 3 and 9 period
simple moving averages cross, the best signals to short do not necessarily
come from 3 and 9 period averages, from the same method of comput-
ing the average, or even from use of a moving average crossover as the
indicator.
Trades 24 times a year, holds a few days
There are two seasonality patterns that occur regularly. One is related
to the end of the month, the other to options expiration. In general, it is
profitable to be long for a few days beginning a few days before the end
of the month, and also be long about a week before options expiration
Friday. These are almost reliable enough to trade as systems. But regard-
less of that, they do suggest that there are about 24 good opportunities
to enter a long position each year. (And, perhaps, 24 opportunities to
enter a short position.) Readers of my book, Modeling Trading System Per-
formance, will appreciate that frequent trading is important as it allows
for frequent compounding. And, short holding periods are important
to limit exposure to drawdown.
You are taking in a lot of uncertain, inaccurate, or biased information,
and making a certain decision—be long, flat, or short.
The goal is to trade highly liquid ETFs, such as SPY. For the most part,
the data analyzed to generate the trading signals will be the daily data
of those same ETFs.
Tests will be run on three groups:
• Highly liquid ETFs, including SPY, QQQ, IWM, EEM, and GLD.
• Sector ETFs, including the nine S&P sector funds XLB, XLE, XLF,
XLI, XLK, XLP, XLU, XLV, and XLY.
• A group of highly liquid issues that were at approximately the
same price at the beginning of the test period as they were at the
end, including AEP, ALL, BAC, BK, CMCSA, COF, CSCO, DD,
DELL, DIS, EWJ, F, GE, HD, HNZ, INTC, IVV, KO, MRK, MS,
MSFT, PFE, QQQ, RTN, SMH, SPY, T, TWX, VZ, WY, XLU, XLV.
KISS
Trade-offs
Mean reversion systems that trade frequently and have a high percent-
age of winning trades:
• Are easier to analyze to determine system health.
• Give more precise estimates of system performance.
• Have smaller gains per trade.
• Can be traded with smaller accounts.
• Can be traded at higher fraction.
• Are designed to take advantage of volatility.
• Benefit from frequent compounding.
• Through shorter holding periods, are less exposed to drawdowns.
• Are not self correcting when in losing trades.
Trend following systems that trade infrequently and have a low percent-
age of winning trades:
• Are much more difficult to analyze to determine system health.
• Give highly variable estimates of system performance.
• Are designed to capture larger gains from longer trends.
• Require larger trading accounts.
• Must be traded at lower fraction.
• Are self correcting when in a losing trade.
• Through longer holding periods, are exposed to higher draw-
downs.