Search topics and sections

In Finance, a trading strategy is a fixed plan for buying and selling in financial markets. It sets out what to trade, when to open a position (a trade or investment held in the market), how big the position should be, and when to close it. Because the rules are set in advance, a trader can test them on past prices and apply them the same way every time.

Strategies differ in how long they hold a position, from milliseconds to years. They also differ in the price pattern they bet on, such as trends that keep going or price gaps that close.

Some simple rules earned more than the market in past data, but trading costs, competition, and testing many ideas on the same data shrink those gains. Large studies of day traders find that only a small share earn reliable profits after fees.

Parts of a strategy

A complete strategy turns a trading idea into exact rules. Bailey and coauthors list the settings a strategy designer can tune, including entry thresholds (the price levels or conditions that trigger a trade), risk sizing (how much money or risk to put into a trade), profit-taking, and stop-loss levels.[1]

Quantitative traders, who use math and data to make trading decisions, build these rules into computer systems. Their systems turn data into trading signals, size positions with trading costs in mind, and send orders automatically.[2]

Building a strategy usually means making these choices:

  1. Pick the markets to trade, such as stocks, bonds, currencies, or futures.
  2. Set an entry rule, a signal that says when to open a position.
  3. Set the position size, the amount of money or risk put into each trade.
  4. Set exit rules, such as a profit target or a stop-loss that closes a losing trade at a set level.
  5. Decide how orders reach the market, keeping the cost of trading low.

A position can bet on prices going up or down. A long position bets that a price will rise, and a short position bets that it will fall.[2] Hedge funds can do both, while most other investors only invest long, which is called Long-only investing.[2]

Parts of a trading strategyMarketdataEntrysignalPositionsizeOrderexecutionOpenpositionExit rulesprofit targetstop-losstrading costsrisk limitsnext trade
A trading strategy runs as a loop: market data feeds an entry signal, position sizing, order execution, an open position, and exit rules, then the cycle returns for the next trade. Risk limits apply from position sizing through the exit.

Holding periods

One basic way to sort strategies is by how long a position stays open. The table gives typical ranges as the sources describe them. Real traders often mix styles.

Style Typical holding time
High-frequency trading Milliseconds to minutes[2]
Scalping Seconds to minutes[3]
Day trading Opened and closed within the same trading day[4]
Swing trading Days to weeks[4]
Position trading Many months or years[4]
Buy and hold Long term, with little active trading[5]

Short holding periods mean many trades, and every trade has a cost. The section on trading costs shows how frequent trading reduces returns.

Frequent intraday traders try to profit from small price moves. They often trade with money borrowed from their broker, called margin.[6]

Typical holding periods of trading strategiesHigh-frequency tradingScalpingDay tradingSwing tradingPosition tradingBuy and hold1 ms1 s1 min1 hour1 day1 week1 month1 year10 yearsclosed same dayapproximate ranges
Typical holding periods of common trading strategies on a logarithmic time axis, where each step marks a much longer span of time, stretching from milliseconds to years. Ranges run from milliseconds in high-frequency trading to a decade or more in buy and hold, and they are approximate.

What strategies bet on

Most strategies rest on one idea about how prices behave. Pedersen describes several broad investment styles that work across many markets.[2] In these styles, securities means financial assets such as stocks and bonds.

  • Momentum and trend following. Buy assets whose prices have been rising and sell those whose prices have been falling.[2] See Momentum investing and Trend following trading.
  • Mean reversion. Bet that a price that moved far from its usual level will move back, so the trade profits from the reversal.[5]
  • Value. Buy cheap securities and sell expensive ones.[2] Value investing often means going against the crowd, as in Contrarian investing.[2]
  • Carry. Buy securities that would earn a high return if prices stayed the same, such as currencies with high interest rates.[2]
  • Arbitrage and relative value. Bet on the price gap between pairs of related securities.[2] See Arbitrage.
  • Event-driven. Trade around corporate events, for example by buying shares in companies being taken over when other investors sell them to avoid event risk.[2] See Event-driven investing.

Momentum and mean reversion are opposite bets. A momentum trader buys after a rise and expects more of it, while a mean-reversion trader buys after a fall and expects a bounce back.

Trend following versus mean reversion Buy Sell hold Trend following price time bet: rise continues Buy Sell average Mean reversion price time bet: price returns to average
Two schematic price charts. A trend follower buys when price breaks above its earlier range and holds until the rise ends, while a mean reversion trader buys when price falls well below its average and sells when it returns to that average.

Discretionary and systematic trading

