Hyperliquid Mean Reversion Strategy: RSI & Bollinger Backtest
Mean reversion on Hyperliquid tested on 365 days of real data: RSI and Bollinger Band rules on BTC, ETH, SOL and HYPE, with win rate, profit factor, fees and funding.
The short version: we backtested three classic mean reversion rules on Hyperliquid 4-hour candles for the last 365 days (snapshot 27 November 2026, 08:12 UTC) on BTC, ETH, SOL and HYPE, at 1x, with the tier-0 taker fee (0.045% per side) and real hourly funding. The rules won often (win rates of 54–81%) but most of them still lost money: 20 of the 24 tests finished negative and only 5 had a profit factor above 1. Bollinger Bands (20, 2) long/short was the most consistent, with +21.9% on SOL and +1.4% on ETH in a year when buy-and-hold lost 48% and 42%. The fast RSI(2) rule traded 225–236 times long/short and paid 13.5–18.5% of the account in fees. The single best result, RSI(14) long-only on HYPE (+81.0% with a 14% max drawdown), came from the one coin that went up. A high win rate is not an edge.
Mean reversion is the opposite bet to trend following: instead of buying strength, you buy a market that has fallen "too far, too fast" and sell it when it snaps back to its average, and you short a market that has run up too far. It is one of the most common ideas people try to automate on Hyperliquid, because perps let you short as easily as you buy and the public API gives free candles and funding history. This guide explains how RSI and Bollinger Band mean reversion works, runs three rules on a full year of real Hyperliquid data with every cost included, and shows how to judge a live mean reversion strategy honestly.
What is a mean reversion strategy?
A mean reversion system assumes that price oscillates around a moving "fair" level. It needs three things: a way to measure how stretched price is, an entry threshold, and an exit when price returns toward the middle.
- RSI (Relative Strength Index): a 0–100 oscillator built from recent gains and losses. Classic settings are RSI(14) with 30 as "oversold" and 70 as "overbought". A faster variant popularised for stock indices uses RSI(2) with 10 and 90.
- Bollinger Bands: a 20-period moving average with bands two standard deviations above and below. A close below the lower band is "stretched down"; a close above the upper band is "stretched up". The middle band is the natural exit.
The typical profile is the mirror image of trend following: many small wins and a few large losses. When the market starts a real trend, the system keeps buying a falling asset (or shorting a rising one) and the loss can wipe out dozens of winners. That is why win rate alone tells you almost nothing; read our win rate and profit factor guide for the metric that matters.
How we tested it on Hyperliquid
All data comes from Hyperliquid's public info endpoint: candleSnapshot for 4-hour candles and fundingHistory for hourly funding. The rules:
- RSI(14) 30/70: go long when RSI(14) closes below 30, exit when it closes above 50. Long/short version: also go short when RSI(14) closes above 70 and exit when it closes below 50.
- RSI(2) 10/90: same logic with RSI(2), entering below 10 or above 90 and exiting at 50.
- Bollinger Bands (20, 2): go long on a close below the lower band, exit on a close at or above the middle band; short on a close above the upper band, exit at or below the middle band.
Every signal is taken on the 4h close and filled at that close, with 1x notional (position size equal to account equity), the tier-0 taker fee of 0.045% per side and real hourly funding charged to whichever side was open. There are no stop-losses: the exit is always the return to the mean. We ran each rule long/short and long-only, on 2,189 bars per coin from 27 November 2025 to 27 November 2026. The full Python script and its output are at the end of the article.
Results: 24 backtests on BTC, ETH, SOL and HYPE
Buy-and-hold over the same year: BTC −32.2% (90,916 → 61,649), ETH −42.4% (3,010 → 1,734.6), SOL −48.4% (142.06 → 73.302) and HYPE +88.4% (34.714 → 65.402).
| Rule | BTC | ETH | SOL | HYPE |
|---|---|---|---|---|
| RSI(14) 30/70 long/short | −32.6% | −28.9% | −35.0% | +3.4% |
| RSI(14) 30/70 long-only | −29.8% | −41.0% | −22.6% | +81.0% |
| RSI(2) 10/90 long/short | −27.8% | −20.2% | −35.2% | −60.2% |
| RSI(2) 10/90 long-only | −31.9% | −34.3% | −16.7% | −16.7% |
| Bollinger 20/2 long/short | −14.6% | +1.4% | +21.9% | −41.1% |
| Bollinger 20/2 long-only | −11.8% | −19.0% | −5.1% | −9.7% |
| Buy and hold | −32.2% | −42.4% | −48.4% | +88.4% |
Returns are on starting equity, after fees and funding. The details that explain them:
| Rule (long/short) | Trades | Win rate | Profit factor | Fees paid |
|---|---|---|---|---|
| RSI(14) 30/70 | 28–33 | 66–71% | 0.57–1.19 | 2.1–3.1% |
| RSI(2) 10/90 | 225–236 | 59–68% | 0.76–0.99 | 13.5–18.5% |
| Bollinger 20/2 | 78–83 | 60–78% | 0.81–1.27 | 4.9–9.4% |
What the numbers say
1. A 70% win rate can still lose money
RSI(14) long/short on BTC won 71% of its 28 trades and still lost 32.6%, with a profit factor of 0.57: the losing 29% of trades were much larger than the winners. This is the classic mean reversion failure. In a falling market, "oversold" can stay oversold for weeks, and a rule without a stop holds the long all the way down. If you only look at how often you are right, you will trust this kind of system far too long.
2. Fees decide fast mean reversion
RSI(2) is popular because it trades a lot and wins often. On Hyperliquid 4h candles it opened 225–236 trades a year long/short and paid 13.5–18.5% of starting equity in taker fees. ETH RSI(2) long/short had a profit factor of 0.99 and finished −20.2%; on BTC fees alone were 18.5% against a −27.8% result. Any rule that trades this often lives or dies on execution: maker fills (0.015% at tier 0 instead of 0.045%), the 4% referral discount and fee tiers matter more than the signal. See the Hyperliquid fees guide for the full schedule.
3. Bollinger Bands were the most robust, but not on HYPE
The Bollinger rule exits at the moving average rather than waiting for RSI to recover, so trades are shorter and losses smaller. Long/short it had the best results on BTC, ETH and SOL (−14.6%, +1.4%, +21.9%) and a profit factor above 1 on ETH (1.15) and SOL (1.27). On HYPE, which rose 88%, the same rule lost 41.1%: it kept shorting every breakout above the upper band. Long-only, Bollinger lost less than buy-and-hold on BTC, ETH and SOL, but was still negative.
4. Long-only dip buying worked only where the trend was up
RSI(14) long-only on HYPE returned +81.0% with a 14% maximum drawdown, while being in the market only 13% of the time, against +88.4% and a 42% drawdown for buy-and-hold. That looks like the perfect strategy, but the same rule lost 29.8%, 41.0% and 22.6% on BTC, ETH and SOL. Buying dips is a bet on the underlying trend. Mean reversion works best when it trades with the larger trend, which is why many traders combine it with a trend filter such as the one in our trend following strategy guide.
5. Funding was a minor cost here
Because mean reversion strategies are out of the market most of the time (13–56% exposure in these tests), funding moved results by only −2.8% to +2.2% of starting equity over the year. That is small next to fees, but it is not zero, and it can become large during funding spikes. The funding rate and PnL guide explains how to measure it on your own positions.
How to build a better mean reversion strategy on Hyperliquid
- Add a stop. The rules above have none, which is what turns a 70% win rate into a loss. A volatility-based stop (for example a multiple of ATR) caps the large losers; our volatility and ATR guide shows how to size one, and the take-profit and stop-loss guide shows how to place it on Hyperliquid.
- Trade with the higher-timeframe trend. Only buy oversold readings when a slow trend filter is up, and only short overbought readings when it is down.
- Use limit orders. Mean reversion entries are passive by nature: you want to buy weakness. Resting limit orders at the band can earn the maker rate instead of paying taker. See the order types guide (and remember limit orders may not fill).
- Keep leverage low. A strategy whose losses come in rare large chunks is the worst kind to lever up. Our test used 1x; at 3x the worst drawdowns above (up to 66%) would mean liquidation.
- Judge it by profit factor and drawdown. Track the equity curve, not the number of green trades. The drawdown and equity curve guide explains what to watch.
Worked example: one Bollinger trade at 1x
Suppose a $10,000 account goes long $10,000 of SOL when a 4h candle closes below the lower Bollinger Band, and exits when price closes back at the middle band, 3% higher. Gross profit: $300. Taker fees: 0.045% on entry ($4.50) and about 0.045% on exit ($4.64), so roughly $9.14. If funding during the hold is +0.001% per hour for 12 hours, the long pays about $1.24. Net: about $289.63. Now suppose the next signal fails and SOL falls 12% before returning to the middle band 10% below entry: that single trade costs about $1,000 plus fees, the profit of roughly three and a half wins like the first one. That asymmetry is the whole story of the table above. (Illustrative figures for the arithmetic, not taken from the backtest.)
Limits of this test
- One year, one regime. BTC, ETH and SOL fell 32–48% and HYPE rose 88%. Results in a sideways market could be very different, typically better for mean reversion.
- No stops and no filters. We tested the textbook rules on purpose; real systems add risk management.
- Closing prices and taker fills. Fills exactly at the 4h close with no extra slippage are optimistic, especially on SOL and HYPE in fast moves; maker fills would lower fees but some trades would be missed.
- Not financial advice. This is an educational test of public methods with public data.
For more data to test your own variations, see the Hyperliquid historical data guide. Other strategy backtests on the blog: grid trading, DCA and Kelly criterion position sizing.
Track your mean reversion strategy's real PnL with Hyperfolio
Mean reversion feels great while it works: trade after trade closes green. The danger is that one large loss arrives later and is easy to underestimate. Hyperfolio is a free, read-only portfolio tracker for Hyperliquid: paste a wallet address (no API keys, no wallet connection) and see realized and unrealized PnL, fees and funding paid, open perps and the equity curve, so you can see whether your profit factor is really above 1. If you are opening a Hyperliquid account, the referral code HYPERFOLIO gives 4% off trading fees, which matters a lot for a strategy that trades hundreds of times a year (details in the referral code guide).
FAQ
Does mean reversion work on Hyperliquid?
Not with textbook rules in our 365-day test: 20 of 24 combinations lost money after fees and funding. Bollinger Bands (20, 2) long/short made +21.9% on SOL and +1.4% on ETH, and RSI(14) long-only made +81.0% on HYPE, but none of the three rules was profitable on all four coins.
What is the best RSI setting for crypto mean reversion?
There is no universal best. In this test RSI(14) 30/70 traded rarely (28–33 times a year long/short) and RSI(2) 10/90 traded about 230 times, paying 13.5–18.5% of the account in fees. Slower settings were cheaper but both lost on BTC, ETH and SOL without a stop or trend filter.
Why does a mean reversion strategy with a high win rate lose money?
Because the losers are much larger than the winners. RSI(14) long/short on BTC won 71% of trades and still lost 32.6%, with a profit factor of 0.57.
Is Bollinger Band mean reversion better than RSI?
In this test it was more consistent on BTC, ETH and SOL, because it exits at the middle band and keeps trades short. It was the worst long/short rule on HYPE (−41.1%), because it kept shorting a rising market.
How much do fees cost a mean reversion strategy on Hyperliquid?
At 0.045% taker per side, 2.1–3.1% of starting equity a year for RSI(14) long/short, 4.9–9.4% for Bollinger long/short and 13.5–18.5% for RSI(2) long/short.
Should I use leverage for mean reversion?
Be careful. The worst drawdowns at 1x reached 55–66% for some long/short rules; leverage multiplies that and liquidation ends the strategy before the mean arrives. Check the liquidation guide before sizing up.
Reproduce the test
Python 3 with requests; no API key needed.
#!/usr/bin/env python3
"""Mean reversion on Hyperliquid with public data: 4h candles (last 365 days) and hourly funding.
RSI and Bollinger Band rules, 1x notional, signals and fills on bar close, taker fee 0.045% per side, funding charged hourly."""
import time, requests
from datetime import datetime, timezone
HL = "https://api.hyperliquid.xyz/info"
def info(body):
for _ in range(8):
try:
r = requests.post(HL, json=body, timeout=20).json()
if r: return r
except Exception: pass
time.sleep(6)
return []
FEE = 0.00045; H4 = 4*3_600_000
now = datetime.now(timezone.utc); end_ms = int(now.timestamp()*1000)
start_ms = end_ms - 365*86_400_000; warm_ms = start_ms - 100*H4
print("snapshot", now.strftime("%Y-%m-%d %H:%M UTC"), "| 365 days of 4h candles + hourly funding | taker 0.045%/side, 1x notional")
def funding(coin):
out, t = {}, start_ms
while t < end_ms:
page = info({"type": "fundingHistory", "coin": coin, "startTime": t})
if not page: break
for p in page: out[int(p["time"])] = float(p["fundingRate"])
nt = int(page[-1]["time"]) + 1
if nt <= t or len(page) < 2: break
t = nt
return out
def rsi(c, n):
# Wilder RSI
out = [None]*len(c); g = l = 0.0
for i in range(1, len(c)):
d = c[i]-c[i-1]; up, dn = max(d, 0), max(-d, 0)
if i <= n:
g += up/n; l += dn/n
if i == n: out[i] = 100 - 100/(1+g/l) if l else 100
else:
g = (g*(n-1)+up)/n; l = (l*(n-1)+dn)/n
out[i] = 100 - 100/(1+g/l) if l else 100
return out
def boll(c, n, k, i):
w = c[i-n+1:i+1]; m = sum(w)/n; sd = (sum((x-m)**2 for x in w)/n) ** 0.5
return m-k*sd, m, m+k*sd
def run(t, c, fbar, rule, mode):
# position decided at close of bar i, held over bar i+1
eq, pos, peak, mdd = 1.0, 0, 1.0, 0.0
fees = fund = 0.0; trades = []; entry_eq = None; bars_in = 0
i0 = next(k for k in range(len(t)) if t[k] >= start_ms)
r14, r2 = rsi(c, 14), rsi(c, 2)
for i in range(i0, len(c)):
if pos:
eq *= 1 + pos*(c[i]/c[i-1]-1)
f = fbar.get(t[i], 0.0) * pos * eq; eq -= f; fund += f; bars_in += 1
peak = max(peak, eq); mdd = max(mdd, 1-eq/peak)
if i == len(c)-1: break
want = pos
if rule == "RSI14 30/70":
x = r14[i]; lo, hi, mid_l, mid_s = x < 30, x > 70, x > 50, x < 50
elif rule == "RSI2 10/90":
x = r2[i]; lo, hi, mid_l, mid_s = x < 10, x > 90, x > 50, x < 50
else:
b_lo, b_m, b_hi = boll(c, 20, 2, i)
lo, hi, mid_l, mid_s = c[i] < b_lo, c[i] > b_hi, c[i] >= b_m, c[i] <= b_m
if pos == 0:
if lo: want = 1
elif hi and mode == "ls": want = -1
elif pos == 1 and mid_l: want = -1 if (hi and mode == "ls") else 0
elif pos == -1 and mid_s: want = 1 if lo else 0
if want != pos:
sides = abs(want-pos)
if pos and entry_eq is not None: trades.append(eq*(1-FEE)/entry_eq-1)
cost = FEE*sides*eq; eq -= cost; fees += cost
pos = want; entry_eq = eq if pos else None
if pos and entry_eq: trades.append(eq/entry_eq-1)
wins = sum(1 for x in trades if x > 0)
gw = sum(x for x in trades if x > 0); gl = -sum(x for x in trades if x < 0)
pf = gw/gl if gl else float("inf")
return eq-1, mdd, len(trades), wins, fees, fund, pf, bars_in/(len(c)-i0)
for coin in ["BTC", "ETH", "SOL", "HYPE"]:
bars = info({"type": "candleSnapshot", "req": {"coin": coin, "interval": "4h", "startTime": warm_ms, "endTime": end_ms}})
bars = [b for b in bars if int(b["t"]) + H4 <= end_ms]
t = [int(b["t"]) for b in bars]; c = [float(b["c"]) for b in bars]
fr = funding(coin); fbar = {}
for ts, r in fr.items():
k = ts - (ts % H4)
fbar[k] = fbar.get(k, 0.0) + r
i0 = next(k for k in range(len(t)) if t[k] >= start_ms)
bh = c[-1]/c[i0]-1; pk = c[i0]; bdd = 0
for x in c[i0:]: pk = max(pk, x); bdd = max(bdd, 1-x/pk)
print(f"\n{coin}: {len(c)-i0} 4h bars {datetime.fromtimestamp(t[i0]/1000, timezone.utc):%Y-%m-%d} -> {datetime.fromtimestamp(t[-1]/1000, timezone.utc):%Y-%m-%d}: {c[i0]:,.5g} -> {c[-1]:,.5g} | buy & hold {bh*100:+.1f}% maxDD {bdd*100:.0f}%")
for rule in ["RSI14 30/70", "RSI2 10/90", "BB 20/2"]:
for mode in ["ls", "long"]:
ret, mdd, n, w, fees, fund, pf, expo = run(t, c, fbar, rule, mode)
print(f" {rule:11s} {'long/short' if mode=='ls' else 'long-only '}: {ret*100:+6.1f}% maxDD {mdd*100:3.0f}% trades {n:3d} win {w/n*100 if n else 0:3.0f}% PF {pf:4.2f} in-market {expo*100:3.0f}% fees {fees*100:4.1f}% funding {fund*100:+5.1f}%")
Output at the snapshot time:
snapshot 2026-11-27 08:12 UTC | 365 days of 4h candles + hourly funding | taker 0.045%/side, 1x notional
BTC: 2189 4h bars 2025-11-27 -> 2026-11-27: 90,916 -> 61,649 | buy & hold -32.2% maxDD 42%
RSI14 30/70 long/short: -32.6% maxDD 42% trades 28 win 71% PF 0.57 in-market 33% fees 2.4% funding -0.2%
RSI14 30/70 long-only : -29.8% maxDD 40% trades 13 win 69% PF 0.39 in-market 18% fees 1.1% funding +0.7%
RSI2 10/90 long/short: -27.8% maxDD 37% trades 225 win 67% PF 0.87 in-market 38% fees 18.5% funding +0.2%
RSI2 10/90 long-only : -31.9% maxDD 35% trades 104 win 62% PF 0.64 in-market 20% fees 7.5% funding +0.9%
BB 20/2 long/short: -14.6% maxDD 34% trades 82 win 68% PF 0.96 in-market 56% fees 7.5% funding +0.2%
BB 20/2 long-only : -11.8% maxDD 29% trades 43 win 72% PF 0.91 in-market 30% fees 3.8% funding +1.5%
ETH: 2189 4h bars 2025-11-27 -> 2026-11-27: 3,010 -> 1,734.6 | buy & hold -42.4% maxDD 54%
RSI14 30/70 long/short: -28.9% maxDD 47% trades 32 win 69% PF 0.74 in-market 36% fees 2.8% funding -0.7%
RSI14 30/70 long-only : -41.0% maxDD 52% trades 13 win 54% PF 0.34 in-market 19% fees 1.0% funding +0.4%
RSI2 10/90 long/short: -20.2% maxDD 42% trades 236 win 68% PF 0.99 in-market 41% fees 17.8% funding -0.6%
RSI2 10/90 long-only : -34.3% maxDD 42% trades 112 win 67% PF 0.72 in-market 21% fees 7.2% funding +0.5%
BB 20/2 long/short: +1.4% maxDD 43% trades 83 win 78% PF 1.15 in-market 53% fees 7.6% funding -0.4%
BB 20/2 long-only : -19.0% maxDD 41% trades 40 win 75% PF 0.86 in-market 29% fees 3.1% funding +1.0%
SOL: 2189 4h bars 2025-11-27 -> 2026-11-27: 142.06 -> 73.302 | buy & hold -48.4% maxDD 58%
RSI14 30/70 long/short: -35.0% maxDD 47% trades 29 win 66% PF 0.70 in-market 33% fees 2.1% funding -1.9%
RSI14 30/70 long-only : -22.6% maxDD 40% trades 17 win 65% PF 0.72 in-market 20% fees 1.3% funding -1.0%
RSI2 10/90 long/short: -35.2% maxDD 57% trades 235 win 65% PF 0.90 in-market 41% fees 18.4% funding -1.8%
RSI2 10/90 long-only : -16.7% maxDD 39% trades 124 win 68% PF 0.93 in-market 22% fees 9.2% funding -0.7%
BB 20/2 long/short: +21.9% maxDD 45% trades 83 win 76% PF 1.27 in-market 55% fees 9.4% funding -2.8%
BB 20/2 long-only : -5.1% maxDD 41% trades 42 win 74% PF 1.07 in-market 31% fees 3.9% funding -0.9%
HYPE: 2189 4h bars 2025-11-27 -> 2026-11-27: 34.714 -> 65.402 | buy & hold +88.4% maxDD 42%
RSI14 30/70 long/short: +3.4% maxDD 33% trades 33 win 70% PF 1.19 in-market 33% fees 3.1% funding -1.0%
RSI14 30/70 long-only : +81.0% maxDD 14% trades 16 win 81% PF 8.90 in-market 13% fees 2.0% funding +1.7%
RSI2 10/90 long/short: -60.2% maxDD 66% trades 232 win 59% PF 0.76 in-market 39% fees 13.5% funding +0.2%
RSI2 10/90 long-only : -16.7% maxDD 27% trades 114 win 59% PF 0.92 in-market 19% fees 9.9% funding +1.8%
BB 20/2 long/short: -41.1% maxDD 55% trades 78 win 60% PF 0.81 in-market 53% fees 4.9% funding -0.0%
BB 20/2 long-only : -9.7% maxDD 24% trades 35 win 57% PF 0.92 in-market 26% fees 2.9% funding +2.2%
Try Hyperfolio for free
Track your Hyperliquid portfolio in real time with PnL, Smart Money, Markets, Perp Calculator, multi-venue portfolio and push alerts.
HYPERLIQUID
-4% feesTrade on Hyperliquid · 4% off fees
Hyperfolio is an independent app, free to use with no subscription. We're funded by Hyperliquid referrals, ad space and donations; we truly appreciate you trading through our link.
Free for you · keeps Hyperfolio running
Related articles
Hyperliquid Pairs Trading Strategy: 365-Day Test (2026)
Does pairs trading work on Hyperliquid? A z-score test on five perp pairs over 365 days with real fees and hourly funding: only ETH/BTC made money, and pairs with HYPE lost up to 82% (snapshot 2026-12-02).
GuideHyperliquid Scalping Strategy: Fees & Win Rate (2026)
Can you scalp profitably on Hyperliquid? Real round-trip costs at tier-0 fees, live spreads and depth, 1-minute volatility and a baseline bracket test on BTC, ETH, SOL and HYPE (snapshot 2026-12-01).
GuideHyperliquid Momentum Strategy: Rotation Backtest (2026)
Does crypto momentum work on Hyperliquid? A 365-day backtest of a weekly rotation across 20 high-volume perps: buy the top 3 (long-only) or long top 3 / short bottom 3, with 7, 28 and 90-day lookbacks, real fees and funding (snapshot 2026-11-30).
GuideHyperliquid Breakout Trading Strategy: Donchian Backtest (2026)
Do breakout strategies work on Hyperliquid? A 365-day backtest of Turtle-style Donchian channel breakouts (20/10 and 55/20) on BTC, ETH, SOL and HYPE, 4h and daily, long/short and long-only, with real fees and funding (snapshot 2026-11-29).
GuideHyperliquid Portfolio Rebalancing: Calendar vs Threshold Backtest
Does rebalancing a crypto portfolio pay off? A 365-day Hyperliquid backtest of buy-and-hold vs monthly, weekly and 5/10-point threshold rebalancing for BTC, ETH, SOL, HYPE and USDC portfolios, with real spot fees (snapshot 2026-11-28).
GuideHyperliquid Trend Following Strategy: MA Crossover Backtest
Does trend following work on Hyperliquid? A 365-day backtest of SMA 10/30, 20/50 and 50/200 crossovers on BTC, ETH, SOL and HYPE 4h candles, long/short and long-only, with real fees and funding (snapshot 2026-11-26).