This website uses cookies

Read our Privacy policy and Terms of use for more information.

We tested 20 simple rules on SPY (the S&P 500 exchange-traded fund, or ETF). Each one held SPY only while its price was above an average of its recent closes. The best rule on 1993 to 2009 prices made 8.52% a year there. Holding SPY made 7.49%. On 2010 to 2026 prices, the same rule made 10.12%, while holding made 14.30%.

That rule is a trading signal: a rule that turns data into a buy, sell or hold. This guide explains the main kinds, then tests one on data it had never seen. It ends with a checklist for judging any signal or signal service.

What are trading signals? A trading signal is a rule that turns data, such as prices or economic figures, into an instruction to buy, sell or hold. A signal is judged by how it does on data it was not built on, after costs, against simply holding.

  • The main kinds are trend (follow the direction of a price), mean reversion (bet on a snap back), momentum (buy the biggest recent risers) and macro (use economic data).

  • We picked the best of 20 moving-average rules on SPY (the S&P 500 ETF) using 1993 to 2009 prices. It made 8.52% a year there, against 7.49% for holding. From 2010 to 2026, it made 10.12%, against 14.30%.

  • A backtest, a test on past prices, is a best case. Ask for a live record, results on data the rule was not built on, costs, the number of rules tried, the sample size and the worst fall.

What is a trading signal?

A trading signal is a rule that turns data into an instruction: buy, sell or hold. The data can be prices, trading volume or economic figures. The rule is written so that two people would reach the same answer on the same day.

A signal is one part of a system. What Is Rules-Based Investing? adds the other parts, such as how much to buy and when to sell.

The main kinds of trading signals

  • Trend. Follow the direction of a price. One example holds a fund only while its price is above its moving average, the mean of its recent closing prices. The golden cross is another.

  • Mean reversion. Bet that a stretched price snaps back. One example buys when the Relative Strength Index (RSI), a 0 to 100 score of recent gains against losses, drops below 30.

  • Momentum. Rank assets by how much they rose over a past window, such as 12 months. Then buy the strongest. For a single price, the Moving Average Convergence Divergence (MACD) indicator measures whether its move is speeding up or slowing.

  • Macro. Use economic data. One example is the yield curve, which compares interest rates on government bonds of different lengths.

How to test a trading signal: in sample and out of sample

A backtest runs a rule over past prices as if it had been traded. What Is Backtesting? explains the method and its traps.

The trap that matters most here is choosing the best rule from many. The best of many looks good partly by luck. The fix is to split the data:

  • In sample: the data used to choose the rule.

  • Out of sample: later data the rule has never seen. Only this part shows whether the signal holds up.

In sample: picking SPY's best moving-average length, 1993 to 2009

The rule holds SPY after any day it closes above its moving average. Otherwise it holds 3-month Treasury bills, which are US government loans. Twenty lengths were tested, from 10 to 200 trading days in steps of 10.

The signal uses each day's close. The position starts at that close and runs to the next one. Dividends are counted, while costs are left out unless stated.

Bar chart of the yearly return of a rule that held SPY only above its moving average, for 20 lengths from 10 to 200 trading days, 11 November 1993 to 31 December 2009. Returns run from 0.58% for the 10-day to 8.52% for the 200-day, which came first. Only the 200-day and the 170-day, at 7.71%, beat buy and hold at 7.49%.

Source: YX Insights

Chart 1 shows each length's yearly return from 11 November 1993 to 31 December 2009. The 200-day average came first, at 8.52% a year. Holding SPY made 7.49%. Only 2 of the 20 lengths beat holding: the 200-day and the 170-day.

The 200-day rule also fell less. Its worst fall from a peak was 22.1%, against 55.2% for holding SPY.

Out of sample: the same rules from 2010 to 2026

Bar chart of the yearly return of the same 20 moving-average rules on SPY, 31 December 2009 to 6 October 2026. Returns run from 6.84% for the 20-day to 10.12% for the 200-day, which came first again. All 20 trail buy and hold at 14.30%.

Source: YX Insights

Chart 2 runs the same 20 rules from 31 December 2009 to 6 October 2026. The 200-day rule kept first place, at 10.12% a year. But holding SPY made 14.30%. None of the 20 lengths beat it.

So the ranking held, while the lead over holding did not. $100 in the rule grew to $503. In SPY, it grew to $940. With a cost of 0.1% on each switch, the rule made 9.53% a year.

The rule still fell less. Its worst fall was 20.5%, against 33.7% for holding.

Signal vs base rate: SPY on hold days and cash days

A base rate is what happens on all days, with no signal. A useful signal picks days that beat it.

