Skip to content
72lab
Introduction to Quant Trading· Lesson 1 of 6· 6 min No sign-up needed

What Is Quantitative Trading?

Quantitative trading isn't a high-frequency black box, and it doesn't guarantee profits: you write a trading idea as rules that spell out every step, test them on historical data, then follow them strictly.

Key takeaways

  • 1Quantitative trading = writing a trading idea as rules, testing them on historical data, then executing them strictly by the rules.
  • 2The rules have to be precise at every step (when to buy, when to sell, how big a loss means you were wrong) so they can be checked day by day against history.
  • 3Four common families: trend following, mean reversion, factor investing and arbitrage; each suits some markets and not others.
  • 4Quant doesn't mean high-frequency, doesn't mean guaranteed profits, and doesn't necessarily mean coding; a good-looking backtest only describes the past and guarantees nothing about the future.

Check your understanding

Get every question right to complete this lesson

1.Which of these could you backtest as it stands?

2."Quant trading is high-frequency trading." True?

3."When the price falls too far below its moving average, it tends to bounce back." Which family of strategy is that?

4.In the simulator, the mean-reversion rule won every trade in a 240-day backtest and made 19.1%. What's the most sensible next step?

Text version · Introduction to Quant Trading, lesson 1: “What Is Quantitative Trading?”

Quantitative trading isn't a high-frequency black box, and it doesn't guarantee profits: you write a trading idea as rules that spell out every step, test them on historical data, then follow them strictly.

Four steps: rules → data → test → execute

In quantitative trading, you turn a trading idea into rules that spell out every step: when to buy, when to sell, how big a loss means you were wrong. First backtest them on historical data, and if the results hold up, follow them to the letter.

Four common families of strategy

With trend following, you bet that a rally will keep going; with mean reversion, that a stretched price will snap back; factor investing scores a basket of stocks and buys the top scorers; and arbitrage captures the price gap for the same thing in two places. They tend to make money in different kinds of markets.

Three myths

Quant doesn't mean high-frequency: many quant strategies trade on daily or weekly charts, and high-frequency trading is only a small subset. Quant doesn't mean guaranteed profits either: rules can stop working, and a great backtest only describes the past. Nor do you have to write code: this site's Strategy Lab and EA Workshop both build rules from blocks.

Only a written rule can be tested

"Buy when it's fallen a lot" can't be backtested: how much is "a lot"? It means something different to every person on every day. Write it as "buy when the close is 5% below the 20-day moving average, sell when it gets back to the average," and you can check it day by day against years of data; once you're trading it, you follow it too, without changing your mind out of fear or greed.

Key takeaways

  • Quantitative trading = writing a trading idea as rules, testing them on historical data, then executing them strictly by the rules.
  • The rules have to be precise at every step (when to buy, when to sell, how big a loss means you were wrong) so they can be checked day by day against history.
  • Four common families: trend following, mean reversion, factor investing and arbitrage; each suits some markets and not others.
  • Quant doesn't mean high-frequency, doesn't mean guaranteed profits, and doesn't necessarily mean coding; a good-looking backtest only describes the past and guarantees nothing about the future.

Try it yourself

You can do these exercises in this lesson's interactive simulation:

  1. With the default "Trend following": what's the backtest result in step ③? And buy and hold over the same period?
  2. Press ▶ to run the rule over the new 120 days: what did it do on the day the price fell below the average? What's the return when the new data ends?
  3. Switch to "Mean reversion": what share of trades made money in the backtest? Then press ▶: why does it lose money on the new data?
  4. Change the MA period from 50 to 20 or 100: how much does the backtest result change? And on the new data?

Quiz and explanations

1. Which of these could you backtest as it stands?
2. "Quant trading is high-frequency trading." True?
3. "When the price falls too far below its moving average, it tends to bounce back." Which family of strategy is that?
4. In the simulator, the mean-reversion rule won every trade in a 240-day backtest and made 19.1%. What's the most sensible next step?
4 questions left to answer. Answers and explanations appear after you submit.

Terms in this lesson

  • arbitrage (Arbitrage): Simultaneously buying the cheap version and selling the expensive version of the same (or an equivalent) asset to lock in the difference.
  • backtest (Backtest): Simulating rule-based trading on historical data to see how a strategy would have done.
  • factor (Factor): A trait used to score stocks and explain differences in returns, such as value, momentum, quality or size.
  • maximum drawdown (Max Drawdown): The biggest drop from an equity peak to the lowest point that follows.
  • mean reversion (Mean Reversion): The tendency of a price or spread to drift back to its average after straying from normal.
  • out-of-sample (Out-of-Sample): Data kept out of tuning and used only to test the strategy.
  • quantitative trading (Quantitative Trading): Trading by turning ideas into precise rules, testing them on historical data and then following the rules strictly. It isn't necessarily high-frequency, and you don't necessarily have to write code yourself.
  • trading rule (Trading Rule): Entry, exit and stop-loss conditions fixed in advance that can be checked candle by candle, so they can be tested on historical data.
  • trend following (Trend Following): Buying (or selling) along with the price when it moves in one direction, betting the trend will continue; in choppy, sideways markets it tends to get stopped out again and again.