Strategies also differ in who makes the final call, a person or a set of rules. In discretionary trading, the trader decides each trade using experience, information, and intuition.[2] In systematic trading, also called quantitative trading, the rules are written down exactly and computers carry them out.[2]

Discretionary Systematic
How trades are chosen Judgment of the trader, often using fundamental analysis of each company[2] Explicit rules run by computer systems[2]
Strengths Tailored study of each trade; can use information that is hard to measure, such as private conversations[2] Can apply one idea to thousands of securities; follows rules with discipline[2]
Weaknesses Labor-intensive, so only a few securities can be studied in depth; exposed to psychological biases[2] Rules can be overfit, meaning adjusted to random patterns in past data that may not recur, and then fail later[1]

Systematic traders often use algorithmic trading to send orders. Pedersen describes systems that route hundreds of orders every few seconds.[2]

Trend following and momentum

Momentum strategies bet that recent winners keep winning for a while. Researchers study two versions that differ in what a price is compared with.

Cross-sectional momentum

Cross-sectional momentum compares assets with each other. Jegadeesh and Titman ranked US stocks by their returns over the past 3 to 12 months, bought the top tenth (winners), and sold the bottom tenth (losers).[7]

Over 1965 to 1989, these strategies earned significant positive returns over 3- to 12-month holding periods.[7] Significant here means the results were unlikely to be due to chance under the study's statistical tests.

Part of the gain later reversed. A portfolio (a collection of investments) formed on the past 6 months of returns earned an average cumulative 9.5% over the next 12 months but lost more than half of that in the following 24 months.[7]

Time-series momentum

Time-series momentum compares each asset only with its own past. Moskowitz, Ooi, and Pedersen went long a futures contract if its excess return over the past 12 months was positive and short if it was negative, holding for one month.[8] Excess return is the return above the risk-free rate, which is the return on an investment with little or no risk. The return of this rule for asset ss is

rt,t+1TSMOM,s=sign⁡(rt−12,ts) 40%σts rt,t+1sr^{\text{TSMOM},s}_{t,t+1} = \operatorname{sign}\left(r^{s}_{t-12,t}\right)\,\frac{40\%}{\sigma^{s}_{t}}\,r^{s}_{t,t+1}
  • rt−12,tsr^{s}_{t-12,t} is the asset's excess return over the past 12 months. Its sign gives +1+1 (long) or −1-1 (short).
  • σts\sigma^{s}_{t} is an estimate of the asset's annualized volatility, made with data available at time tt.
  • 40%40\% is the target volatility, chosen to match the risk of an average individual stock.
  • rt,t+1sr^{s}_{t,t+1} is the asset's excess return over the next month.

Dividing by σ\sigma makes each position smaller when the asset is more volatile. This method is called volatility targeting.

From January 1985 to December 2009, 12-month time-series momentum was profitable for every one of the 58 futures contracts studied.[8] A diversified portfolio had a Sharpe ratio (average return above a safe rate divided by the swings in return) above one per year, about 2.5 times that of the stock market.[9]

Doubts and crashes

Later studies question how much of this gain comes from momentum itself. Kim, Tse, and Wald (2016) found that the results were largely driven by volatility scaling, and that without it, time-series momentum and buy-and-hold gave similar returns.[10] A 2020 study testing each asset separately found significant predictive slopes for only 8 of 55 futures at the 10% level.[10]

Momentum strategies also suffer rare, sharp losses called momentum crashes. Daniel and Moskowitz found that these crashes are partly forecastable. They tend to occur after market declines, when volatility is high, and as markets rebound.[11]

Mean reversion and pairs trading

A pairs trade bets that two securities that usually move together will come back together after they drift apart. Gatev, Goetzmann, and Rouwenhorst tested a simple version on US stocks with daily data from 1962 to 2002.[12] Their rule had these steps:

  1. Over a 12-month formation period, scale each stock's price (with dividends reinvested) to a common starting value.
  2. Pair each stock with the partner that makes the sum of squared differences between the two scaled price paths smallest.
  3. Over the next 6 months, open a position when the two prices diverge by more than two historical standard deviations (a standard deviation measures how far values usually spread from their average). Buy the cheaper stock and short the more expensive one.
  4. Close the position the next time the two prices cross, or at the end of the 6 months.

Portfolios of pairs earned average excess returns, converted to a yearly rate, of up to 11%. These profits typically exceeded conservative estimates of trading costs.[12]

The authors attribute the profits to temporary mispricing of close substitutes.[12] Pairs trading is one form of statistical arbitrage, which Pedersen describes as trading at a daily frequency based on statistical patterns.[2]