Bar chart of SPY's average daily return, scaled to a year, on days the 200-day signal said hold, days it said cash and all days. In sample, 1993 to 2009: 11.7%, 3.6% and 9.3%. Out of sample, 2010 to 2026: 12.0%, 30.0% and 14.9%.

Source: YX Insights

Chart 3 shows SPY's average daily return, scaled to a year by multiplying by 252 trading days. A simple average of daily returns runs above a compound yearly return. Out of sample, for example, holding SPY made 14.30% a year compounded, while its average day, scaled up, gives 14.9%.

In sample, SPY rose at 11.7% a year on days the 200-day signal said hold. On days it said cash, the figure was 3.6%. The base rate was 9.3%.

Out of sample, the gap reversed. Hold days averaged 12.0%, while cash days averaged 30.0%, against a base rate of 14.9%.

The cash days were few, 663 of 4,215, but wild. All 10 of SPY's best days from 2010 to 2026 fell on them. So did 9 of its 10 worst days. The signal still dodged deep falls, but it no longer picked better days than the base rate.

How to judge a trading signal or signal service: a checklist

  • A live record. Ask for results from real time, after the rule was fixed. In a 2016 study, R. David McLean and Jeffrey Pontiff found that 97 published patterns that predicted share returns earned 26% less after the study's data ended. After publication, they earned 58% less.

  • Out-of-sample results. As the SPY test shows, a lead over holding can vanish on new data.

  • Costs. In our backtesting guide, a cost of 0.1% a trade cut a rule that traded often from 10.0% to 5.6% a year.

  • The number of rules tried. The best of many includes luck. Our essay I Tested the Golden Cross Against a Coin-Flipping Monkey found that "A coin-flipping monkey chooses moving averages roughly as well as the optimiser does."

  • The sample size. What Is a Golden Cross? found only 15 golden crosses on SPY since 1994, the days its 50-day average rose above its 200-day average. A handful of events cannot prove much.

  • The worst fall. A signal can earn less than holding and still fall less, as the SPY rule did.

  • A comparison with holding. Every result needs the base rate beside it.

Are trading signals legit, reliable or worth it?

A signal is a written rule, so it can be checked against the list above. For the 200-day signal, the checks gave a mixed answer. It cut SPY's worst fall in both periods. After 2010, it earned less than holding.

What Is RSI? and What Is MACD? run the same checks on those two signals.

A trading signal turns data into buy, sell or hold. Judge it on data it has not seen, after costs, against simply holding. In our test, the best moving-average rule kept its rank after 2010, but lost its lead over holding.

Learn more with YX Insights

This explainer is part of the YX Insights Academy. Each one takes a single idea and checks it against real data.

The same approach runs through everything else we publish:

  • Systematic Portfolio: ready-made portfolios for Macro & Megacaps and for Commodities. We publish the holdings and every change.

  • Multi-model Signals: a daily long-or-flat call on every name we cover. Each call shows how strongly our four models agree.

  • Research: company deep dives, macro commentary and essays on how we test.

Good places to start on the website:

Common questions about trading signals

Are trading signals reliable?

Not by default. Each one has to be checked on data it was not built on. The best of 20 moving-average rules on SPY beat holding from 1993 to 2009. From 2010 to 2026, it made 10.12% a year, against 14.30% for holding SPY. Its worst fall stayed smaller, at 20.5% against 33.7%.

Are trading signals worth it?

A trading signal is worth it only if it passes a few checks. Look for a live record, results on unseen data, costs counted, few rules tried, enough events and a stated worst fall. Compare every result with simply holding. In our SPY test from 2010 to 2026, costs of 0.1% a switch cut the 200-day rule from 10.12% to 9.53% a year.

What is an example of a trading signal?

Holding a fund only while its price is above its 200-day moving average is a simple trend signal. From 1993 to 2009, it made 8.52% a year on SPY, against 7.49% for holding. Other examples include the golden cross, the Relative Strength Index (RSI) and the Moving Average Convergence Divergence (MACD) indicator.

What are quantitative signals in investing?

Quantitative signals are trading signals built from numbers with a fixed formula, so a computer can apply them. Prices, trading volume, company accounts and economic data can all feed one. Each signal turns its inputs into buy, sell or hold. Like any signal, it should be tested on data it was not built on.

DISCLAIMER: This article is strictly educational. Any information or analysis in this note is not an offer to sell or the solicitation of an offer to buy any securities. Nothing in this note is intended to be investment advice and nor should it be relied upon to make investment decisions. Any opinions, analyses, or probabilities expressed in this note are those of the author as of the note's date of publication and are subject to change without notice.

Reply

Avatar

or to participate

More From YX Insights

No posts found
View more
caret-right