Skip to content
Connecting market data
Connect wallet

Help › Trading

Market Neutral bot

A Market Neutral bot holds two related coins, one long and one short, sized so their price moves largely cancel out.

More

It enters when the gap (spread) between them is unusually stretched and closes when it comes back.

When to use it

When two coins usually move together (BTC and ETH, two similar stocks) and you want to trade their relative move rather than the market's direction.

Settings

Every bot trades in your own Hyperliquid account. In the setup you pick the market, the amount and the leverage; Safe, Balanced and Aggressive fill in the rest from the coin's own volatility, and Customize settings opens every setting below. Rivemont's fee is from 0.1% per fill, lower with your 30-day volume, plus Hyperliquid's own trading fee.

Pair with
The second coin: it trades the opposite side.
Hedge
Beta (sizes the legs so their moves cancel out), Fixed (a ratio you set, 0.1 to 10) or Equal (the same amount on each leg).
Bet
Gap closes (mean reversion: shorts the coin that ran ahead, buys the one that lagged) or Gap widens (trend).
Chart and Look back
Beta and the z-score are measured over this many candles (10 to 500).
Enter at z
How stretched the spread must be, in standard deviations. Higher: fewer, stronger signals.
Entry levels, Level step, Split
1 enters with the whole amount; up to 5 levels each add a share one step further out (equal, or 1 : 2 : 3).
Max half-life
Optional: enters only while a gap halves within this many candles.
Exit at z
Closes both legs when the spread is back this close to its average.
Stop at z, SL, Max loss
At least one is required: the gap widening past a z, a loss as a share of both legs, or a dollar loss over the bot's life. In trend mode the SL is required.
TP, Close after, Start again
Optional take profit on both legs, a time limit per trade, and a new round after each exit.

Example

ETH against BTC on the 1-hour chart, look back 100, enter at z 2, exit at z 0.5, $500 per leg. ETH runs 2 standard deviations ahead of BTC: the bot shorts ETH and buys BTC, and closes both when the gap is back within 0.5. If the gap keeps widening to z 3.5, its z stop closes both legs.

Set up a Market Neutral bot →

What can go wrong

  • Hedged, not risk-free.Two coins can drift apart for good; the stops limit how far it waits.
  • Two legs, two feeson each entry and exit, and funding on both.