Pairs trading: price lines and the gap between them Pairs chosen in 12-month formation period Traded over next 6 months Position open Stock A Stock B Open: short A, buy B Close: prices cross A minus B +2 standard deviations -2 standard deviations Time
In pairs trading, two stocks that moved together during a 12-month formation period are traded over the next 6 months. The trade opens when the gap A−BA - B rises above +2+2 standard deviations and closes when the prices cross and the gap returns to zero.

Arbitrage and carry

Arbitrage

Arbitrage in its textbook form is riskless. Sharpe and Alexander define it as "the simultaneous purchase and sale of the same, or essentially similar, security in two different markets for advantageously different prices."[13] In plain terms, the trader buys and sells the same thing at the same time in two markets at favorably different prices, so in theory the trade needs no capital and has no risk.[13]

Real arbitrage is usually riskier. Shleifer and Vishny argue that almost all real arbitrage requires capital and is typically risky, and that it can stop working when prices move far from their true values.[13] This idea is known as the limits to arbitrage.

Pedersen groups three kinds of trading as arbitrage strategies.[2] They are fixed-income arbitrage (arbitrage involving bonds and other debt investments), convertible bond arbitrage, and event-driven investing.

Carry

Carry is the return an asset would earn if its price did not change. Koijen, Moskowitz, Pedersen, and Vrugt split any asset's return into three parts:[14]

return=carry+E[price appreciation]⏟expected return+unexpected price shock\text{return} = \underbrace{\text{carry} + E[\text{price appreciation}]}_{\text{expected return}} + \text{unexpected price shock}

For currencies, carry is the interest-rate gap between two countries.[14] A currency carry trade borrows in a low-interest funding currency and buys a higher-yielding asset in another currency.[15] When many such trades unwind at once, the funding currency can rise sharply and the investment currencies fall.[15]

Carry worked in many markets in past data. Strategies that went long high-carry and short low-carry assets earned an annualized Sharpe ratio of 0.8 on average across asset classes.[14] All of them had fat-tailed returns, meaning rare large gains and losses happened more often than a normal bell curve predicts.[14]

The shape of the returns differed by market.[14] Negative skew means large losses are more common than large gains of the same size, and positive skew means the reverse.

Market Return pattern
Currencies Negative skew, as earlier studies had found[14]
Equity, Treasury, and credit carry Positive skew[14]

Carry returns also tended to be lower during global recessions.[14]

Managing risk

Risk rules decide how much a strategy can lose. The main tools are position sizing, stop-loss rules, and limits on drawdown.

Position sizing

Position sizing sets how much to put into each trade. The Kelly criterion is a classic sizing rule that chooses the bet size that maximizes the expected value of the logarithm of wealth.[16]

Volatility targeting, as in time-series momentum, is another approach. It gives each asset the same expected risk instead of the same dollar amount.[8]

Scaling positions up to a high volatility target uses leverage. Leverage raises both gains and losses.[10]

Stop-loss rules

A stop-loss rule cuts exposure after losses reach a set threshold. Kaminski and Lo studied when such rules help, comparing a strategy with a switch into a safe asset that earns the risk-free rate, the return on a near-riskless investment such as short-term government debt.[5]

  • If returns follow a random walk, a simple stop-loss rule lowers the expected return of any strategy that earns more than the risk-free rate. It just swaps the strategy for the safe asset at times that carry no information.[5]
  • If returns show momentum, losses tend to persist, and a stop-loss rule can add value.[5]
  • If a strategy relies on mean reversion, a stop-loss tends to exit just before the hoped-for reversal and hurts returns.[5]

Using daily US futures data from January 1993 to November 2011, certain stop-loss rules checked over longer intervals, which switched from stocks into long-term US bond futures, raised expected return while cutting volatility.[5] In one setting, return rose by 1.5%, volatility fell by 5%, and the Sharpe ratio rose by as much as 20%.[5]

Drawdown

A drawdown is the fall in account value from its last peak. The maximum drawdown is the largest drop from a peak to a later trough.[17] For an account value XX tracked from time 00 to TT:

D(T)=sup⁡t∈[0,T][sup⁡s∈[0,t]X(s)−X(t)]D(T) = \sup_{t \in [0,T]} \Big[ \sup_{s \in [0,t]} X(s) - X(t) \Big]

The inner term is the running peak up to time tt minus the value at tt. The outer term takes the worst such gap over the whole period.

Drawdown of an account valuetimeaccount valuepeaktroughmaximumdrawdownrecoveryrunning peaksmaller drawdown
The account value rises to a peak, falls to a trough, and climbs back past the old peak. The drop from peak to trough is the maximum drawdown, and the dashed running peak tracks the highest value reached so far.

