7 Best Algo Trading Strategies (Backtests & Rules Included) — Transcript
Full transcript
- 0:00About 90% of trading advice online is
- 0:03impossible to back test and that's why
- 0:06beginners [music] struggle.
- 0:07In this video, we'll share our seven
- 0:10best algorithmic trading strategies for
- 0:12beginners with precise entry and exit
- 0:15rules, all back-tested so you can judge
- 0:18them by data, not stories or opinions.
- 0:22At quantifiedstrategies.com,
- 0:25we ignore opinions. Instead, we rely on
- 0:28data and statistics.
- 0:30We start by presenting algorithmic
- 0:33strategies that trade just a few times
- 0:35per year. As we progress, we'll present
- 0:38strategies that trade frequently.
- 0:41Let's go straight at it and present the
- 0:43first algorithmic trading strategy, the
- 0:46200-day moving average.
- 0:48The famous investor Paul Tudor Jones
- 0:51once said that the 200-day moving
- 0:53average is the first [music] indicator
- 0:55he looks at. Why is that?
- 0:58First, let's see what [music] it looks
- 1:00like on a chart.
- 1:01The red line represents the 200-day
- 1:04moving average.
- 1:05>> [music]
- 1:05>> It lags behind the price since it's
- 1:07based on historical data. One thing to
- 1:10notice [music]
- 1:11is that when the market moves sideways,
- 1:13the indicator produces a lot of
- 1:15whipsaws. So, why does Paul Tudor Jones
- 1:18use it? Because it keeps you [music] out
- 1:20of trouble when a major bear market
- 1:22hits.
- 1:24Here's a simple strategy. You buy
- 1:26[music] when the S&P 500 is above its
- 1:29200-day moving average
- 1:31>> [music]
- 1:31>> and sell when it drops below.
- 1:33Since 1960, this strategy returned 6.6%
- 1:38annually, almost as good as buy and
- 1:40hold's 7.1% [music]
- 1:42not including dividends, but with far
- 1:45smaller drawdowns,
- 1:46>> [music]
- 1:46>> only 28% versus buy and hold's 56%.
- 1:51You are invested about 70% of the time
- 1:55and thus [music] can make interest on
- 1:56your deposit when you are out of the
- 1:58market.
- 1:59Take a look at 2008. [music]
- 2:01This strategy had you exit the market
- 2:03before the financial crisis and [music]
- 2:06re-enter in 2009.
- 2:08You avoided a 55% [music] crash. This is
- 2:12why Paul Tudor Jones loves the 200-day
- 2:14moving average. Once the dust settles,
- 2:17you're compounding [music]
- 2:18from a much higher base.
- 2:21The 200-day moving average also works
- 2:23great as a filter for short-term [music]
- 2:25strategies. Let's show you by using a
- 2:28mean reversion strategy where [music]
- 2:30the 200-day moving average acts as a
- 2:32regime filter.
- 2:34First, we backtest without any filters.
- 2:37We buy when the 5-day RSI dips below 35
- 2:41and sell when it goes above 50.
- 2:44While the equity curve looks decent, the
- 2:46drawdown [music] reaches 31%, something
- 2:49that would make most traders quit. But
- 2:52let's [music] add the 200-day filter. We
- 2:54only trade if the price is above it. If
- 2:57the price is above, it's a bull market
- 3:00>> [music]
- 3:00>> and we can enter during a pullback. If
- 3:02the price is below the average, we stay
- 3:05out. The result? A smoother equity curve
- 3:08because the average gain per trade
- 3:10increases while the drawdowns are
- 3:12significantly reduced. Max drawdown is
- 3:15only 14% and they are [music] quick to
- 3:18recover.
- 3:19That's a psychological advantage as most
- 3:22traders find losses [music] more painful
- 3:25than they enjoy wins.
- 3:27What happens if we flip the filter and
- 3:29only trade when below the 200-day
- 3:32average? Performance becomes [music]
- 3:34more erratic and the drawdowns are
- 3:36bigger.
- 3:38Let's go the second algorithmic trading
- 3:40[music] strategy for beginners, the
- 3:42golden cross. This strategy helps you
- 3:45ride bull markets and reduce losses in
- 3:48bear markets. It's based on the
- 3:50well-known golden cross. [music]
- 3:52A golden cross happens when the 50-day
- 3:55moving average crosses above the 200-day
- 3:58moving average, signaling [music] a
- 4:00bullish breakout. A death cross is the
- 4:03opposite and signals a bearish phase.
- 4:06>> [music]
- 4:07>> But why use it? The stock market
- 4:09generally trends up over time due to
- 4:12inflation and productivity gains.
- 4:15The golden cross captures that trend
- 4:17[music] while helping you sidestep major
- 4:19crashes.
- 4:21You buy when the 50-day MA crosses above
- 4:24the 200-day MA and sell when the 50-day
- 4:27crosses below the 200-day.
- 4:30Let's look at an example.
- 4:32In July 2020, the 50-day MA crossed
- 4:36above the 200-day MA.
- 4:38>> [music]
- 4:38>> Buying here and holding until March 2022
- 4:42would have netted a 32.4% [music] gain.
- 4:46So, how does it perform long-term?
- 4:49We backtested [music] the strategy from
- 4:501960 on the S&P 500. It made just 33
- 4:55trades, each held for roughly 400
- 4:58[music]
- 4:58trading days.
- 5:0079% of the trades were winners. Average
- 5:03gain per trade was 15.7%.
- 5:07The annual return was 6.7%,
- 5:10slightly below buy and hold 7.1%,
- 5:13but remember, the strategy was only
- 5:16invested 70% of the time.
- 5:19Max drawdown 33% compared to 56% for buy
- 5:24and [music] hold. That gives a better
- 5:26risk-adjusted return, 9.6%.
- 5:30Let's go to third algorithmic strategy.
- 5:33This is slightly more complicated and
- 5:35has less data to back it up. However, it
- 5:38requires not much effort. Once a year,
- 5:41rebalance two ETFs, TQQQ
- 5:45and BTAL.
- 5:47TQQQ is a three leveraged ETF tracking
- 5:51the NASDAQ 100. B T A L is an anti-beta
- 5:56ETF that tends to rise when high-beta
- 5:59stocks fall.
- 6:00Together, they offer a mix of aggressive
- 6:02growth and crash protection.
- 6:05Here's the trading rule.
- 6:07In January each year, rebalance to 33% T
- 6:11Q Q Q and 67% B T A L. That's it. The
- 6:17logic is this.
- 6:19T Q Q Q gives you massive upside when
- 6:22NASDAQ trends up, but it's risky. B T A
- 6:26L acts as the hedge. It tends to spike
- 6:29when high-beta stocks drop, [music]
- 6:31offsetting T Q Q Q's losses.
- 6:35Annual rebalancing also avoids
- 6:37volatility drag, which is common when
- 6:39rebalancing more frequently.
- 6:42We backtested this long-term strategy
- 6:44from 2012 to today because we don't have
- 6:47data to go further back in history.
- 6:50Annual return was a solid 18% max
- 6:54drawdown was a moderate 28% and it beat
- 6:57NASDAQ in eight out of the last 13
- 7:00years. But be careful. T Q Q Q is
- 7:04leveraged and [music] risky. It's built
- 7:06for short-term trades, not long-term
- 7:08holds, and always factor in fees and
- 7:11taxes with leveraged ETFs. Still, the
- 7:14combination of upside and protection
- 7:17makes [music] this strategy hard to
- 7:18ignore.
- 7:20Let's get ready for the fourth
- 7:21algorithmic trading strategy for
- 7:23beginners. This one trades the gold
- 7:25price and is a momentum strategy.
- 7:28We found this strategy on the website
- 7:31Allocate [music] Smartly.
- 7:33The core of the gold momentum trading
- 7:35strategy is a well-established
- 7:37relationship between gold prices and
- 7:39treasury yields. Instead of looking at
- 7:42gold in isolation, this strategy uses a
- 7:45simple two-step verification process at
- 7:48the close of each month. The strategy
- 7:50starts by calculating the 12-month total
- 7:53return for both gold, represented by the
- 7:56GLD ETF, and 10-year US Treasuries,
- 8:00represented by IEF. If the 12-month
- 8:03return of both assets is positive, the
- 8:06signal is to take a long position in
- 8:08gold. However, if either gold or
- 8:11Treasuries shows a negative 12-month
- 8:13return, the strategy exits the position
- 8:16and moves to cash, staying there until
- 8:18the next month-end evaluation. While
- 8:21many trading models are complex,
- 8:23>> [music]
- 8:23>> the beauty of the gold momentum strategy
- 8:26lies in its simplicity. Complexity often
- 8:29increases the risk of overfitting, where
- 8:31a strategy is too closely [music]
- 8:33tailored to past data and fails in real
- 8:36time.
- 8:37Back-tested results from 1970 show that
- 8:40the gold momentum strategy has been
- 8:43consistent for over five decades and
- 8:45performed better than buy and hold.
- 8:48Annualized return was a respectable
- 8:5011.5% [music]
- 8:52while max drawdown was 31% compared to
- 8:56buy and hold's 64%. [music] However,
- 8:59there are nuances to its performance.
- 9:01Since roughly 2002, the advantage of the
- 9:05strategy versus a simple buy and hold
- 9:07approach has appeared to wane slightly.
- 9:10The [music] equity curve on the screen
- 9:12shows the return of GLD from its
- 9:14inception [music]
- 9:15until today, which is just above two
- 9:17decades. During this period, gold has
- 9:20risen substantially [music] and the
- 9:22strategy has not managed to catch up.
- 9:25Despite the lower cash returns, the
- 9:27strategy remains similarly effective
- 9:29when looking strictly at the periods
- 9:31when the investor is actually in the
- 9:33market. Gold naturally runs hot and
- 9:36cold. This strategy can go through long
- 9:39periods up to two decades where it might
- 9:42drastically [music]
- 9:42underperform the broader market. Let's
- 9:45try an algorithmic trading strategy that
- 9:48uses one of the most famous [music]
- 9:49trading indicators, the Relative
- 9:51Strength Index. This is a short-term
- 9:54strategy for traders and is our [music]
- 9:56fifth strategy in this video.
- 9:58We make the following trading rules. We
- 10:01buy when the two-day RSI crosses [music]
- 10:04below 10 and we sell when the two-day
- 10:07RSI crosses above 80.
- 10:10We backtest it on S&P 500 by using the
- 10:13ETF with the ticker code SPY and we
- 10:17enter and exit at the close.
- 10:20Our starting capital of $100,000
- 10:23grows to 1.6 million after about 33
- 10:26years, which is 9% annually. This is not
- 10:30too bad for being invested only 27% of
- 10:33the time.
- 10:34However, we can make a second and
- 10:36improved strategy. Let's change the sell
- 10:39criterion and sell when the close is
- 10:42higher than the highest price from
- 10:44yesterday.
- 10:45We buy [music] when the two-day RSI
- 10:47crosses below 10 and we sell when the
- 10:50close is higher than yesterday's [music]
- 10:52high.
- 10:53If you are familiar with our website,
- 10:55you'll know that this exit is what we
- 10:57call the QS exit and is an exit [music]
- 11:00we have employed for the stock market
- 11:02for over two decades.
- 11:04The starting capital of 100,000 grows
- 11:06[music] to 1.2 million, a bit short
- 11:09compared to the first strategy, but you
- 11:11experience a smoother ride with smaller
- 11:14losses.
- 11:15We argue the second strategy is better.
- 11:18Why? Because the max loss from a peak in
- 11:21the equity comes in at 23%
- 11:24but is rarely worse than 12% [music] and
- 11:26lasts for a short time. You suffer less
- 11:29when using the second strategy.
- 11:32The drawdowns in the first strategy is
- 11:34on the left side and the second strategy
- 11:36is on the right side. On the right side,
- 11:39the losses are both smaller and shorter,
- 11:41[music] resulting in a better recovery
- 11:43factor, exactly what you were looking
- 11:45for in a trading strategy.
- 11:47The second [music] strategy spends 10%
- 11:50less time in the market and hence gets a
- 11:52better risk-adjusted [music] return.
- 11:54The performance metrics for the first
- 11:56strategy is on the left and the second
- 11:58[music] is on the right.
- 12:00We are traders and we would prefer to
- 12:02trade the strategy with the best
- 12:04statistics and metrics and that's
- 12:06strategy two on the right side.
- 12:09Let's go to our sixth algorithmic
- 12:11trading strategy for beginners.
- 12:13This time we're using a trend filter
- 12:15called the choppiness index.
- 12:17The choppiness index [music] is an
- 12:19indicator created by an Australian
- 12:21commodity trader, Bill Dreiss, to show
- 12:24when a market is choppy or trending.
- 12:26A choppy [music] market is one that is
- 12:28ranging or in a consolidation.
- 12:31The indicator is assigned values from 0
- 12:33[music] to 100. High values signify
- 12:36choppy waters, indicating a market
- 12:39caught in a range or consolidation,
- 12:41while low values hint at a potential
- 12:44trend.
- 12:45The negative is that the index is a bit
- 12:47complicated to calculate.
- 12:49Now, let's talk about the strategy.
- 12:52We backtested the choppiness index on
- 12:54SPY, the ETF tracking the S&P 500, and
- 12:59the results are pretty good. We combined
- 13:01the choppiness index and the relative
- 13:03strength index. The choppiness index is
- 13:06used as a trend filter, while we time
- 13:09entries with the RSI.
- 13:11Our strategy is simple, yet effective.
- 13:14When the choppiness index dips [music]
- 13:16below 50, signaling a range-bound
- 13:19market, and the two-day RSI falls below
- 13:2220, we go long.
- 13:25The idea is to avoid trending markets.
- 13:28We sell our position when the close ends
- 13:30higher than yesterday's [music] close or
- 13:33after five trading days.
- 13:35The backtest reveals an average return
- 13:38of 0.69%
- 13:40per trade with the strategy invested
- 13:43only 15% of the time yielding 8.5%
- 13:45[music]
- 13:47annually.
- 13:48The performance equals a risk-adjusted
- 13:51return of 52%
- 13:53and max drawdown is 23%.
- 13:56We have covered six algorithmic trading
- 13:59strategies. Now, let's look at the
- 14:00seventh and the last. This is a seasonal
- 14:04algorithmic strategy that [music] only
- 14:06trades at a certain day of the week,
- 14:08namely Mondays.
- 14:10The strategy is called Turnaround
- 14:12[music] Tuesday.
- 14:14We make the following trading rules.
- 14:16If today is Monday and the close ends
- 14:19lower than the lowest price recorded on
- 14:22Friday, we buy the close of S&P 500 on
- 14:26Monday.
- 14:27We sell when the close ends higher than
- 14:29the high of the previous day or after
- 14:32four trading days.
- 14:34This very simple strategy has performed
- 14:36well. $100,000
- 14:39invested in 1993
- 14:41is [music] worth $800,000
- 14:43today.
- 14:44The 0.6% [music] gain per trade
- 14:47compounded at 6.5%
- 14:50annually while [music] being invested
- 14:52only 11% of the time. Max drawdown was
- 14:5620%. [music]
- 14:57We believe these are very good metrics
- 14:59for such a simple idea.
- 15:01By the way,
- 15:02>> [music]
- 15:02>> we presented this strategy for the first
- 15:04time 12 years ago on our website
- 15:07quantifiedstrategies.com.
- 15:09So, please make sure you check it out.
- 15:11We have hundreds of both free and paid
- 15:14strategies.
- 15:16This was all for today. If you liked it,
- 15:18please help us grow by like and
- 15:20subscribe.
About this transcript
This page contains the full transcript of 7 Best Algo Trading Strategies (Backtests & Rules Included) by Quantified Strategies, generated from the public captions YouTube serves with the video. The transcript has 2,161 words across 376 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.