Skip to content

Your first backtest

This page takes you from downloaded data to a finished backtest in a few minutes. You need some market data on your computer first; if you have none, follow Connect market data and download a keyless crypto pair from Kraken or Binance.US.

Click Strategy Suite in the title bar. It opens on Backtest.

2. Pick a strategy, instrument and timeframe

Section titled “2. Pick a strategy, instrument and timeframe”

Along the top of the tab, from left to right:

  1. Strategy: pick one of the example strategies that come with the app:
    • EMACross: buys when a fast moving average crosses above a slow one and sells when it crosses below.
    • BreakoutBracket: trades breakouts with a stop and a target set around each entry.
    • RSIMeanReversion: buys and sells against stretched RSI readings.
  2. Instrument: pick the instrument you downloaded, such as BTC/USD.
  3. Timeframe: pick one of the bar sizes you have for it, such as 1-minute.
  4. Dates: set a start and end date inside the data you have. My data in Data Hub shows each series’ range.

The Strategy Parameters panel lists the strategy’s settings, such as EMACross’s fast and slow periods (10 and 20). Leave them as they are for a first run. Reset Defaults puts them back.

The Assumptions strip under the toolbar shows what the run will charge and how it will fill:

  • Account: the starting balance, currency and account type, from Settings › Account defaults. The default is 100,000 USD.
  • Costs: your trading costs. Until you set yours up, backtests charge Typical retail, the platform default, and a banner offers Set up trading costs.
  • Slippage: extra slippage on top of the fill model, from 0 to 50%.
  • Fill: how orders are filled. Leave it on Default (Balanced) for now; see How fills work below.

Click Run Backtest. The button reads Backtesting… while it runs. A first run on a year of 1-minute bars usually takes seconds to a minute or two, depending on your computer.

The results open on Overview & KPIs. The other tabs are Interactive Chart, Monthly Returns, Trade Log and Monte Carlo.

The overview starts with Measured under:, which says how the run was actually filled. Read it first: if it says the run stepped down to a simpler fill model, the results are less realistic than you asked for.

Below that is the tear sheet, grouped as:

  • Performance: Net P&L, CAGR, Max Drawdown, Sharpe, Sortino and Calmar.
  • Trades: number of trades, Win Rate, Profit Factor, Payoff, Expectancy and average win and loss.
  • Risk: drawdown length, time under water, volatility, long and short profit factor and commissions.
  • Uncertainty: a 95% range for the Sharpe ratio, the probabilistic Sharpe ratio (PSR) and the first 70% of the run against the last 30%.
  • Tail, Costs and carry, Excursions and Buy and hold: including results at twice your costs, the costs at which the strategy breaks even, and how it compares with simply holding the instrument.

Then come the equity and drawdown chart and Run Assumptions & Execution Details, which records everything the run used.

Pin Run keeps a run so you can compare it with later ones in Compare Runs.

A backtest is only as good as its fills. The Fill picker sets how orders are priced, from most faithful to fastest:

Mode Use it for
Book The most faithful and the slowest. Needs order-book data over the whole window
Tape Fills against recorded quotes, or trades where there are no quotes
Accurate Final checks, and any strategy whose stops, targets or limits matter inside a bar
Balanced The default. Uses 1-minute detail for resting orders; good when Accurate is too slow, such as in sweeps
Fast Strategies that act only at bar closes
Signal close Fills at each signal bar’s close, market orders only. The fastest, and idealised

If the data you have can’t serve a mode, the picker tells you before the run: the option reads runs as a simpler mode, or not available with what to do instead. Sigmetry never quietly runs a cheaper fill model than the one it shows you.

The most common reasons on a first run:

  • No data for that instrument or timeframe: download it in Data Hub, or pick a timeframe you have.
  • Dates outside your data: pick dates inside the range shown under My data.
  • Dates clamped: the end date is kept before the market’s holdout, the recent stretch reserved for the Research Gates. That’s expected.

More fixes are on the Troubleshooting page.

  • Use Optimizer and Walk Forward to tune and test the strategy’s parameters.
  • Use Market Scan to run the same strategy over many instruments and timeframes.
  • When a strategy looks promising, check it with the Research Gates before you trade it.