Measuring performance

The most common performance measure is the Sharpe ratio, used in the sections above. William Sharpe introduced it in 1966 as the "reward-to-variability ratio."[18] Its historical form is

S=dˉσd,dt=RF,t−RB,tS = \frac{\bar{d}}{\sigma_d}, \qquad d_t = R_{F,t} - R_{B,t}
  • RF,tR_{F,t} is the strategy's return in period tt.
  • RB,tR_{B,t} is the return on a benchmark, often a risk-free asset.
  • dˉ\bar{d} is the average of the differences dtd_t, and σd\sigma_d is their standard deviation.

The Sharpe ratio is linked to statistical significance. The t-statistic measures how far an average is from zero compared with the uncertainty in that average. For the average differential return it equals STS\sqrt{T}, where TT is the number of returns used.[18]

To express the Sharpe ratio per year, traders multiply by q\sqrt{q}, where qq is the number of return periods per year, such as 12\sqrt{12} for monthly data.[1][5] This standard scaling assumes returns are independent and identically distributed, meaning each period's return does not affect the others and all follow the same pattern over time.

Testing on past data

Backtests

A backtest is a historical simulation of how a strategy would have performed.[1] In-sample performance is measured on the data used to design the strategy, and out-of-sample performance on data not used. A backtest is realistic when the two agree.[1]

Overfitting

Backtest overfitting happens when a strategy is tuned to random noise in past data. Bailey and coauthors showed that strong backtest results are easy to get after trying only a few strategy versions, and that the more versions tried, the higher the chance the backtest is overfit.[1] Analysts rarely report how many versions they tried, so investors cannot judge this risk.[1]

The authors also estimate how much data is needed to avoid this trap. Suppose N>1N > 1 independent strategy versions are tried, each with excess returns that are independent, identically distributed, and normal. The minimum backtest length, MinBTL in years, needed to avoid picking a worthless strategy by luck satisfies[1]

MinBTL<2ln⁡N(E[max⁡N])2\text{MinBTL} < \frac{2\ln N}{\left(E[\max_N]\right)^2}
  • NN is the number of independent strategy versions tried.
  • E[max⁡N]E[\max_N] is the annualized in-sample Sharpe ratio that the best of NN worthless strategies (true out-of-sample Sharpe ratio of zero) would be expected to show by luck.

For example, with only 5 years of data, trying more than 45 independent versions almost guarantees finding one with an in-sample Sharpe ratio of 1, even though its expected out-of-sample Sharpe ratio is zero.[1]

Backtest overfitting cumulative return time selection date best of N trials performance after selection in-sample (backtest) out-of-sample (live) trying more versions makes the best backtest look better by luck
Many random strategy variants are backtested, and the one with the highest in-sample total return is selected. After the selection date the chosen strategy shows no edge and drifts flat or slightly down like the others.

Decay after publication

Published trading signals tend to weaken. McLean and Pontiff studied 97 variables that academic papers showed could predict stock returns.[19] Portfolio returns were 26% lower outside the original study period and 58% lower after publication, which they attribute partly to investors trading on the published findings.[19]

Trading costs

Every trade has costs, some visible and some hidden. Explicit costs include commissions, while implicit costs come from dealing with the market, such as the bid-ask spread and price impact.[20]

Price impact is the move in the quoted price in the direction of the trade. Large orders are often split into smaller child orders executed over time.[20] Deciding how to split and time such orders is the subject of optimal execution.

Costs matter most for strategies that trade often. Turnover is the share of a portfolio bought or sold during a period. Novy-Marx and Velikov found that most stock strategies with less than 50% monthly turnover still earned significant profits after costs when designed to limit them, but few strategies with higher turnover did.[21]

Costs typically cut the monthly return spread by more than 1% of monthly one-sided turnover. A strategy turning over 20% per month therefore loses at least 0.20 percentage points per month.[21]

Market efficiency and profits

Whether any strategy can reliably beat the market is a long-running debate. Theory, competing views, and studies of real traders all bear on it.

The efficient-market hypothesis

In 1970 Eugene Fama defined an efficient market as one "in which prices always 'fully reflect' available information."[22] This definition is the core of the efficient-market hypothesis.

If markets were fully efficient, no trading rule based on public information would earn more than fair pay for its risk.

Efficiently inefficient markets

Pedersen argues that markets are "efficiently inefficient." Competition keeps returns net of all costs close to efficient levels, but prices can still stray far enough from fair value to reward skilled managers for their costs.[2]

Evidence from day traders

