A post on X last week, seen more than 180,000 times, said someone had open-sourced "a full library of backtested trading bots." It named the best one: "RSI Reversion, +133% with a 75% win rate." It also named a loser: "RSI Dip: −27.9%." The library is real. It's QuantJourney's backtester on GitHub, with more than 700 stars, and both strategies are in its strategies folder with their code.
Because the code is public, I could test the claim directly. I ran both strategies exactly as written, on the three ETFs the code trades (SPY, QQQ and IWM), from September 2003 to November 2026, with the repo's position sizes and costs. Then I compared each one with random entries on the same ETFs. I also ran the rules on the 1,000 most-traded U.S. stocks each month, delisted names included. I tested these two strategies only, not the rest of the library.
How I tested it
RSI Reversion, as written: with no position open, buy at the next open when the 14-day RSI closes below 35, putting 12% of the account in. Sell at the next open when the RSI closes above 60.
RSI Dip, as written: with no position open, when the RSI closes below 40, place a buy order 1.5% below that close, good for three days, with 15% of the account. Once filled, place a sell order 3% above the entry. There's no stop, so a position stays open until it makes 3%.
Universe: SPY, QQQ and IWM, each traded separately, so at most three positions are open at once. QQQ traded as QQQQ from 2004 to 2011; I joined the two into one series.
Costs: the library's defaults plus each ETF's measured bid-ask spread. Dividends are included. Idle cash earns nothing, as in the repo.
Comparison: for RSI Reversion, random entries on the same ETF with the same holding times, drawn 1,000 times. For RSI Dip, the same buy-and-sell orders placed on random days instead of RSI days, drawn 200 times. A strategy with a real signal should beat most of those draws.
The backtest engine is the desk's own, not QuantJourney's. Its results come close to the repo's published ones.
What I found
The numbers in the post aren't the repo's numbers. The library's own published results show RSI Reversion at +29.1% over 2001–2025 with a 71.6% win rate, and RSI Dip at +94.7% with a 100% win rate. I couldn't find +133% or −27.9% anywhere in the repo, its README history or its results pages. My rerun lands close to the repo: +37.9% and +100.8% from 2003 to 2025. RSI Dip didn't lose money. It made more than RSI Reversion.
RSI Reversion's 75% win rate is real, but most of it comes from the market going up. Its 135 trades through November 2026 won 74% of the time and averaged +2.1%. Random entries held for the same number of days won 64% of the time and averaged +1.6%. The strategy beat 78% of the random draws on average trade: a little better than random, not clearly better. Its total return was +38.8%, against a random median of +28.8%.
RSI Dip's perfect win rate comes from its exit. A sell order 3% above the entry with no stop wins on almost every trade in ETFs that drift upward, wherever you buy. The same orders on random days won 99.4% of the time too, and made +99% in total against the strategy's +108%. The RSI filter added about 0.2 points per trade, part of which may be dividends on long holds. The price of never taking a loss is time: one position was held 720 trading days, almost three years, to collect its 3%.
Both strategies spend most of their time in cash. Each position is 12% or 15% of the account, so the account grows slowly. SPY gained 923% from 2004 to November 2026, dividends included. RSI Reversion's whole account made about 1.4% a year. These are rules for timing a small slice of money, not alternatives to holding the index.
Across 1,000 stocks, RSI Reversion showed a small edge. On the 1,000 most-traded U.S. stocks each month, delisted names included, it made 48,662 trades from 2003 to 2025. They averaged +1.93%, against +1.33% for random entries with the same holding times, and won 69.9% of the time against 55.7%. That's a modest per-trade edge, spread over many names. RSI Dip barely beat its random version there: +2.53% against +2.17% per trade. 1,306 of its positions never reached +3% and were still open at the end.
Since COVID and since 2022
Since 2020: RSI Reversion's win rate fell to 59%, below the 66% of random entries, and its average trade was +1.6% against +2.1% for random (41 trades). Its account made +7.8% while SPY made +157%. RSI Dip won 98% of 53 trades, about the same as on random days, and made +28.0% against +26.4% for its random version.
Since 2022: RSI Reversion won 57% of 30 trades, against 63% for random, and averaged +1.7% against +1.8%. RSI Dip won 97% of 38 trades and made +18.8% against +17.6% on random days. SPY made +69%.
After the code was last changed (July 2026): four RSI Reversion trades and five RSI Dip trades. That's too few to tell anything.
What this leaves out
The rest of the library. The post also lists SMA crossover, trend pullback, breakout and trend with a stop-loss. I tested only the two RSI strategies it gave numbers for.
Where the +133% came from. It may come from a different version of the code, other settings or other data that I couldn't find. I tested the code that's in the repo now.
Other settings. Looser thresholds make more money, but mostly because they stay in the market longer. The best settings were the ones closest to buy-and-hold.
Live trading. The repo includes a guide to running these strategies as live bots. I tested the daily backtests only.
Caveats
The random comparison is mine. For RSI Dip, my random version leaves out dividends, which slightly favors the strategy.
Fills are modeled on daily prices. A limit order counts as filled if the day's low reached it, and a sell order counts as filled if the day's high reached it.
Delisting is approximated in the 1,000-stock run: a stock delisted while a trade was open is valued at its last price.
Ticker reuse: the three ETFs each trade continuously under one ticker, apart from QQQ's QQQQ years, which I joined into one series. In the 1,000-stock run I didn't separately check for tickers later reused by a different company. That run isn't the headline test.
So what
The post's numbers don't match the library's own code. Run as written, RSI Reversion wins about three trades in four and makes a small return, a little better than random entries over the full period but no better since 2020. RSI Dip's perfect record is built into its exit and comes from holding losing positions until they recover. Credit to QuantJourney for publishing the code openly; that's what made it possible to check the claim at all. Before trusting any backtest you see in a post, run it yourself.
— Ben
Not investment advice. Backtests with assumed costs; past performance doesn't predict future returns.
