Skip to content
Gimmer Research and operating guides
Download Gimmer
Cryptocurrencies

Crypto Backtest Exposure: Measure Time in the Market

Learn how crypto backtest exposure measures time in the market, why gross and net exposure differ, and how to compare historical runs on one clear basis.

All research
Two amber exposure intervals circle a dark time dial under the headline Map Time in the Market.

Crypto backtest exposure measures how much of a historical test a strategy spends with an open market position and how large that position is relative to a declared capital base. Start with time in the market, then add gross and net exposure when direction or leverage matters. Keep the formula, clock, sizing rule, and missing-data treatment visible. Exposure describes modeled participation; it does not predict performance or make one strategy safer than another.

What crypto backtest exposure tells you

A result can look calm because a strategy was out of the market for most of the test. Another strategy may reach a similar summary through small positions held for much longer. Without exposure, those paths can appear more alike than they are.

Gimmer’s public backtest guide describes a historical replay as evidence about returns, drawdown, exposure, trades, and order behavior. That makes exposure part of a system review, not a stand-alone score. It helps answer three separate questions:

  • Presence: For how much of the test window was any position open?
  • Size: How much gross notional was open relative to the chosen capital base?
  • Direction: Was the modeled book net long, net short, or close to neutral?

The answer depends on the observation clock. The candle-interval checklist explains why a signal timeframe, evaluation schedule, and execution model should not be treated as interchangeable.

Choose the exposure definition before reading the result

The simplest measure is binary time in the market:

time-in-market exposure = time with any open position / total eligible test time

This treats a small open position and a fully allocated position the same. That may be enough when the question is whether the strategy was present or flat, but it does not describe modeled size.

A time-weighted gross measure adds that dimension:

average gross exposure = time-weighted absolute open notional / time-weighted capital base

Gross exposure adds the absolute long and short sides instead of allowing them to cancel. Net exposure keeps direction:

net exposure = time-weighted (long notional - short notional) / time-weighted capital base

A book can have low net exposure and high gross exposure at the same moment. Report both when simultaneous long and short positions are possible. For a single-position, long-only spot test, time in the market and gross exposure may be enough.

A duration-versus-size exposure example

Suppose two illustrative runs cover the same 24 hours and use a fixed capital base of 100 test units. Run A holds one 100-unit position for 6 hours. Run B holds a 33.3-unit position for 18 hours. The values below are invented teaching data, not Gimmer, exchange, user, or cryptocurrency market results.

Run Open duration Open notional Time in market Average gross exposure What differs
A 6 of 24 hours 100 units 25% 25% Shorter presence at the full test-unit capital base.
B 18 of 24 hours 33.3 units 75% About 25% Longer presence at roughly one-third of the capital base.

The average gross exposure is nearly equal, but the paths are not. Run A concentrates exposure into a shorter interval. Run B stays in the market three times as long at a smaller size. One percentage cannot preserve both facts, so keep time-in-market and notional-weighted exposure beside each other.

Exposure is also different from turnover. Exposure describes modeled position state through time; turnover describes how much notional crosses the execution ledger. The crypto backtest turnover guide shows why a strategy can rotate capital frequently without maintaining a large position continuously.

Build exposure from one position timeline

  1. Freeze the source run: record the strategy revision, market set, interval, dates, timezone, position-sizing rule, leverage rule, and cost settings.
  2. Declare the clock: decide whether duration uses wall-clock time or completed candle intervals. Use one convention across every run in the comparison.
  3. Reconstruct position state: apply filled opens, increases, reductions, and closes in timestamp order. An intended or rejected order is not an open position.
  4. Mark binary presence: label every eligible interval as open or flat for the time-in-market measure.
  5. Weight the open state: record absolute notional for gross exposure and signed notional for net exposure.
  6. Choose the capital base: state whether the denominator is fixed initial capital or a time-varying equity series, and keep that choice consistent.
  7. Reconcile boundaries: confirm positions already open at the test start and still open at the test end are counted only inside the declared window.
  8. Flag missing data: do not silently classify a candle gap or unavailable interval as flat exposure.

Use the most faithful completed position and execution records available. This article does not claim that Gimmer exposes a dedicated field or export for these formulas.

Read exposure beside drawdown, turnover, and leverage

Exposure changes the context of other backtest measures without explaining them by itself.

  • Drawdown: Ask whether the equity decline occurred during a brief concentrated position or a long period of open exposure. The maximum-drawdown path review keeps the peak, trough, and recovery sequence visible.
  • Turnover: Compare how long positions stayed open with how often capital moved. High time in market does not require frequent trading.
  • Leverage: Separate binary presence from gross notional. The U.S. Commodity Futures Trading Commission’s virtual-currency risk advisory explains that leveraged futures accounts can amplify underlying trading risk. It does not define an exposure formula, but it supports keeping leverage visible.
  • Margin rules: Keep liquidation, borrowing, and position-sizing assumptions outside a generic spot comparison. Use the margin-bot risk-control checklist when those conditions apply.

Compare the same exposure measures across conditions

A single full-period average can hide where exposure accumulated. Keep the strategy rules and measurement contract fixed, then split the same historical run into predeclared slices. Compare time in market, average gross exposure, and net direction across rising, falling, sideways, quiet, and turbulent periods where the data supports those labels.

The market-regime condition map provides a two-axis framework for that review. The labels remain historical descriptions, not forecasts. Small slices or very few decisions should stay visibly limited.

Crypto backtest exposure comparison checklist

  1. Use the same test dates, timezone, market set, and candle treatment.
  2. Publish the time-in-market formula and eligible-time denominator.
  3. Report gross and net exposure separately when direction can offset.
  4. Keep the position-sizing and leverage rules visible.
  5. Use the same fixed or time-varying capital-base definition.
  6. Reconcile open-state changes to filled execution records.
  7. Count boundary positions only inside the declared window.
  8. Flag missing data instead of converting it to flat time.
  9. Compare exposure beside drawdown, turnover, costs, and trade count.
  10. Do not rank strategies by one exposure percentage.

Frequently asked questions

Is lower exposure always better in a crypto backtest?

No. Lower exposure means less modeled market participation under the declared measure. It does not establish better risk control, execution quality, or future performance.

Does a waiting order count as time in the market?

Not under a position-state definition. Count exposure after the historical fill model opens a position. Keep unfilled, rejected, canceled, or partially filled order behavior in the separate execution review.

Can net exposure replace gross exposure?

No. Equal long and short notional can produce net exposure near zero while gross exposure remains large. Net describes direction; gross describes total absolute position size.

Make the measurement reproducible

Exposure becomes useful when another reviewer can rebuild it from the same position timeline, clock, notional rule, and capital base. Preserve time in market and position size as separate facts, then read them beside the rest of the historical evidence. Open Gimmer’s Running Backtest guide, freeze one completed run, and add time-in-market plus gross exposure to the review sheet before comparing outcomes.

Leave a Reply

Your email address will not be published. Required fields are marked *

*