Studies of individual traders find that most lose money. In Taiwan, less than 1% of day traders could predictably and reliably earn positive abnormal returns, meaning returns above what the risk taken would predict, after fees.[23] In the Brazilian equity futures market, 97% of people who began day trading between 2013 and 2015 and kept going for at least 300 days lost money, and only 0.4% earned more than a bank teller.[24]

History

Rule-based trading is far older than computers. Its main stages run from Japanese rice markets to computer testing and academic research.

Early ideas

In 18th-century Japan, rice trader Honma Munehisa wrote some of the earliest descriptions of price patterns and linked trends and reversals to traders' emotions.[25] The candlestick charts often tied to his name are thought to have been developed by Japanese traders in the 19th century.[25]

In the late 19th century, Charles Dow built stock price averages to study market moves.[25] After his death in 1902, his followers tried to ride trends and exit at reversals, an approach known as Dow theory.[25] Dow theorists used signals such as the moving-average crossover, an early tool of technical analysis.[25]

Trend following as a business

Trend following became a business in the mid-20th century. Richard Donchian developed early diversified trend-following rules based on 5- and 20-day moving-average crossovers, and in 1949 founded Futures Inc, the first public managed futures fund.[25] In the 1980s, firms began using computers to test trading signals on past price data.[25]

In 1983, commodity traders Richard Dennis and Bill Eckhardt ran an experiment to settle whether trading could be taught.[26] They trained a group of beginners, called the Turtles, for two weeks at the end of December 1983 in a fixed set of rules.[27] Over the next four years the Turtles earned a total of over $100 million.[27]

Academic research

Academic tests followed. The 1993 study by Jegadeesh and Titman documented momentum in US stocks, and later work extended momentum and carry to futures, currencies, and bonds.[7][8][14]

Timeline of rule-based trading1700sHonma, Japan1800sCandlestick chartsLate 1800sDow's averages1902Dow theory1949Futures Inc fund1980sComputer backtests1983Turtle traders1993Momentum study2012Time-seriesmomentum
Timeline of rule-based trading, from Honma Munehisa's writing on trends and traders' emotions in 1700s Japan to the 2012 time-series momentum study. The axis is not to scale, and a break mark separates the 1800s from the 1900s.

Other strategies

Many named strategies combine the ideas above. Separate pages cover these:

The broader practice of taking risk in hope of price gains is Speculation.

References

  1. Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance, Notices of the American Mathematical Society, 2014.
  2. Efficiently Inefficient: How Smart Money Invests and Market Prices Are Determined (Introduction), Princeton University Press, 2015.
  3. What is a scalping strategy in the stock market and how does it work?, TD Direct Investing.
  4. What is trading?, Fidelity Investments.
  5. When Do Stop-Loss Rules Stop Losses?, Journal of Financial Markets, 2014.
  6. Frequent Intraday Trading: Understanding the Basics, FINRA.
  7. Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency, Journal of Finance, 1993.
  8. Time Series Momentum, Journal of Financial Economics, 2012.
  9. Time series momentum (article page), Journal of Financial Economics, 2012.
  10. Time Series Momentum: Is It There?, Journal of Financial Economics, 2020.
  11. Momentum crashes, Journal of Financial Economics, 2016.
  12. Pairs Trading: Performance of a Relative-Value Arbitrage Rule, Review of Financial Studies, 2006.
  13. The Limits of Arbitrage, Journal of Finance, 1997.
  14. Carry, Journal of Financial Economics, 2018.
  15. Carry off, carry on, BIS Quarterly Review, 2024.
  16. The Kelly Criterion in Blackjack, Sports Betting, and the Stock Market, Edward O. Thorp, 2006.
  17. On the Maximum Drawdown of a Brownian Motion, Journal of Applied Probability, 2004.
  18. The Sharpe Ratio, Journal of Portfolio Management, 1994.
  19. Does Academic Research Destroy Stock Return Predictability?, Journal of Finance, 2016.
  20. Transaction Costs: The Long-Term Investor vs. the Short-Term Trader, NYU Stern School of Business, 2015.
  21. A Taxonomy of Anomalies and Their Trading Costs, National Bureau of Economic Research, 2014.
  22. Efficient Markets Hypothesis: History, e-m-h.org.
  23. The Cross-Section of Speculator Skill: Evidence from Day Trading, Journal of Financial Markets, 2014.
  24. Day Trading for a Living?, Sao Paulo School of Economics (FGV), 2019.
  25. Reading Between the Lines, Winton, 2018.
  26. Turtle: What It Means, How It Works, Trading System, Investopedia.
  27. The Original Turtle Trading Story, Trading Blox.

Figure