Backtest the rules you actually saved

A backtest replays a saved strategy against available historical data. It is most useful for checking logic, trade sequence, exposure, and sensitivity—not predicting future returns.

Finish the strategy definition first. Confirm its universe, entries, sizing, exits, schedules, portfolio limits, and asset-specific settings from the strategy Overview. A material edit creates a new test hypothesis, so rerun the relevant periods after saving.

Backtests are hypothetical simulations. Results depend on the selected dates, available data, bar interval, contract selection, order and fill assumptions, costs, liquidity, and modeled account behavior. Favorable historical results do not predict live performance.

Run a backtest

  1. Open Strategies, select the strategy, and review the saved configuration on Overview.
  2. Open the Backtest tab and choose a historical period supported by the strategy and available data.
  3. Start the run. Investfly shows queued or running progress; you can stop an active run if the definition or date range is wrong.
  4. After completion, review the portfolio curve, summary metrics, closed trades, and any errors or warnings together.
Investfly backtest results showing performance metrics and trades
Inspect individual trades and the path of results, not only the final return.

Interpret the result in layers

EvidenceQuestion to ask
Trade listDid the strategy enter, size, scale, and exit when the saved rules say it should?
Portfolio pathWere gains concentrated in one short interval, and how deep or persistent were declines?
Counts and win/loss metricsIs the sample large enough to be informative, and are a few outliers driving the outcome?
Risk-adjusted metricsDo the reported values remain coherent across relevant periods and assumptions?
Warnings and missing dataCould unavailable history, sparse bars, or a modeled instrument invalidate the comparison?

Compare periods without overfitting

Test more than one market environment and keep at least one period outside the tuning process. If a small parameter change completely reverses the result, treat the strategy as fragile. Prefer a rule set you can explain over one selected only because it maximized a historical metric.

Daily bars, intraday bars, schedules, pending limits, futures contracts, and options structures can have different timing and pricing assumptions. Compare only runs whose data and configuration make the comparison meaningful.

Move from history to forward observation

A completed backtest is one checkpoint. Next, deploy the saved strategy to an Investfly virtual portfolio and observe current signals, pending orders, fills, state transitions, and exits with simulated funds. If you later choose an eligible broker account, repeat the compatibility and risk review before authorization.

Need a strategy first? Follow How to Create a Trading Strategy or compare the no-code trading bot builder with the Python algorithmic trading platform.

Build and test your own strategy

Define the rules, inspect the historical behavior, then observe the saved strategy in simulation.

Start Your Free Trial