WEBVTT

00:00:00.400 --> 00:00:13.433
Now that we know what makes a trading strategy good and what makes a trading strategy bad, let's talk about how we can test a trading strategy to make that determination. This is a process called backtesting.

00:00:13.466 --> 00:00:25.100
A backtest is simply a historical replay of how a set of trading rules performed during a specific period in the past.

00:00:25.133 --> 00:00:32.966
Backtesting is extremely powerful because it gives us insight on how good these trading strategies actually are.

00:00:33.033 --> 00:00:45.933
You know, at a high level, a trading strategy might sound good, it might sound logical, and it might sound reasonable, but a backtest tells you how that trading strategy actually performed.

00:00:46.000 --> 00:00:57.833
Without a backtest, you don't really know if you have a good or bad trading strategy. It is one of the most important parts of the testing and evaluation phases.

00:00:57.866 --> 00:01:11.600
Now, when it comes to backtests, people have this flawed misconception that it's a perfect simulation of what's definitely gonna happen in the future, and this couldn't be further from the case.

00:01:11.633 --> 00:01:24.900
Like I said in the beginning of this module, stock market returns are non-stationary. They change over time. So what makes a backtest good now might not be a good backtest in the future.

00:01:24.933 --> 00:01:31.400
Or put differently, a trading strategy is good this year, but it might be terrible next year.

00:01:31.466 --> 00:01:42.333
A trading strategy might be extremely good when the market is overall bullish. It might significantly outperform the broader market in every single way.

00:01:42.400 --> 00:01:54.100
But then the next year, some economic uncertainty happens and the market is in a bear market. That same trading strategy might be catastrophic.

00:01:54.133 --> 00:02:03.900
It might lose 70% or 80% of its value while the broader market, the S&P 500, only lost 10% to 20%.

00:02:03.966 --> 00:02:18.766
So when you're creating a trading strategy and when you're backtesting it, you want to make sure that the strategy is robust, that it's not fragile and doesn't fall apart in different market conditions.

00:02:18.800 --> 00:02:28.600
Finally, when you create a trading strategy, you have to be aware that it's a historical simulation which is inherently biased.

00:02:28.633 --> 00:02:34.200
You know, you might create a trading strategy using AI stocks with the highest revenue.

00:02:34.233 --> 00:02:50.866
And you see NVIDIA, Google, and Microsoft are on that list, and you conclude that you should always have a trading strategy that trades these AI stocks. But your perception is biased because you already knew that would happen.

00:02:50.933 --> 00:02:58.333
You know, you already knew that these AI stocks blew up. So that's why you wanted to build an AI trading strategy.

00:02:58.366 --> 00:03:13.033
But next year might not be AI. Next year, it might be nuclear energy, or green energy, or bank stocks. You know, it can be any number of things that change because the overall market conditions change.

00:03:13.100 --> 00:03:17.400
You need to be aware that a backtest is biased.
