YouTube2Text

7 Best Algo Trading Strategies (Backtests & Rules Included) — Transcript

by Quantified Strategies · 2,161 words · 376 segments · language en · Watch on YouTube

Full transcript

  1. 0:00About 90% of trading advice online is
  2. 0:03impossible to back test and that's why
  3. 0:06beginners [music] struggle.
  4. 0:07In this video, we'll share our seven
  5. 0:10best algorithmic trading strategies for
  6. 0:12beginners with precise entry and exit
  7. 0:15rules, all back-tested so you can judge
  8. 0:18them by data, not stories or opinions.
  9. 0:22At quantifiedstrategies.com,
  10. 0:25we ignore opinions. Instead, we rely on
  11. 0:28data and statistics.
  12. 0:30We start by presenting algorithmic
  13. 0:33strategies that trade just a few times
  14. 0:35per year. As we progress, we'll present
  15. 0:38strategies that trade frequently.
  16. 0:41Let's go straight at it and present the
  17. 0:43first algorithmic trading strategy, the
  18. 0:46200-day moving average.
  19. 0:48The famous investor Paul Tudor Jones
  20. 0:51once said that the 200-day moving
  21. 0:53average is the first [music] indicator
  22. 0:55he looks at. Why is that?
  23. 0:58First, let's see what [music] it looks
  24. 1:00like on a chart.
  25. 1:01The red line represents the 200-day
  26. 1:04moving average.
  27. 1:05>> [music]
  28. 1:05>> It lags behind the price since it's
  29. 1:07based on historical data. One thing to
  30. 1:10notice [music]
  31. 1:11is that when the market moves sideways,
  32. 1:13the indicator produces a lot of
  33. 1:15whipsaws. So, why does Paul Tudor Jones
  34. 1:18use it? Because it keeps you [music] out
  35. 1:20of trouble when a major bear market
  36. 1:22hits.
  37. 1:24Here's a simple strategy. You buy
  38. 1:26[music] when the S&P 500 is above its
  39. 1:29200-day moving average
  40. 1:31>> [music]
  41. 1:31>> and sell when it drops below.
  42. 1:33Since 1960, this strategy returned 6.6%
  43. 1:38annually, almost as good as buy and
  44. 1:40hold's 7.1% [music]
  45. 1:42not including dividends, but with far
  46. 1:45smaller drawdowns,
  47. 1:46>> [music]
  48. 1:46>> only 28% versus buy and hold's 56%.
  49. 1:51You are invested about 70% of the time
  50. 1:55and thus [music] can make interest on
  51. 1:56your deposit when you are out of the
  52. 1:58market.
  53. 1:59Take a look at 2008. [music]
  54. 2:01This strategy had you exit the market
  55. 2:03before the financial crisis and [music]
  56. 2:06re-enter in 2009.
  57. 2:08You avoided a 55% [music] crash. This is
  58. 2:12why Paul Tudor Jones loves the 200-day
  59. 2:14moving average. Once the dust settles,
  60. 2:17you're compounding [music]
  61. 2:18from a much higher base.
  62. 2:21The 200-day moving average also works
  63. 2:23great as a filter for short-term [music]
  64. 2:25strategies. Let's show you by using a
  65. 2:28mean reversion strategy where [music]
  66. 2:30the 200-day moving average acts as a
  67. 2:32regime filter.
  68. 2:34First, we backtest without any filters.
  69. 2:37We buy when the 5-day RSI dips below 35
  70. 2:41and sell when it goes above 50.
  71. 2:44While the equity curve looks decent, the
  72. 2:46drawdown [music] reaches 31%, something
  73. 2:49that would make most traders quit. But
  74. 2:52let's [music] add the 200-day filter. We
  75. 2:54only trade if the price is above it. If
  76. 2:57the price is above, it's a bull market
  77. 3:00>> [music]
  78. 3:00>> and we can enter during a pullback. If
  79. 3:02the price is below the average, we stay
  80. 3:05out. The result? A smoother equity curve
  81. 3:08because the average gain per trade
  82. 3:10increases while the drawdowns are
  83. 3:12significantly reduced. Max drawdown is
  84. 3:15only 14% and they are [music] quick to
  85. 3:18recover.
  86. 3:19That's a psychological advantage as most
  87. 3:22traders find losses [music] more painful
  88. 3:25than they enjoy wins.
  89. 3:27What happens if we flip the filter and
  90. 3:29only trade when below the 200-day
  91. 3:32average? Performance becomes [music]
  92. 3:34more erratic and the drawdowns are
  93. 3:36bigger.
  94. 3:38Let's go the second algorithmic trading
  95. 3:40[music] strategy for beginners, the
  96. 3:42golden cross. This strategy helps you
  97. 3:45ride bull markets and reduce losses in
  98. 3:48bear markets. It's based on the
  99. 3:50well-known golden cross. [music]
  100. 3:52A golden cross happens when the 50-day
  101. 3:55moving average crosses above the 200-day
  102. 3:58moving average, signaling [music] a
  103. 4:00bullish breakout. A death cross is the
  104. 4:03opposite and signals a bearish phase.
  105. 4:06>> [music]
  106. 4:07>> But why use it? The stock market
  107. 4:09generally trends up over time due to
  108. 4:12inflation and productivity gains.
  109. 4:15The golden cross captures that trend
  110. 4:17[music] while helping you sidestep major
  111. 4:19crashes.
  112. 4:21You buy when the 50-day MA crosses above
  113. 4:24the 200-day MA and sell when the 50-day
  114. 4:27crosses below the 200-day.
  115. 4:30Let's look at an example.
  116. 4:32In July 2020, the 50-day MA crossed
  117. 4:36above the 200-day MA.
  118. 4:38>> [music]
  119. 4:38>> Buying here and holding until March 2022
  120. 4:42would have netted a 32.4% [music] gain.
  121. 4:46So, how does it perform long-term?
  122. 4:49We backtested [music] the strategy from
  123. 4:501960 on the S&P 500. It made just 33
  124. 4:55trades, each held for roughly 400
  125. 4:58[music]
  126. 4:58trading days.
  127. 5:0079% of the trades were winners. Average
  128. 5:03gain per trade was 15.7%.
  129. 5:07The annual return was 6.7%,
  130. 5:10slightly below buy and hold 7.1%,
  131. 5:13but remember, the strategy was only
  132. 5:16invested 70% of the time.
  133. 5:19Max drawdown 33% compared to 56% for buy
  134. 5:24and [music] hold. That gives a better
  135. 5:26risk-adjusted return, 9.6%.
  136. 5:30Let's go to third algorithmic strategy.
  137. 5:33This is slightly more complicated and
  138. 5:35has less data to back it up. However, it
  139. 5:38requires not much effort. Once a year,
  140. 5:41rebalance two ETFs, TQQQ
  141. 5:45and BTAL.
  142. 5:47TQQQ is a three leveraged ETF tracking
  143. 5:51the NASDAQ 100. B T A L is an anti-beta
  144. 5:56ETF that tends to rise when high-beta
  145. 5:59stocks fall.
  146. 6:00Together, they offer a mix of aggressive
  147. 6:02growth and crash protection.
  148. 6:05Here's the trading rule.
  149. 6:07In January each year, rebalance to 33% T
  150. 6:11Q Q Q and 67% B T A L. That's it. The
  151. 6:17logic is this.
  152. 6:19T Q Q Q gives you massive upside when
  153. 6:22NASDAQ trends up, but it's risky. B T A
  154. 6:26L acts as the hedge. It tends to spike
  155. 6:29when high-beta stocks drop, [music]
  156. 6:31offsetting T Q Q Q's losses.
  157. 6:35Annual rebalancing also avoids
  158. 6:37volatility drag, which is common when
  159. 6:39rebalancing more frequently.
  160. 6:42We backtested this long-term strategy
  161. 6:44from 2012 to today because we don't have
  162. 6:47data to go further back in history.
  163. 6:50Annual return was a solid 18% max
  164. 6:54drawdown was a moderate 28% and it beat
  165. 6:57NASDAQ in eight out of the last 13
  166. 7:00years. But be careful. T Q Q Q is
  167. 7:04leveraged and [music] risky. It's built
  168. 7:06for short-term trades, not long-term
  169. 7:08holds, and always factor in fees and
  170. 7:11taxes with leveraged ETFs. Still, the
  171. 7:14combination of upside and protection
  172. 7:17makes [music] this strategy hard to
  173. 7:18ignore.
  174. 7:20Let's get ready for the fourth
  175. 7:21algorithmic trading strategy for
  176. 7:23beginners. This one trades the gold
  177. 7:25price and is a momentum strategy.
  178. 7:28We found this strategy on the website
  179. 7:31Allocate [music] Smartly.
  180. 7:33The core of the gold momentum trading
  181. 7:35strategy is a well-established
  182. 7:37relationship between gold prices and
  183. 7:39treasury yields. Instead of looking at
  184. 7:42gold in isolation, this strategy uses a
  185. 7:45simple two-step verification process at
  186. 7:48the close of each month. The strategy
  187. 7:50starts by calculating the 12-month total
  188. 7:53return for both gold, represented by the
  189. 7:56GLD ETF, and 10-year US Treasuries,
  190. 8:00represented by IEF. If the 12-month
  191. 8:03return of both assets is positive, the
  192. 8:06signal is to take a long position in
  193. 8:08gold. However, if either gold or
  194. 8:11Treasuries shows a negative 12-month
  195. 8:13return, the strategy exits the position
  196. 8:16and moves to cash, staying there until
  197. 8:18the next month-end evaluation. While
  198. 8:21many trading models are complex,
  199. 8:23>> [music]
  200. 8:23>> the beauty of the gold momentum strategy
  201. 8:26lies in its simplicity. Complexity often
  202. 8:29increases the risk of overfitting, where
  203. 8:31a strategy is too closely [music]
  204. 8:33tailored to past data and fails in real
  205. 8:36time.
  206. 8:37Back-tested results from 1970 show that
  207. 8:40the gold momentum strategy has been
  208. 8:43consistent for over five decades and
  209. 8:45performed better than buy and hold.
  210. 8:48Annualized return was a respectable
  211. 8:5011.5% [music]
  212. 8:52while max drawdown was 31% compared to
  213. 8:56buy and hold's 64%. [music] However,
  214. 8:59there are nuances to its performance.
  215. 9:01Since roughly 2002, the advantage of the
  216. 9:05strategy versus a simple buy and hold
  217. 9:07approach has appeared to wane slightly.
  218. 9:10The [music] equity curve on the screen
  219. 9:12shows the return of GLD from its
  220. 9:14inception [music]
  221. 9:15until today, which is just above two
  222. 9:17decades. During this period, gold has
  223. 9:20risen substantially [music] and the
  224. 9:22strategy has not managed to catch up.
  225. 9:25Despite the lower cash returns, the
  226. 9:27strategy remains similarly effective
  227. 9:29when looking strictly at the periods
  228. 9:31when the investor is actually in the
  229. 9:33market. Gold naturally runs hot and
  230. 9:36cold. This strategy can go through long
  231. 9:39periods up to two decades where it might
  232. 9:42drastically [music]
  233. 9:42underperform the broader market. Let's
  234. 9:45try an algorithmic trading strategy that
  235. 9:48uses one of the most famous [music]
  236. 9:49trading indicators, the Relative
  237. 9:51Strength Index. This is a short-term
  238. 9:54strategy for traders and is our [music]
  239. 9:56fifth strategy in this video.
  240. 9:58We make the following trading rules. We
  241. 10:01buy when the two-day RSI crosses [music]
  242. 10:04below 10 and we sell when the two-day
  243. 10:07RSI crosses above 80.
  244. 10:10We backtest it on S&P 500 by using the
  245. 10:13ETF with the ticker code SPY and we
  246. 10:17enter and exit at the close.
  247. 10:20Our starting capital of $100,000
  248. 10:23grows to 1.6 million after about 33
  249. 10:26years, which is 9% annually. This is not
  250. 10:30too bad for being invested only 27% of
  251. 10:33the time.
  252. 10:34However, we can make a second and
  253. 10:36improved strategy. Let's change the sell
  254. 10:39criterion and sell when the close is
  255. 10:42higher than the highest price from
  256. 10:44yesterday.
  257. 10:45We buy [music] when the two-day RSI
  258. 10:47crosses below 10 and we sell when the
  259. 10:50close is higher than yesterday's [music]
  260. 10:52high.
  261. 10:53If you are familiar with our website,
  262. 10:55you'll know that this exit is what we
  263. 10:57call the QS exit and is an exit [music]
  264. 11:00we have employed for the stock market
  265. 11:02for over two decades.
  266. 11:04The starting capital of 100,000 grows
  267. 11:06[music] to 1.2 million, a bit short
  268. 11:09compared to the first strategy, but you
  269. 11:11experience a smoother ride with smaller
  270. 11:14losses.
  271. 11:15We argue the second strategy is better.
  272. 11:18Why? Because the max loss from a peak in
  273. 11:21the equity comes in at 23%
  274. 11:24but is rarely worse than 12% [music] and
  275. 11:26lasts for a short time. You suffer less
  276. 11:29when using the second strategy.
  277. 11:32The drawdowns in the first strategy is
  278. 11:34on the left side and the second strategy
  279. 11:36is on the right side. On the right side,
  280. 11:39the losses are both smaller and shorter,
  281. 11:41[music] resulting in a better recovery
  282. 11:43factor, exactly what you were looking
  283. 11:45for in a trading strategy.
  284. 11:47The second [music] strategy spends 10%
  285. 11:50less time in the market and hence gets a
  286. 11:52better risk-adjusted [music] return.
  287. 11:54The performance metrics for the first
  288. 11:56strategy is on the left and the second
  289. 11:58[music] is on the right.
  290. 12:00We are traders and we would prefer to
  291. 12:02trade the strategy with the best
  292. 12:04statistics and metrics and that's
  293. 12:06strategy two on the right side.
  294. 12:09Let's go to our sixth algorithmic
  295. 12:11trading strategy for beginners.
  296. 12:13This time we're using a trend filter
  297. 12:15called the choppiness index.
  298. 12:17The choppiness index [music] is an
  299. 12:19indicator created by an Australian
  300. 12:21commodity trader, Bill Dreiss, to show
  301. 12:24when a market is choppy or trending.
  302. 12:26A choppy [music] market is one that is
  303. 12:28ranging or in a consolidation.
  304. 12:31The indicator is assigned values from 0
  305. 12:33[music] to 100. High values signify
  306. 12:36choppy waters, indicating a market
  307. 12:39caught in a range or consolidation,
  308. 12:41while low values hint at a potential
  309. 12:44trend.
  310. 12:45The negative is that the index is a bit
  311. 12:47complicated to calculate.
  312. 12:49Now, let's talk about the strategy.
  313. 12:52We backtested the choppiness index on
  314. 12:54SPY, the ETF tracking the S&P 500, and
  315. 12:59the results are pretty good. We combined
  316. 13:01the choppiness index and the relative
  317. 13:03strength index. The choppiness index is
  318. 13:06used as a trend filter, while we time
  319. 13:09entries with the RSI.
  320. 13:11Our strategy is simple, yet effective.
  321. 13:14When the choppiness index dips [music]
  322. 13:16below 50, signaling a range-bound
  323. 13:19market, and the two-day RSI falls below
  324. 13:2220, we go long.
  325. 13:25The idea is to avoid trending markets.
  326. 13:28We sell our position when the close ends
  327. 13:30higher than yesterday's [music] close or
  328. 13:33after five trading days.
  329. 13:35The backtest reveals an average return
  330. 13:38of 0.69%
  331. 13:40per trade with the strategy invested
  332. 13:43only 15% of the time yielding 8.5%
  333. 13:45[music]
  334. 13:47annually.
  335. 13:48The performance equals a risk-adjusted
  336. 13:51return of 52%
  337. 13:53and max drawdown is 23%.
  338. 13:56We have covered six algorithmic trading
  339. 13:59strategies. Now, let's look at the
  340. 14:00seventh and the last. This is a seasonal
  341. 14:04algorithmic strategy that [music] only
  342. 14:06trades at a certain day of the week,
  343. 14:08namely Mondays.
  344. 14:10The strategy is called Turnaround
  345. 14:12[music] Tuesday.
  346. 14:14We make the following trading rules.
  347. 14:16If today is Monday and the close ends
  348. 14:19lower than the lowest price recorded on
  349. 14:22Friday, we buy the close of S&P 500 on
  350. 14:26Monday.
  351. 14:27We sell when the close ends higher than
  352. 14:29the high of the previous day or after
  353. 14:32four trading days.
  354. 14:34This very simple strategy has performed
  355. 14:36well. $100,000
  356. 14:39invested in 1993
  357. 14:41is [music] worth $800,000
  358. 14:43today.
  359. 14:44The 0.6% [music] gain per trade
  360. 14:47compounded at 6.5%
  361. 14:50annually while [music] being invested
  362. 14:52only 11% of the time. Max drawdown was
  363. 14:5620%. [music]
  364. 14:57We believe these are very good metrics
  365. 14:59for such a simple idea.
  366. 15:01By the way,
  367. 15:02>> [music]
  368. 15:02>> we presented this strategy for the first
  369. 15:04time 12 years ago on our website
  370. 15:07quantifiedstrategies.com.
  371. 15:09So, please make sure you check it out.
  372. 15:11We have hundreds of both free and paid
  373. 15:14strategies.
  374. 15:16This was all for today. If you liked it,
  375. 15:18please help us grow by like and
  376. 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.