<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>HYV Research</title>
  <link>https://hyvprotocol.com/blog/</link>
  <atom:link href="https://hyvprotocol.com/blog/feed.xml" rel="self" type="application/rss+xml"/>
  <description>Trading strategies tested with fees counted, the ones we ruled out and why, plus trading maths and build notes from HYV.</description>
  <language>en-gb</language>
  <lastBuildDate>Sat, 28 Nov 2026 09:00:00 +0000</lastBuildDate>
  <item>
    <title>Why a crypto trading bot should never place its own orders. Position size, not the signal, decides who survives.</title>
    <link>https://hyvprotocol.com/blog/crypto-trading-bot-risk-management-risk-gate.html</link>
    <guid isPermaLink="true">https://hyvprotocol.com/blog/crypto-trading-bot-risk-management-risk-gate.html</guid>
    <pubDate>Sat, 28 Nov 2026 09:00:00 +0000</pubDate>
    <dc:creator>HYV Research</dc:creator>
    <category>Build in public</category>
    <description>One strategy, 20,000 simulated paths: at 2% risk a trade it grew 2.4×, at 20% it lost 87%. Why a trading bot needs a risk gate, and the five checks to run before every order.</description>
    <content:encoded><![CDATA[<h2>In short</h2> <ul> <li>A trading bot should split deciding from doing. The strategy proposes a trade; a separate risk gate decides whether it is allowed, how big it can be, and logs why.</li> <li>In 20,000 simulated paths, a strategy with a real edge of +0.1R a trade grew a median 2.4× at 2% risk per trade and shrank to 0.13× at 20%. Same signals, same trades.</li> <li>With no edge, size decides how much you lose: a median 0.88× at 2% a trade, 0.05× at 10%.</li> <li>Regulated firms must run these checks before any order reaches a market. Knight Capital lost more than $460 million in 45 minutes without them.</li> </ul> <h2>Weeks like this are when bots blow up</h2> <p>On 21 November Bitcoin fell below $56,000, its lowest level since September 2024, and CoinMarketCap’s Fear &amp; Greed Index read 6, one point above its all-time low. About $1.5 billion of leveraged positions were liquidated in the previous day’s sell-off (<a href="https://cryptonews.net/news/bitcoin/33788156/">CryptoNews</a>).</p> <p>That was mild next to 10 October 2025, when CoinGlass counted $19.13 billion liquidated in 24 hours across 1.6 million traders, nearly $17 billion of it longs (<a href="https://decrypt.co/343941/bitcoin-ethereum-dogecoin-down-record-19-billion-crypto-liquidations">Decrypt</a>). In our own data, Hyperliquid alt perps fell 50–80% within four hours that day, while the same coins’ Kraken marks fell 22–44%.</p> <p>And sometimes the venue is the problem. After the $6.3 billion Binance hot-wallet theft on 29 October, Binance suspended deposits and withdrawals the next day and resumed them in phases from 1 November (<a href="https://tangem.com/en/blog/post/binance-hack-2026-how-it-happened/">Tangem</a>).</p> <p>None of these is a signal problem. A strategy that is right on average still has to survive the hours when it is wrong, and the venue it trades on still has to be working. That job belongs to something other than the strategy.</p> <h2>The pattern: strategies propose, a gate decides</h2> <p>In most retail bots the strategy calls the exchange directly. A signal fires and an order goes out. Every safety rule lives inside each strategy, written again for the next one, and nothing looks at the whole account at once.</p> <p>HYV splits that path into stages. A strategy emits an <em>intent</em>: a side, a size hint, a confidence and the market regime it saw. It never places an order. The risk gate checks the intent against the account, then permits it, resizes it or rejects it, and records the reason. Only a permitted intent reaches the execution layer, which uses the same interface for paper and live trading.</p> <p><strong>How an order is born in HYV:</strong> Strategy (emits an intent: side, size hint, confidence, regime) → Risk gate (position size, exposure, capital floor, market conditions, system health) → Execution (one interface, paper or live adapter; idempotent orders) → Exchange (your account, traded through your own API keys)</p><p><b>Rejected or resized</b> intents are logged with the rule that fired, so every decision can be audited later.</p><p>A kill switch sits across the whole path: one control halts every running strategy at once.</p> <p>Professional trading firms are required to work this way. In the UK and EU, the rules for algorithmic trading (<a href="https://www.legislation.gov.uk/eur/2017/589/article/15/data.html">RTS 6, Article 15</a>) require price collars, maximum order values, maximum order volumes and message limits on every order before it enters the book. Article 12 requires a kill function that can cancel any or all unexecuted orders at once. In the US, the SEC’s market access rule requires controls immediately before orders reach the market.</p> <p>The SEC’s case against Knight Capital shows what happens without them. On 1 August 2012, Knight’s router sent more than 4 million orders while trying to fill 212 customer orders, traded more than 397 million shares in 45 minutes, and lost more than $460 million. The SEC found that Knight lacked controls immediately before orders reached the market, and that its risk controls could not stop orders that exceeded its capital thresholds (<a href="https://www.sec.gov/news/press-release/2013-222">SEC</a>).</p> <h2>The five checks every order passes</h2> <p>The gate runs the same checks, in the same order, for every strategy. The first one to fail decides the verdict and becomes the logged reason.</p> <ol> <li><strong>Position size.</strong> Risk per trade is capped as a share of equity, and size is computed from the stop distance, not guessed. This is the check the simulation below is about.</li> <li><strong>Exposure.</strong> Total and per-coin limits, with correlated positions counted together. Ten altcoin longs are not ten bets: on 10 October 2025 they fell together.</li> <li><strong>Capital floor.</strong> A drawdown limit that stops new risk once equity falls far enough. A 50% loss needs a 100% gain to recover, so the cheapest loss is the one you stop taking.</li> <li><strong>Market conditions.</strong> Volatility, spread, depth and regime. An analysis of 0d Labs data found order-book depth within 5 bps on Hyperliquid’s long-tail perps fell about 85% in a year (<a href="https://www.techflowpost.com/en-US/article/35292">TechFlow</a>). A size that was fine a year ago can move the price today.</li> <li><strong>System health.</strong> Data freshness, venue status, duplicate orders and order rate. In our own research pipeline, a venue that dropped out was filled with zeros, which created a fake order-book imbalance spike: exactly the kind of signal a strategy would happily trade. The gate rejects intents built on data older than its threshold, and stops sending orders to a venue that is degraded.</li> </ol> <p>Above all five sits the kill switch. In HYV-BOT it applies across every running strategy at once and moves holdings into stablecoins.</p> <h2>Position size decides who survives: the simulation</h2> <p>To isolate size, we simulated one strategy and changed nothing but its bet. It wins 50% of trades, makes 1.2 times its risk on a win and loses its risk on a loss: an edge of +0.1R a trade, better than most strategies we have tested. Each path is 500 trades, there are 20,000 paths, and every size sees exactly the same sequence of wins and losses. Risk is a fixed share of current equity.</p> <p><strong>Chance of losing half the account within 500 trades</strong></p><table> <thead><tr><th>Risk per trade</th><th>+0.1R edge</th><th>No edge</th></tr></thead> <tbody> <tr><td>1%</td><td>0.0%</td><td>1.1%</td></tr> <tr><td>2%</td><td>2.3%</td><td>36.7%</td></tr> <tr><td>5%</td><td>76.7%</td><td>98.4%</td></tr> <tr><td>10%</td><td>100%</td><td>100%</td></tr> <tr><td>20%</td><td>100%</td><td>100%</td></tr> </tbody> </table><p>Between 2% and 5% a trade, halving goes from rare to likely, even with a real edge.</p><p><em>The chart is in the original article.</em></p> <table> <thead> <tr><th></th><th colspan="2">+0.1R edge</th><th colspan="2">No edge</th></tr> <tr><th>Risk per trade</th><th>Median account</th><th>Worst drawdown</th><th>Median account</th><th>Worst drawdown</th></tr> </thead> <tbody> <tr><td>1%</td><td>1.60×</td><td>15%</td><td>0.96×</td><td>25%</td></tr> <tr><td>2%</td><td>2.41×</td><td>28%</td><td>0.88×</td><td>45%</td></tr> <tr><td>5%</td><td>5.72×</td><td>59%</td><td>0.46×</td><td>82%</td></tr> <tr><td>10%</td><td>7.33×</td><td>88%</td><td>0.05×</td><td>99%</td></tr> <tr><td>20%</td><td>0.13×</td><td>99.8%</td><td>0.00×</td><td>100%</td></tr> </tbody> </table> <p>Account value after 500 trades as a multiple of the starting balance, and the median of each path’s worst peak-to-trough drawdown.</p> <h3>Past a point, more size means less money</h3> <p>The size that maximises long-run growth, the Kelly fraction, is 8.3% a trade for this strategy. It produced the highest median, 7.96×, but halved the account at some point in 99.7% of paths and took 80% off in 52% of them. Nobody keeps a bot running through an 80% drawdown.</p> <p>Beyond Kelly, size starts destroying money. At 20% a trade the median account ends at 0.13×, and 66% of paths finish below where they started: a strategy that wins on average, sized to lose. The reason is that losses compound harder than gains. After a 20% loss you need 25% to get back; after 50%, you need 100%.</p> <h3>Losing streaks are normal</h3> <p>At a 50% win rate over 500 trades, the median longest losing streak was 8 trades, and one path in ten had 11 or more. Eight losses in a row cost 15% at 2% a trade and 57% at 10% a trade. Those streaks are not bad luck you can plan around. They are the expected path.</p> <h3>If the edge isn’t real</h3> <p>Now give the same payoff a 45.5% win rate, which makes the edge exactly zero. In our first two research notes, that is roughly what we found. At 2% a trade the median account ends at 0.88×; at 10% it ends at 0.05×. Position sizing can’t create an edge. It decides whether a strategy without one is a lesson or a wipe-out.</p> <pre><code># Reproduce the table: fixed-fraction sizing, one set of trades for every size
import numpy as np

rng = np.random.default_rng(7)
p_win, win_r, n_trades, n_paths = 0.50, 1.2, 500, 20_000   # +0.1R a trade
draws = rng.random((n_paths, n_trades))

for p in [p_win, 1 / 2.2]:                # 1/2.2 = same payoff, zero edge
    wins = draws &lt; p
    for risk in [0.01, 0.02, 0.05, 0.10, 0.20]:
        equity = np.cumprod(np.where(wins, 1 + win_r * risk, 1 - risk), axis=1)
        peak = np.maximum.accumulate(np.maximum(equity, 1.0), axis=1)
        max_dd = (1 - equity / peak).max(axis=1)
        print(f"win {p:.1%}  risk {risk:.0%}  median {np.median(equity[:, -1]):.2f}x  "
              f"max DD {np.median(max_dd):.0%}  halved {np.mean(max_dd &gt;= 0.5):.1%}")</code></pre> <p>Python 3 with NumPy. Runs in a few seconds and prints every number in the chart and table.</p> <h2>Leverage is position size with a deadline</h2> <p>Leverage adds a hard stop you didn’t choose. At L times leverage, a long is liquidated after a fall of roughly 1 ÷ L, and a little sooner once maintenance margin is counted.</p> <p><strong>Fall that wipes out a leveraged long, against 10 October 2025</strong></p><table> <thead><tr><th>Leverage</th><th>Approximate fall to liquidation</th></tr></thead> <tbody> <tr><td>2×</td><td>50%</td></tr><tr><td>3×</td><td>33%</td></tr> <tr><td>5×</td><td>20%</td></tr><tr><td>10×</td><td>10%</td></tr> <tr><td>25×</td><td>4%</td></tr><tr><td>50×</td><td>2%</td></tr> </tbody> </table><p>A long is liquidated once the fall passes the end of its bar, and in practice a little before. On Hyperliquid’s alt books that day, even a 2× long was inside the move.</p><p><em>The chart is in the original article.</em></p> <p>The recovery maths is why the capital floor exists. The deeper the hole, the harder the climb out:</p> <table> <thead><tr><th>Loss</th><th>Gain needed to get back</th></tr></thead> <tbody> <tr><td>10%</td><td>11.1%</td></tr> <tr><td>20%</td><td>25%</td></tr> <tr><td>33%</td><td>50%</td></tr> <tr><td>50%</td><td>100%</td></tr> <tr><td>75%</td><td>300%</td></tr> <tr><td>90%</td><td>900%</td></tr> </tbody> </table> <h2>How to add a risk gate to your own bot</h2> <p>You don’t need our engine to use the pattern. Seven changes get most of the way:</p> <ol> <li><strong>Make strategies return an intent,</strong> never call the exchange themselves.</li> <li><strong>Put every rule in one gate,</strong> run in a fixed order, and log a reason for every rejection.</li> <li><strong>Size from equity and stop distance.</strong> Position = equity × risk per trade ÷ stop distance.</li> <li><strong>Count exposure across strategies,</strong> and treat correlated coins as one position.</li> <li><strong>Timestamp every data point</strong> and reject intents built on data older than your threshold.</li> <li><strong>Make orders idempotent</strong> with a client order ID, so a retry after a disconnect never doubles a position.</li> <li><strong>Wire a kill switch that halts everything at once,</strong> and test it before you need it.</li> </ol> <p>Sizing from the stop, for a $10,000 account risking 1% with a stop 4% below entry:</p> <p>$10,000 × 1% ÷ 4% = $2,500 position<br>Stop hit: $2,500 × 4% = $100 lost, 1% of equity</p> <p>A gate won’t make a weak strategy strong. Our <a href="https://hyvprotocol.com/blog/buy-the-dip-altcoin-backtest.html">buy-the-dip backtest</a> lost its edge to fees, and our <a href="https://hyvprotocol.com/blog/hyperliquid-market-making-order-book-imbalance.html">Hyperliquid market-making test</a> found short-horizon signals worth under 2 bps. What a gate does is make sure the weak strategies fail small, and the good ones live long enough to matter.</p> <h2>Questions traders ask</h2> <h3>What is a risk gate in a trading bot?</h3> <p>A separate layer between a strategy and the exchange. The strategy proposes a trade; the gate checks position size, exposure, drawdown, market conditions and system health, then permits, resizes or rejects it and logs the reason. The strategy never places orders itself.</p> <h3>How much should a trading bot risk per trade?</h3> <p>In our simulation of a strategy with a +0.1R edge, risking 1–2% of equity a trade kept the chance of halving the account within 500 trades at 0–2.3%; at 5% it rose to 77%. Real edges are usually smaller than backtests suggest, which argues for sizing well below the Kelly fraction.</p> <h3>What is the Kelly criterion in trading?</h3> <p>The bet size that maximises long-run growth: f* = p − (1 − p) ÷ b, where p is the win rate and b the ratio of the average win to the average loss. For a 50% win rate and a 1.2 payoff it is 8.3% a trade. In our simulation, full Kelly halved the account at some point in 99.7% of paths.</p> <h3>What is a kill switch in algorithmic trading?</h3> <p>One control that stops every strategy at once. UK and EU rules for algorithmic trading firms (RTS 6, Article 12) require the ability to cancel any or all unexecuted orders immediately. HYV-BOT’s kill switch applies across every running strategy and moves holdings into stablecoins.</p> <h3>Why do trading bots get liquidated in crashes?</h3> <p>Leverage. At L times leverage a long is liquidated after a fall of roughly 1 ÷ L, and sooner once maintenance margin is counted. On 10 October 2025, CoinGlass counted $19.13 billion of positions liquidated in 24 hours.</p> <h2>Run a strategy against the gate</h2> <p>HYV-BOT paper-trades your strategy on live market data. Every intent passes the risk gate first, fees are counted in every result, and your funds stay on your own exchange. Paper trading is free.</p> <p><a href="https://app.hyvprotocol.com/?utm_source=rss&amp;utm_medium=feed&amp;utm_campaign=risk_gate">Paper-trade a strategy on HYV-BOT</a></p> <h2>Method notes</h2> <ul> <li>Simulation: 20,000 paths of 500 trades, NumPy generator seed 7. Each trade wins 1.2R with probability p and loses 1R otherwise: p = 0.50 for the +0.1R edge, p = 1/2.2 ≈ 0.4545 for no edge. Risk is a fixed share of current equity. Both cases and all sizes use the same random draws. No fees or slippage, which would make every row worse.</li> <li>Kelly fraction: f* = p − (1 − p) ÷ b = 0.50 − 0.50 ÷ 1.2 ≈ 8.3%.</li> <li>Liquidation distances are 1 ÷ leverage for an isolated long and ignore maintenance margin and fees, so real liquidation comes earlier.</li> <li>10 October 2025 moves: our Hyperliquid four-hour candles and Kraken hourly marks for liquid altcoins listed on both venues.</li> </ul> <p>This is research, not investment advice. Simulations and backtests are hypothetical; they use assumed returns and past prices, and past results don’t predict future ones. Leveraged crypto trading can lose more than a position’s margin.</p> <h2>Sources</h2> <ul> <li><a href="https://cryptonews.net/news/bitcoin/33788156/">CryptoNews — Bitcoin’s decline continues: Fear and Greed Index drops to 6</a> (21 November 2026)</li> <li><a href="https://decrypt.co/343941/bitcoin-ethereum-dogecoin-down-record-19-billion-crypto-liquidations">Decrypt — record $19 billion in crypto liquidations</a> (10 October 2025, CoinGlass data)</li> <li><a href="https://tangem.com/en/blog/post/binance-hack-2026-how-it-happened/">Tangem — Binance hack 2026: how attackers stole $6.34B</a></li> <li><a href="https://www.sec.gov/news/press-release/2013-222">SEC — Knight Capital charged with violations of the market access rule</a> (2013)</li> <li><a href="https://www.legislation.gov.uk/eur/2017/589/article/15/data.html">Delegated Regulation 2017/589 (RTS 6), Article 15: pre-trade controls</a></li> <li><a href="https://www.legislation.gov.uk/eur/2017/589/article/12/data.html">Delegated Regulation 2017/589 (RTS 6), Article 12: kill functionality</a></li> <li><a href="https://www.techflowpost.com/en-US/article/35292">TechFlow — Hyperliquid order book depth shrinks 85%</a> (11 November 2026)</li> </ul>]]></content:encoded>
  </item>
  <item>
    <title>Hyperliquid market making, tested on 148 million fills. Order-book imbalance is worth half a basis point.</title>
    <link>https://hyvprotocol.com/blog/hyperliquid-market-making-order-book-imbalance.html</link>
    <guid isPermaLink="true">https://hyvprotocol.com/blog/hyperliquid-market-making-order-book-imbalance.html</guid>
    <pubDate>Fri, 13 Nov 2026 09:00:00 +0000</pubDate>
    <dc:creator>HYV Research</dc:creator>
    <category>Research notes</category>
    <description>We marked out 148 million Hyperliquid maker fills over 157 days. The average fill earned +0.17 bps after one second and −0.5 bps after a minute, before a 1.5 bps fee; order-book imbalance was worth about 0.5 bps.</description>
    <content:encoded><![CDATA[<h2>In short</h2> <ul> <li>We took the maker’s side of 148 million trades on Hyperliquid’s BTC, ETH, SOL, HYPE, DOGE and LINK perps, from 21 April to late September 2026, and measured each fill’s markout at 1, 5, 30, 60 and 300 seconds.</li> <li>The average fill earned +0.17 bps one second after it filled and −0.5 bps after 60 seconds. At the 1.5 bps base maker fee, that is −2.0 bps a fill.</li> <li>Order-book imbalance separated good fills from bad by about 0.5 bps. Its best combination with recent taker flow was worth +0.2 bps a fill, an order of magnitude below retail costs.</li> <li>Fills against liquidations were the one group positive before fees. Traded on their own, liquidation cascades still didn’t clear an 11 bps round trip.</li> </ul> <h2>Why Hyperliquid market making looks like an edge</h2> <p>On Hyperliquid a taker pays 4.5 bps and a maker 1.5 bps at the base fee tier. The biggest makers pay nothing, and the very biggest are paid a rebate of up to 0.3 bps a fill. Every trade is public. So a bot that quotes both sides and collects the spread looks like the obvious place for a retail trader to start.</p> <p>The catch is what happens after the fill. A resting order gets filled most often when someone better informed wants to trade against it. That is <em>adverse selection</em>, and it is measured with a <em>markout</em>: how far the mid price has moved against your fill a few seconds later.</p> <p>The question got sharper this week. An <a href="https://www.techflowpost.com/en-US/article/35292">analysis of 0d Labs order-book data</a> published on 11 November found that order-book depth within 5 bps of the mid on Hyperliquid’s long-tail perps fell about 85% in a year. It also found that the bottom quarter of makers by volume paid about 0.96 bps in maker fees while the top quarter received 0.24 bps in rebates, a gap of about 1.2 bps before any adverse selection. Our data measures what comes next: what a fill is worth once it has filled.</p> <h2>The test: markouts on 148 million maker fills</h2> <p>Every trade on the tape is a fill for two parties: the taker who crossed the spread, and the maker whose resting order was hit. We took the maker’s side of every trade.</p> <table> <tbody> <tr><td>Maker fills marked out</td><td>148 million</td></tr> <tr><td>Period</td><td>21 April to late September 2026, 157 days</td></tr> <tr><td>Perpetuals</td><td>BTC, ETH, SOL, HYPE, DOGE and LINK</td></tr> <tr><td>Markout horizons</td><td>1, 5, 30, 60 and 300 seconds</td></tr> <tr><td>Order book</td><td>Hyperliquid, top five levels, a snapshot every 5 seconds</td></tr> <tr><td>Maker fee</td><td>1.5 bps a fill, the base tier</td></tr> </tbody> </table> <p>Markout in basis points, h seconds after a fill at price p:</p> <p>Maker bought:&nbsp; (mid at t + h − p) ÷ p<br> Maker sold:&nbsp;&nbsp;&nbsp; (p − mid at t + h) ÷ p</p> <p>The mid is the tape mid: the average of the last lifted ask and the last hit bid. Each fill was then grouped by what was known at the moment it filled, never after:</p> <ul> <li><strong>Order-book imbalance</strong> from the latest snapshot no older than 15 seconds, seen from the maker’s side.</li> <li><strong>Taker flow</strong>: whether aggressive buying or selling dominated the previous 10 seconds.</li> <li><strong>Depth of the fill</strong>: at the best price, or deeper inside a sweep that walked several levels.</li> <li><strong>Liquidations</strong>: whether a forced order filled it.</li> </ul> <p>Fills on the same day are correlated, so t-statistics were computed across daily means, 157 of them, not across 148 million fills. The days were also split into four chronological folds, and a group had to be positive in most of them to count.</p> <p><b>This is a ceiling, not an estimate.</b> The average fill includes the fastest makers, who cancel before toxic flow arrives. With about one second of round-trip latency, a retail bot’s fills skew towards the bad ones. If the average fill isn’t positive, yours won’t be.</p> <h2>The average fill earns the spread, then loses it</h2> <p>One second after a fill, the average maker was up 0.17 bps: that is the spread. By 60 seconds the mid had moved against the fill and the markout was −0.5 bps. Add the 1.5 bps base fee and the same fill is −1.33 bps at one second and −2.0 bps at 60 seconds.</p> <p><strong>Average maker fill markout, before and after the fee</strong></p><table> <thead><tr><th>Horizon</th><th>Before fees</th><th>After 1.5 bps fee</th><th>With top rebate</th></tr></thead> <tbody> <tr><td>1 second</td><td>+0.17</td><td>−1.33</td><td>+0.47</td></tr> <tr><td>60 seconds</td><td>−0.50</td><td>−2.00</td><td>−0.20</td></tr> </tbody> </table><p>Before fees, the average fill is barely positive at one second and negative within a minute. After the fee it is negative at every horizon.</p><p><em>The chart is in the original article.</em></p> <p>Rebates don’t close the gap for long. At the top rebate tier, 0.3 bps a fill, the average fill is worth about +0.47 bps at one second and still −0.2 bps at 60 seconds. That tier needs more than 3% of all maker volume on the exchange over 14 days. The makers who profit pair it with inventory that turns over within seconds.</p> <h2>Order-book imbalance is worth half a basis point</h2> <p>Order-book imbalance compares the resting size on the bid with the resting size on the ask, here across the top five levels. It is the signal most market-making bots lean on, and the effect behind it is real: <a href="https://arxiv.org/abs/1011.6402">Cont, Kukanov and Stoikov</a> showed that order-flow imbalance drives short-interval price changes, with a smaller effect in deeper books.</p> <p>On Hyperliquid it is small. At 60 seconds, fills in the best imbalance bucket beat fills in the worst by about 0.5 bps. The best cell of a 5 × 5 grid of imbalance and recent taker flow came to about +0.2 bps a fill before fees. By five minutes the effect was gone.</p> <p>We also tried it from the other side. Entering as a taker in the direction of an imbalance z-score won 45–49% of trades and lost money after fees.</p> <h3>Deeper fills are worse</h3> <p>Large orders that sweep through several price levels tend to be the informed ones. Fills below the best price did worse than fills at the touch between 5 and 60 seconds. A ladder of deeper quotes collects more of exactly the wrong flow.</p> <h2>The one positive group: fills against liquidations</h2> <p>Fills against liquidations were the only group positive before fees at nearly every horizon: about +2.0 bps at one second and +1.1 bps at five minutes. Forced selling overshoots and partly bounces back. But a resting order can’t choose to be filled only by liquidations, and after the base fee the five-minute figure is negative.</p> <p>So we tested the cascades as a trade of their own. A burst was a rolling 60-second or 5-minute window of liquidations above that coin’s trailing 30-day quantile. Entry came 2 seconds after the trigger, fading or following the move for 1 to 60 minutes, at 11 bps a round trip: 9 bps of taker fees plus 2 bps of slippage.</p> <ul> <li><strong>Bursts that moved price 20–100 bps:</strong> fading and following both lost at almost every horizon.</li> <li><strong>Bursts above 100 bps:</strong> fading made about +9 to +12 bps net at 5–30 minutes. But that was 46 events, the confidence interval was about ±50 bps, and one fold lost more than 200 bps.</li> <li><strong>A harsher rerun</strong>, with 5 seconds of latency and 13 bps of costs, was 1–2 bps worse with the same pattern.</li> </ul> <h2>What short-horizon information is worth, against what it costs</h2> <p>Put every result on one scale and the problem is plain. Short-horizon information on Hyperliquid is worth 0.2 to 2 bps. Retail costs are 1.5 bps a fill as a maker and 9 to 11 bps a round trip as a taker, at about one second of latency.</p> <p><strong>Edge against cost on Hyperliquid, in basis points</strong></p><table> <thead><tr><th>Item</th><th>bps</th></tr></thead> <tbody> <tr><td>Fills against liquidations, 1 s, before fees</td><td>+2.0</td></tr> <tr><td>Imbalance, best vs worst bucket, 60 s</td><td>0.5</td></tr> <tr><td>Best imbalance × flow cell, 60 s, before fees</td><td>+0.2</td></tr> <tr><td>Spread captured by the average fill, 1 s</td><td>+0.17</td></tr> <tr><td>Maker fee per fill, base tier</td><td>1.5</td></tr> <tr><td>Taker fees, round trip, base tier</td><td>9.0</td></tr> <tr><td>Taker fees and 2 bps slippage, round trip</td><td>11.0</td></tr> </tbody> </table><p>Every signal sits at or below the maker fee except liquidation fills, which fade within minutes. None comes close to a taker round trip.</p><p><em>The chart is in the original article.</em></p> <p>The firms that win at this horizon pay no fees or get paid, react in milliseconds and cancel before informed flow arrives. At the base tier and retail latency, almost every group we tested sat below the fee, and the one that didn’t faded within minutes.</p> <h2>What it means if you’re building a market-making bot</h2> <p>This doesn’t mean nobody makes money quoting on Hyperliquid. It means the edge lives in fee tier and speed, not in a cleverer signal. Before you quote anything at the base tier, run these five checks:</p> <ol> <li><strong>Mark out the public tape first.</strong> Take the maker side of every trade in your market and measure it at 1, 5, 30, 60 and 300 seconds.</li> <li><strong>Condition only on what was known at the fill.</strong> A book snapshot taken after the fill is look-ahead.</li> <li><strong>Compute t-statistics on daily means.</strong> 148 million fills are not 148 million independent observations.</li> <li><strong>Split the days into chronological folds</strong> and require most of them to be positive.</li> <li><strong>Treat the average fill as your ceiling,</strong> then subtract your own fee tier and latency.</li> </ol> <p>If what’s left is under 2 bps, move to slower horizons. Over days, a 9 bps round trip is small next to the move. Over seconds, it is the whole game. We found the same thing with a much slower rule: in our <a href="https://hyvprotocol.com/blog/buy-the-dip-altcoin-backtest.html">buy-the-dip altcoin backtest</a>, the fee was the loss.</p> <h2>Questions traders ask</h2> <h3>Is market making on Hyperliquid profitable for retail traders?</h3> <p>Not at the base fee tier in our data. Across 148 million maker fills on six major perps, the average fill was −0.5 bps before fees after 60 seconds, against a 1.5 bps maker fee. Makers who profit combine zero fees or rebates with inventory that turns over within seconds.</p> <h3>What is a markout in trading?</h3> <p>A markout is the profit or loss on a fill measured against the mid price a fixed time later, such as 1 or 60 seconds. A negative markout means the price moved against the fill. It is the standard way to measure adverse selection for market makers.</p> <h3>Does order-book imbalance predict price moves?</h3> <p>Slightly. On Hyperliquid between April and September 2026, the best imbalance bucket beat the worst by about 0.5 bps at 60 seconds, and the effect was gone by five minutes. That is real, but an order of magnitude below retail trading costs.</p> <h3>What are Hyperliquid’s maker and taker fees?</h3> <p>At the base tier, 0.015% (1.5 bps) for makers and 0.045% (4.5 bps) for takers. Above $7 billion of 14-day volume the maker fee is 0% and the taker fee 0.024%. Makers with more than 0.5% to 3% of 14-day maker volume earn rebates of 0.001% to 0.003%. Staking HYPE cuts fees by up to 40% (<a href="https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees">Hyperliquid docs</a>).</p> <h3>What is adverse selection in market making?</h3> <p>It is the cost of trading with better-informed counterparties. Resting orders get filled most often just before the price moves against them, so the spread a maker collects is partly or fully lost afterwards. In our data it turned a +0.17 bps markout at one second into −0.5 bps at 60 seconds.</p> <h2>Test your strategy against real costs</h2> <p>HYV-BOT paper-trades a strategy on live market data, with fees in every result and a risk gate that can veto a trade before it becomes an order. Paper trading is free, and your funds stay on your own exchange.</p> <p><a href="https://app.hyvprotocol.com/?utm_source=rss&amp;utm_medium=feed&amp;utm_campaign=hyperliquid_market_making">Paper-trade a strategy on HYV-BOT</a></p> <h2>Method notes</h2> <ul> <li>Data: Hyperliquid’s public trade tape for the six perps, every fill, 21 April to late September 2026; the liquidation feed from 25 April; Hyperliquid order-book snapshots every 5 seconds. Before 9 May the snapshots covered three of the six coins, and fills without a reading were grouped separately.</li> <li>Mid price: the tape mid, (last lifted ask + last hit bid) ÷ 2. One-second markouts against a tape mid are noisy; the 60-second figures are the ones to lean on.</li> <li>Fees: 1.5 bps a fill, Hyperliquid’s base maker fee. The rebate figures add the top tier’s 0.3 bps to the before-fee markout.</li> <li>Statistics: fill-weighted means, t-statistics across daily means, four chronological folds.</li> <li>Cascade test: bursts defined on trailing 30-day quantiles after a 7-day warm-up, so no look-ahead; one event per coin at a time; confidence intervals bootstrapped by day.</li> </ul> <p>This is research, not investment advice. Backtests and markout studies are hypothetical: they use past prices and assumed costs, and past results don’t predict future ones. Nothing here recommends buying or selling any asset.</p> <h2>Sources</h2> <ul> <li><a href="https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees">Hyperliquid Docs — Fees</a></li> <li><a href="https://www.techflowpost.com/en-US/article/35292">TechFlow — Hyperliquid order book depth shrinks 85%</a> (translation of an analysis by matteo using 0d Labs data, 11 November 2026)</li> <li><a href="https://arxiv.org/abs/1011.6402">Cont, Kukanov and Stoikov — The Price Impact of Order Book Events</a>, Journal of Financial Econometrics, 2014</li> </ul>]]></content:encoded>
  </item>
  <item>
    <title>We tested a buy-the-dip altcoin rule on 1,991 trades. Fees took everything.</title>
    <link>https://hyvprotocol.com/blog/buy-the-dip-altcoin-backtest.html</link>
    <guid isPermaLink="true">https://hyvprotocol.com/blog/buy-the-dip-altcoin-backtest.html</guid>
    <pubDate>Tue, 03 Nov 2026 09:00:00 +0000</pubDate>
    <dc:creator>HYV Research</dc:creator>
    <category>Research notes</category>
    <description>A buy-the-dip altcoin rule lost 0.22% a trade after fees on 1,991 unseen trades, and earned nothing before them. A random coin bought at the same moments did about as badly.</description>
    <content:encoded><![CDATA[<h2>In short</h2> <ul> <li>The rule bought the weakest of ten large altcoins whenever Bitcoin fell more than 1% on the day, with a 1% stop, a 2% target and a 12-hour time limit.</li> <li>On 1,991 trades from January 2022 to July 2025, data it had never seen, it lost 0.22% a trade after fees. It also lost in the year it was built on, and in the ten weeks after the rules were frozen.</li> <li>Before fees the average trade was −0.02%: no edge either way. The 0.2% round-trip fee was the loss.</li> <li>A random altcoin bought at the same moments did about as badly. Choosing the laggard was worth about 0.01% a trade.</li> </ul> <h2>Where the rule came from</h2> <p>Every altcoin trader knows the move. Bitcoin drops, everything drops with it, and the coin that has fallen furthest this week looks like it has the most room to bounce. Buy it, take a quick 2%, and get out at −1% if you’re wrong.</p> <p>These rules came from a discretionary alt-rotation approach that we wrote down and coded line by line, so a computer could trade it the same way every time. The question was simple: does the written-down version make money?</p> <p>The rules read Bitcoin’s 7-day return to decide what kind of market it is, then pick the <em>laggard</em>: whichever of the ten coins has the weakest 7-day return.</p> <table> <thead><tr><th>Market (Bitcoin’s 7-day return)</th><th>When it buys the laggard</th><th>Exit</th></tr></thead> <tbody> <tr><td>Strong bull: +3% or more</td><td>Once a day at 09:00 UTC, if the laggard is within 0.2% of its 6-hour low</td><td>−1% stop, +5% target, 72 hours</td></tr> <tr><td>Bull: 0 to +3%</td><td>Same as strong bull</td><td>−1% stop, +2% target, 12 hours</td></tr> <tr><td>Range: below 0</td><td>Any hour Bitcoin is down more than 1% since midnight UTC</td><td>−1% stop, +2% target, 12 hours</td></tr> </tbody> <caption>Coins: ETH, SOL, BNB, XRP, ADA, DOGE, AVAX, LINK, TRX and DOT, on Binance hourly spot candles. One position at a time. Fees: 0.1% in and 0.1% out, Binance’s standard spot rate.</caption> </table> <h2>The arithmetic, before any data</h2> <p>Fees change the shape of every trade. After 0.2% of costs, a winning bull or range trade nets +1.8% and a losing one −1.2%. So the rule has to win 40% of the time just to stand still.</p> <p>Break-even win rate = loss ÷ (win + loss)</p> <p>Bull and range trades: 1.2 ÷ (1.8 + 1.2) = 40%<br> Strong-bull trades:&nbsp;&nbsp; 1.2 ÷ (4.8 + 1.2) = 20%</p> <p>Here is why that matters. If prices moved at random, a +2% target would be hit before a −1% stop about a third of the time, and the bracket would break even before costs. The fee lifts the bar from a third to 40%, and the entry signal has to supply the difference. A rule without an edge lands at a third and pays the fee on every trade.</p> <h2>How we tested it</h2> <p>We fixed the pass and fail rules before running anything, so the result couldn’t be argued with afterwards.</p> <ul> <li><strong>Three periods.</strong> July 2025 to July 2026 is where the rules were built, so it only checks that the code reproduces what was seen; it doesn’t count as evidence. January 2022 to July 2025 is history the rules never saw. Mid-July to late September 2026 is everything since the rules were frozen.</li> <li><strong>Four criteria, all required.</strong> The average trade after fees above zero with a t-statistic of at least 2 on 2022–25; positive in both halves of 2022–25; strong-bull trades positive; positive since the rules were frozen.</li> <li><strong>A placebo.</strong> At the exact same moments, buy a random coin from the ten instead of the laggard, with the same stop, target and time limit, many times over. If the laggard can’t beat that, picking it adds nothing.</li> <li><strong>One bug fixed, both versions scored.</strong> The original code moved a stop to breakeven using the closing price of the same hour it then checked, a small look-ahead. We scored the code as written and a corrected version, and kept the lower score. The fix changed the result by less than 0.01% a trade.</li> </ul> <p><b>One bias works in the rule’s favour.</b> The ten coins are today’s largest, applied back to 2022. Coins that have since collapsed out of the top ten aren’t in the test, and a buy-the-laggard rule is exactly the kind that would have bought them on the way down. So a pass would have been flattering. A fail is not.</p> <h2>The result: 0 out of 4</h2> <p>Every period lost money, including the one the rules were designed on.</p> <p><strong>Average trade after fees, by test period</strong></p><table> <thead><tr><th>Period</th><th>Trades</th><th>Per trade, after fees</th></tr></thead> <tbody> <tr><td>Rule-building year, Jul 2025 – Jul 2026</td><td>584</td><td>−0.35%</td></tr> <tr><td>Unseen history, Jan 2022 – Jul 2025 (all)</td><td>1,991</td><td>−0.22%</td></tr> <tr><td>Unseen history, earlier half</td><td>—</td><td>−0.24%</td></tr> <tr><td>Unseen history, later half</td><td>—</td><td>−0.20%</td></tr> <tr><td>Since the rules froze, Jul – Sep 2026</td><td>30</td><td>−0.35%</td></tr> </tbody> </table><p>The two middle bars together are the main test: 1,991 trades from January 2022 to July 2025, which the rules had never seen. Their average is −0.22%.</p><p><em>The chart is in the original article.</em></p> <p>The 2022–25 test produced 1,991 trades with an average of −0.22% after fees. The t-statistic was −7.2: the loss sits about seven standard errors below zero, which rules out bad luck. Trades bunch up, because one red day can trigger several entries in a row, so we also clustered the errors by calendar month. The t-statistic was still −5.8.</p> <p>Both halves lost. The 42 strong-bull trades, where the bigger +5% target should have helped, lost 0.20% each. The 30 trades since the rules were frozen lost 0.35% each. And the year the rules were built on, the one period where you would expect them to look good, lost 0.35% a trade over 584 trades.</p> <h2>The fee is the loss</h2> <p>Almost every trade, 1,922 of 1,991, came from the range rule: buy the laggard whenever Bitcoin is down 1% on the day. In a choppy market that happens a lot, about 560 times a year.</p> <p>Before fees, those trades averaged −0.02%. That is zero for practical purposes. Then the fee arrives. At 0.2% a round trip and 560 trades a year, the rule hands the exchange 112% of its position size every year, while the trades themselves earn nothing.</p> <p><strong>Same trades, three fee levels</strong></p><table> <thead><tr><th>Venue</th><th>Before fees</th><th>Fees</th><th>After fees</th></tr></thead> <tbody> <tr><td>Binance spot (0.20% round trip)</td><td>−0.02%</td><td>−0.20%</td><td>−0.22%</td></tr> <tr><td>Hyperliquid perps (about 0.09%)</td><td>−0.02%</td><td>−0.09%</td><td>≈ −0.11%</td></tr> <tr><td>No fees</td><td>−0.02%</td><td>0</td><td>−0.02%</td></tr> </tbody> </table><p>The result before fees is the same in every row; only the fee changes. A cheaper venue halves the loss. It doesn’t create an edge.</p><p><em>The chart is in the original article.</em></p> <h2>Picking the laggard adds nothing</h2> <p>The placebo answers the question the whole idea rests on: is the weakest coin really the best one to buy on a dip?</p> <p><strong>The laggard against a random coin, bought at the same moments</strong></p><table> <thead><tr><th>Choice of coin</th><th>Per trade, after fees</th></tr></thead> <tbody> <tr><td>The laggard (the rule)</td><td>−0.224%</td></tr> <tr><td>Random coin, average of many runs</td><td>−0.238%</td></tr> <tr><td>Random coin, middle 95% of runs</td><td>−0.270% to −0.209%</td></tr> </tbody> </table><p>The laggard sits inside the range of random picks. Both are far below break-even.</p><p><em>The chart is in the original article.</em></p> <p>A random coin bought at the same moments averaged −0.24% a trade; the laggard averaged −0.22%. The laggard beat 74% of the random runs, which sounds like something until you look at the size of the gap: about 0.01% a trade, less than a tenth of the fee. The result comes from <em>when</em> the rule buys and how it exits, not from which coin it picks.</p> <h2>The filters that looked like a fix</h2> <p>Two extra filters were added to the range rule while the rules were being built: one on the altcoin’s own weekly trend, one on the slope of Bitcoin’s price. Together, on the rule-building year, they turned the result positive.</p> <table> <thead><tr><th>Version</th><th>Rule-building year</th><th>Unseen 2022–25</th><th>Since the rules froze</th></tr></thead> <tbody> <tr><td>No filters</td><td>−0.35% (584)</td><td>−0.22% (1,991)</td><td>−0.35% (30)</td></tr> <tr><td>Both filters</td><td>+0.20% (19)</td><td>−0.33% (73)</td><td>−0.32% (9)</td></tr> </tbody> </table> <p>Average trade after fees, with the number of trades in brackets.</p> <p>Nineteen trades, picked out of data you have already looked at, is a coin with a few lucky flips. On the 2022–25 history the same filters lost 0.33% a trade, worse than no filters at all. That is what overfitting looks like from the inside: a fix that only works on the data it was found on.</p> <h2>What we take from it</h2> <p>This doesn’t prove nobody can trade altcoin dips profitably. It shows that this written-down version doesn’t, and that the reason is mechanical. If a discretionary version of the idea makes money, the edge is in judgement the rules leave out, such as which dips get skipped. The way to find out is to compare real fills with the trades the rules would have taken.</p> <p>For any rule of your own, five checks catch most of this before money is involved:</p> <ol> <li><strong>Price the fees first.</strong> Fee per round trip times trades per year is what your rule has to beat every year, before anything else.</li> <li><strong>Write down pass and fail before you run the test.</strong> Afterwards, every result can be explained away.</li> <li><strong>Test on data the rule has never seen,</strong> both before and after the period you built it on.</li> <li><strong>Run a placebo.</strong> Random entries at the same moments with the same exits show whether your selection adds anything.</li> <li><strong>Distrust any filter you found on the data you test it on,</strong> especially when it leaves only a handful of trades.</li> </ol> <h2>Run your own rule with fees counted</h2> <p>HYV-BOT paper-trades a strategy on live market data, with fees in every result and a risk gate that can veto a trade before it becomes an order. Paper trading is free, and your funds stay on your own exchange.</p> <p><a href="https://app.hyvprotocol.com/?utm_source=rss&amp;utm_medium=feed&amp;utm_campaign=buy_the_dip_backtest">Paper-trade a strategy on HYV-BOT</a></p> <h2>Method notes</h2> <ul> <li>Data: Binance hourly spot candles for the ten coins, November 2021 to September 2026. Stops and targets were checked against hourly highs and lows.</li> <li>Costs: 0.1% a side, Binance’s standard spot rate for regular users. No separate slippage was charged, so real fills would do slightly worse. The Hyperliquid row changes only the fee; it leaves out perp funding payments.</li> <li>Strong-bull trades: if Bitcoin’s 7-day return turned negative mid-trade, the stop moved to breakeven.</li> <li>The forward period ends three days before the test was run on 29 September 2026, so every trade had time to close.</li> <li>t-statistics are reported plain and clustered by calendar month, because entries on the same day are correlated.</li> </ul> <p>This is research, not investment advice. Backtests are hypothetical: they use past prices and assumed costs, and past results don’t predict future ones. Nothing here recommends buying or selling any asset.</p>]]></content:encoded>
  </item>
</channel>
</rss>
