Describe a trading strategy in a sentence or paste a TradingView Pine Script. GoldRush turns it into code you can read, then tests it on real Hyperliquid candles with fees and slippage counted on every fill.
Open to anyone with a free GoldRush account. Runs bill to your own API key, and your strategies stay in your browser.
RSI mean reversion
BGood · 73/100Say what you want to trade, on which market and timeframe. The builder answers with the rules it understood, the numbers you can tune, and the TypeScript that will run. If a rule reads wrong, you see it before a single candle is fetched, and you fix it by saying so.
import { RSI } from "technicalindicators";
export function onCandle(candles, portfolio, parameters) {
const { rsiPeriod, oversold, exitLevel } = parameters;
const closes = candles.map((c) => c.close);
const price = closes[closes.length - 1];
const rsi = RSI.calculate({ period: rsiPeriod, values: closes });
const [prev, now] = rsi.slice(-2);
const holding = portfolio.positions.length > 0;
let action = "HOLD";
if (!holding && prev >= oversold && now < oversold) action = "BUY";
if (holding && prev <= exitLevel && now > exitLevel) action = "SELL";
return {
action, size: 1, price, orderType: "MARKET",
stopLoss: price * (1 - parameters.stopLossPercent / 100),
takeProfit: 0, confidence: 0.6,
reasoning: `RSI ${now.toFixed(1)}`,
};
}//@version=5
strategy("RSI dip buyer", overlay = true)
len = input.int(14, "RSI period")
r = ta.rsi(close, len)
if ta.crossunder(r, 30)
strategy.entry("Long", strategy.long)
if ta.crossover(r, 60)
strategy.close("Long")
stopPx = strategy.position_avg_price * 0.98
strategy.exit("Stop", "Long", stop = stopPx)Already have a strategy on TradingView? Paste the script. It becomes the same readable definition and TypeScript as a described strategy, with its inputs turned into sliders, and runs on Hyperliquid prices instead of an exchange you don't trade on.
AI-written Pine often compiles with the wrong logic. Here the rules are spelled out in words next to the code, so a misread entry or stop is easy to spot.
Every run streams its log as it goes, then opens on one plain sentence about what happened. Behind it: return, drawdown, win rate against the rate needed to break even, profit factor, Sharpe, Sortino and Calmar, a grade out of 100, and every trade with the reason it closed. Move a slider, run again, and the new result is compared with the last.
Gained 18.4% over 180 days across 41 trades. Winners averaged +2.9% and losers −1.8%, and it won 59% of trades against the 38% needed to break even.
| Opened | PnL | Closed by |
|---|---|---|
| 27 Oct 14:00 | +2.35% | End of period |
| 21 Oct 03:00 | −2.17% | Stop loss |
| 17 Oct 19:00 | +4.14% | Signal |
| 12 Oct 08:00 | +1.89% | Signal |
| 6 Oct 22:00 | −2.17% | Stop loss |
| 1 Oct 11:00 | +3.68% | Signal |
| 26 Sep 05:00 | +0.71% | Signal |
| 19 Sep 16:00 | −2.17% | Stop loss |
A backtest is only worth what its fills are worth. The engine charges for every trade, and where it can't know what happened inside a candle it assumes the worse fill.
Test any Hyperliquid perpetual, from BTC-PERP and ETH-PERP to SOL-PERP and HYPE-PERP, or a Hyperliquid spot pair. Pick the candle size and how far back to go, and set leverage per run up to the market's own maximum.
Solana traders can backtest SOL as SOL-PERP today, on Hyperliquid's price history. Backtests on Solana DEX markets are not available yet.
| Candles | Longest window |
|---|---|
| 1m | 3 days |
| 5m | 18 days |
| 15m | 30 days |
| 1h | 180 days |
| 4h | 365 days |
| 1d | 730 days |
Buy oversold dips on SOL-PERP and sell the bounce, then slide the RSI levels and the stop to see how fragile the edge is.
Moving-average crosses and breakouts on 4h or daily candles, with up to two years of history on the daily chart.
Paste the Pine Script you already trust and test it on Hyperliquid prices, with Hyperliquid-like costs, before you trade it there.
Ask the analyst about a finished run, or tell the builder what to change and run the new version against the last one.
Strategy Backtest reads candles on your own GoldRush API key, the same key that serves the Hyperliquid API and 100+ other chains. Every account starts with a free trial.
onCandle code that you can read. You then run it on Hyperliquid candle history and get metrics, equity and drawdown curves, a grade and every trade.The key Strategy Backtest reads candles on.
Describe a strategy or paste Pine Script.
How GoldRush credits are billed.
The Info API and WebSocket the candles come from.
Every supported request type, including candles.
Your first Hyperliquid data in five minutes.
Custom nodes, no rate limits, full fill history.
What else teams build on Hyperliquid and DEX data.
Step-by-step builds on GoldRush data.