Skip to content

Spot Grid Backtesting

SPOT GRID · REAL HISTORICAL DATA · NO LEVERAGE

How would your Grid Bot have performed? Choose a range and period to estimate the asset units and USDT you would have at the end, and compare the result with buying and holding.

Historical data from Gate (affiliate link).

Put your Grid Bot to the test

Backtest settings

All simulations use historical data from Gate’s Spot markets. Gold and stocks are represented by tokenized assets; silver and indices by tokenized ETFs.

Includes the initial purchase of units and the reserve for orders.

Earliest date: 10/15/2017 (UTC).

From 2 to 500 intervals; there is one more level than grids.

Also applies to the initial purchase. Adjust it to your account.

Up to 12,000 candles. Larger candles hide more price movements. For 1-hour candles, available history covers approximately the last 13 months.

The suggested range uses only the period’s open, not later highs or lows. Enter amounts without thousands separators; a decimal comma or point is accepted.

Testing a long period? If you reach a calculation limit, choose 1-day, 3-day or 1-week candles, or shorten the period. A higher timeframe simplifies the chart but reduces the detail of the estimate.

How this simulation works

Capital is split between units bought at the initial open and USDT reserved for lower purchases. Each interval uses the same quantity of the asset: buying at its lower level and selling at its upper level. Profits accumulate in USDT without reinvestment.

Model assumptions and limits
  • Realized result: realized result from sold lots, including sales from the initial inventory, calculated using their actual simulated cost and fees. This may differ from the figure shown by an exchange.
  • Unrealized PnL: final value of the remaining units minus their purchase cost, including the buy fee. No future selling fee is deducted.
  • Orders fill completely when their level is touched. Slippage, order queues, available liquidity, rounding and platform minimums are ignored. Small capital or many grids may produce orders an exchange would reject.
  • Each candle tests open → high → low → close and open → low → high → close. Gaps between candles cross levels at the order price. No additional fluctuations are invented.
  • No new cycles open outside the range. Inventory remains exposed to price; there is no stop-loss, trailing, leverage or additional contribution. If the balance is insufficient, the purchase is skipped and a notice is shown.
  • 3- and 7-day candles group daily candles from the start date: they retain the first open, highest high, lowest low and last close. The final group may contain fewer days to respect the end date. Minimum dates are fixed tool limits; candles are downloaded and checked for completeness when calculating. Complete base candles are required for the entire period. Availability depends on the pair, date and provider; gaps are not filled and dates are not silently changed. Monero is excluded because this source does not offer it with the same USDT pair.
  • Choosing the best range after looking at all the history can overestimate a strategy. Test other periods too, and avoid interpreting the result as a recommendation.
  • 1-hour candles are fetched directly from Gate. Their availability is limited to approximately 10,000 hourly candles back, around 417 days. Higher timeframes allow older periods to be queried, subject to data availability.

Historical prices: Gate, through its public API. The registration link is an affiliate link. Calculations run in your browser; data is fetched when you press a button.

Free educational tool. Figures are estimates under these assumptions and do not guarantee returns.

← Visual Grid simulatorView all tools

Install the app

Add the app to your device and open it from the brain icon.

If the option is missing, try an up-to-date compatible browser. Prices and historical data require internet.

Trading with Brainpower notifications

Get a notification when we publish a new tutorial, news article or tool. Choose your language. You can turn them off anytime.

Turn notifications on or off

Loading Webpushr controls…

Privacy

Brainpower Help