Learn algorithmic trading
Everything here runs on real data: 708+ backtests computed by the same engine that executes live DeployQuant strategies. Start anywhere.
Build it from blocks (or type it in English), backtest it on 5.7 years of minute data in seconds, tweak any parameter, then paper trade it on live data. No card, no broker needed to start.
This section holds 981 pages, and every number on them comes from one engine run over one window: 2021-01-04 to 2026-10-02, which is 5.74 years of daily-decision rules on minute-resolution US market data. Each test starts with $10,000, uses no margin, and fills orders on minute bars. The headline run charges no fees and no slippage. Separate cost runs add 5 and 10 basis points so you can see how much of a result survives friction.
The pages are built from 12 strategies and 59 ETFs. Each strategy runs on each fund, and each result sits next to buy-and-hold on the same fund and the same dates. The section also has 66 head-to-head strategy comparisons, 81 glossary terms, 45 answers and three broker guides. All of it is hypothetical. A backtest records what a rule would have done in the past on one stretch of data. It does not predict what the rule does next.
The text under the link grid covers what the 12 strategies have in common, what the medians say, how the market behaved over the window, and where the test stops.
Popular pages
What the 12 strategies are
The 12 systems fall into five families. Four are trend rules: the golden cross, the SMA 10/50 trend, the EMA 12/26 trend and the 200-day regime filter. They hold an asset while a faster average sits above a slower one, or while price sits above its 200-day average, and move to cash otherwise. Two are mean-reversion rules: RSI mean reversion buys when the 14-day RSI drops below 30 and sells above 70, and the RSI(2) snapback buys 2-day RSI readings under 10 and exits once RSI(2) recovers above 70.
Three rules use a profit target or a stop. The weekly 7% target buys at the first open of the week, rests a +7% target, and exits Thursday afternoon if the trade is losing. The dip buyer waits for a 10% drawdown from the 20-day high and takes profit at +8%. The trend plus trailing stop enters above the 200-day average and exits only on a 15% trailing stop.
Two rules measure momentum. The momentum breakout buys after a +10% four-week burst and a 10% trailing stop sets the exit. The 3-month momentum rule holds while the trailing 3-month return is positive, entering above +5% and leaving below 0%. The last strategy, the monthly cycle, buys the first session of each month and sells the last. It is a calendar-seasonality test, with no price signal at all.
Every rule is simple on purpose. A rule with two parameters can be read in one sentence, and the reader can see which parameter drove a result. Each strategy page also runs parameter variants, so a result that depends on one exact setting shows up as a spread across the variants.
What the medians across 59 ETFs show
Each strategy's page reports a median across the 59 funds, which keeps a single lucky fund from setting the tone. The medians are small. The weekly 7% target has the highest median CAGR at 6.61%, followed by the monthly cycle at 5.46% and the RSI(2) snapback at 4.74%. At the other end, the momentum breakout and the 3-month momentum rule both have a median CAGR of 0%, and the dip buyer sits at 1.33%.
Those medians are for the whole universe, which includes bond funds, inverse funds, volatility products and leveraged funds. Several of those lost money over the window under buy-and-hold, so a median near zero says as much about the universe as about the rule. The count of funds where the strategy beat buy-and-hold is the better comparison. The RSI(2) snapback and the weekly 7% target each beat buy-and-hold on 34 of 59 funds. RSI mean reversion did so on 25, the 200-day regime filter on 26, and the golden cross on 27. The monthly cycle beat buy-and-hold on only 14, the fewest of the 12.
Drawdown medians separate the families. The RSI(2) snapback has the shallowest median max drawdown at 17.47%, and the momentum breakout is next at 20.1%. The trend plus trailing stop has the deepest median at 31.15%, with the monthly cycle at 36.63% higher still. The monthly cycle is out of the market for part of each month, yet its median drawdown is the deepest in the table. A rule can spend time in cash and still sit in the fund during its worst stretch.
Trade counts differ by a wide margin. The golden cross has a median of 3 round trips over the window, the dip buyer 2, and the trend plus trailing stop 4. The RSI(2) snapback has a median of 166, and the weekly 7% target 106. A rule with 3 round trips gives a result that rests on a handful of decisions, so its CAGR is close to anecdote. A rule with 166 gives a statistic you can at least average, though it is still a single path of history.
The market the test ran through
The window opens in January 2021 and closes in October 2026. That is one full bear market and recovery for stocks, and it matters for reading every number in the section.
SPY returned 125.29% over the window, a CAGR of 15.2% with annualized volatility of 16.41%. Its worst drawdown was 24.51%, from the peak on 2022-01-03 to the trough on 2022-10-12, and it did not recover until 2023-12-13. Calendar years ran from 30.46% in 2021 to a loss of 18.16% in 2022, then 26.18% in 2023, 24.86% in 2024 and 17.72% in 2025.
QQQ did better in total, with a 151.07% return and a CAGR of 17.39%, and it carried more risk: volatility of 22.39% and a drawdown of 35%, from 2021-11-19 to 2022-11-03. It lost 32.39% in 2022 and gained 54.81% in 2023. TQQQ, the 3x Nasdaq fund, returned 291.92% with a CAGR of 26.86%. Its volatility was 67.11% and its drawdown 81.68%, from 2021-11-19 to 2022-12-28, with recovery on 2024-12-04. In 2022 it lost 79.07%, and in 2023 it gained 198.32%.
IWM returned 55.8% with a CAGR of 8.03%, and it took until 2024-11-06 to recover from its drawdown of 31.92%. TLT, the long-bond fund, lost 40.49% in total, with a CAGR of -8.64%, a drawdown of 44.06%, and no recovery by the end of the window. UVXY, a volatility product, lost 99.94% with a CAGR of -72.83%, and it fell in every calendar year of the window.
A window with a 2022 bear market suits some rules and hurts others. Trend filters had a clear event to react to. Dip buyers had many dips to buy, and in 2022 some of them kept falling. A strategy that looks good here has been tested on one bear market and one long recovery. It has not been tested on a decade-long sideways market, an earlier crash, or a period of rising rates that began from a different starting point. The window is what the minute data supports.
What 5.74 years of SPY looks like to a rule
SPY makes a useful reference because every strategy page can be read against it. It was above its 200-day average on 77.99% of sessions and crossed that average 30 times. That crossing count is the raw material for the 200-day regime filter and the trend plus trailing stop. Thirty crossings in 5.74 years means a filter that reacts to every cross will whipsaw several times, and the 200-day regime filter's median of 18 round trips across the universe reflects that.
For mean reversion, the counts are very different between the two RSI settings. RSI(14) fell below 30 on only 18 sessions, so the RSI mean-reversion rule has few chances on SPY. RSI(2) fell below 10 on 146 sessions, which is why the snapback rule trades often. After RSI(14) dropped below 30, the median 5-day forward return was 3.74% and the median 20-day forward return 2.86%, from a sample of 18. The baseline median over all sessions was 0.42% over 5 days and 1.73% over 20. After RSI(2) dipped under 10, the median 5-day return was 0.89% and the 20-day return 2.29%, from 146 and 145 observations.
Those forward returns lean positive after oversold readings, and the RSI(14) sample of 18 is small. Eighteen events are clustered in a few episodes, so they are closer to a handful of independent observations than to 18.
Daily returns were close to a coin flip. SPY closed up on 54.4% of sessions, with an average up day of 0.74% and an average down day of -0.74%. The lag-1 autocorrelation was -0.02, which is near zero, so yesterday's return carried almost no information about today's. Month-of-year averages ranged from 4.01% in November to -2.21% in September, but each month has only 5 or 6 observations. The monthly cycle strategy exists to test that kind of calendar pattern, and its 14 wins in 59 funds against buy-and-hold shows how hard it was to harvest.
How the numbers are produced
The engine is the same one that executes live DeployQuant strategies. A strategy decides once per day. The order then fills on minute bars, not at the daily close, which matters for rules like the weekly 7% target that rest limit orders. Prices in trade lists are adjusted for splits and dividends, so they are lower than the quotes printed at the time. Treat them as adjusted prices.
Buy-and-hold in these tests puts 98% of the account in at the first open, as the strategy templates do. That keeps the comparison fair: both sides start from the same cash and the same first bar. SPY's buy-and-hold run ended at $21,820.48 from $10,000, with a CAGR of 14.56%, a max drawdown of 23.99% and a Sharpe ratio of 0.95. The SPY market profile above shows a CAGR of 15.2%, measured on the fund's own price series, and the buy-and-hold run is the one that starts from $10,000 with 98% invested. QQQ's buy-and-hold ended at $24,264.64, TQQQ's at $36,585.29, IWM's at $15,145.24 and TLT's at $6,106.38. UVXY's ended at $215.70.
Each headline run excludes fees and slippage. The cost runs on each page add 5 and 10 basis points per trade. A rule with 166 round trips pays that cost 166 times, and a rule with 3 pays it 3 times, so cost drag falls hardest on the high-frequency rules. The strategy pages show the cost runs next to the headline so the reader sees both.
The tests have no margin and no short selling. Inverse and leveraged funds such as TQQQ are tested as ordinary long positions in the fund itself, which means their decay and compounding effects are already in the price series. The strategies do not borrow, and they do not size positions by risk. They are all-in or all-out rules on one fund at a time. A real portfolio would spread across several funds and several rules, and none of these pages measures that.
How to read a strategy page
Each strategy page opens with headline stats for one fund: CAGR, max drawdown, Sharpe, round trips, win rate, and the same figures for buy-and-hold. Below that come year-by-year and month-by-month tables, every trade, the deepest drawdowns, the cost runs and the parameter variants.
Start with the drawdown table before the CAGR. A strategy with a CAGR above buy-and-hold and a deeper drawdown has not improved on the fund; it has taken more risk for the same fund. A strategy with a lower CAGR and a much shallower drawdown may have done its job as a filter. The RSI(2) snapback's median drawdown of 17.47% against 24.63% for RSI mean reversion is an example of a difference that shows up in the family medians before any single fund is opened.
Then check the trade count. A golden cross run with 3 round trips on a fund says something about that fund's trend, not about the rule. The yearly table shows whether one year produced the whole result. On TQQQ, the 198.32% gain in 2023 and the 79.07% loss in 2022 dominate any rule's result, so the yearly table is where the real story sits.
Last, check the parameter variants. If the 200-day average works and a shorter average does not, the original setting probably fit the window by accident. If both work, the idea is more likely to hold up. The variants are a sensitivity check. They are not an optimization, and choosing the best variant after seeing the results would defeat the purpose.
How the 59 funds were chosen to cover different behaviors
The universe spans broad stock funds, leveraged and inverse funds, bond funds, volatility products and alternative strategies. That spread is deliberate. A rule that works on SPY and fails on TLT tells you that the rule depends on a trending, rising asset. A rule that works on both is less tied to one market regime.
The six market profiles above show the range. SPY and QQQ rose, and their 2022 drawdowns were 24.51% and 35%. TQQQ rose more but fell 81.68% at its worst. TLT lost money and its drawdown had no recovery. UVXY decayed to almost nothing. A single rule applied across all of these produces very different CAGRs, and the medians on each strategy page average over that spread.
Each fund has its own page at /learn/etf/, where all 12 strategies are ranked on that fund. That view answers a different question from the strategy view. The strategy page asks how a rule behaves across funds. The fund page asks which rule suited that fund, and why its volatility, gaps and trend persistence favored it.
Limits of the test
The data covers 2021-01-04 to 2026-10-02 and nothing earlier. All 12 strategies share this window, so their results are correlated through the same market events. Beating buy-and-hold on 34 of 59 funds is a count inside that one path, and it carries no claim about other decades.
The rules run on daily decisions, so none of this tests intraday or high-frequency ideas. There are no fees in the headline run, no taxes anywhere, and no modelling of a broker's rejected orders or partial fills. Cost runs at 5 and 10 basis points are a rough guide to friction, not a record of what a particular broker charged.
Thinly traded funds have wide spreads that a minute-bar fill model only approximates. Where a result looks too good, check the trade count and the fund's volume before taking it at face value.
Nothing here is investment advice. A rule that did well in this window can lose money in the next one. The pages exist so you can inspect how a rule behaved, test your own variation, and paper trade it before risking money.
Frequently asked questions
What does the DeployQuant learn section cover?
It covers 12 strategies run on 59 ETFs, with 66 strategy comparisons, 81 glossary terms, 45 answers and three broker guides. Every backtest uses the same window, 2021-01-04 to 2026-10-02, and a $10,000 starting account. Each result is shown next to buy-and-hold on the same fund.
What data and costs do the backtests use?
The engine runs daily-decision rules on minute-resolution consolidated US market data, and orders fill on minute bars. The headline run has no fees and no slippage, and cost runs add 5 and 10 basis points. There is no margin in any test.
Which strategy had the best median result across the 59 ETFs?
The weekly 7% target had the highest median CAGR at 6.61%, ahead of the monthly cycle at 5.46% and the RSI(2) snapback at 4.74%. The weekly 7% target and the RSI(2) snapback each beat buy-and-hold on 34 of 59 funds. The monthly cycle beat it on only 14.
Which strategy had the shallowest drawdowns?
The RSI(2) snapback had the lowest median max drawdown at 17.47%. The momentum breakout followed at 20.1%. The trend plus trailing stop had a median of 31.15% and the monthly cycle 36.63%.
How did SPY and QQQ do over the test window?
SPY returned 125.29% with a CAGR of 15.2% and a worst drawdown of 24.51%. QQQ returned 151.07% with a CAGR of 17.39% and a drawdown of 35%. Both fell hardest in 2022, with SPY down 18.16% and QQQ down 32.39% for the year.
Do these backtests predict future returns?
No. They record how a rule behaved in one window that includes the 2022 bear market. A different period can give a different result, and nothing on these pages is investment advice.
Why do the pages report medians instead of one best result?
A median across 59 funds shows how a rule behaves in general. One fund can produce a high CAGR through luck, a short window or a single large year. The count of funds that beat buy-and-hold adds a second view of consistency.
Backtests are hypothetical, computed by DeployQuant's engine on minute-resolution consolidated US market data (2021-01-04 to 2026-10-02, $10,000 starting capital, no margin, no fees or slippage in the headline run; buy-and-hold puts 98% of the account in at the first open, as the templates do) and do not guarantee future results. Nothing on this page is investment advice. Live trading involves risk of loss.