Backtesting software

Backtest before
you trade.

Free backtesting software for crypto, stocks, forex and gold. Replay any market candle by candle, or run a strategy and see every trade, the equity curve and the drawdown. Free with 1 year of history. Ultimate adds unlimited.

See it step by step

Already have an account? and go straight to Backtesting.

chartlabs.co/charts
Monte Carlo
Optimizer
Fees + slippage includedMonte CarloOptimizer

Demo animation of the ChartLabs chart on simulated data. Not a trading result.

01 / 05

Inside the app.
The tester sits under the chart.

Trades plot on the chart as Buy+ and Sell+ tags. Results sit in a panel underneath. Fees, slippage and leverage are settings, not footnotes.

  1. 1Trade tags on the chart
  2. 2Tabs: Overview, Trades, Analysis, Monte Carlo, Optimize, Walk forward
  3. 3Costs set before you run
Example market1hEMA Cross 20/50
Strategy TesterOverviewTradesAnalysisMonte CarloOptimizeWalk forwardProperties
Initial capital10,000
Fees0.1% per order
Slippage1 bp
Leverage1x

Simulated data. Not a trading result.

Ways to backtestPick how you test.

Future hidden

Bar Replay

Practise reading price action on the main chart, on the web and in the phone app. Hide the future and play the chart forward.

LongPosition

Replay backtesting

Rewind a market and trade it candle by candle, as if it were live. Every trade goes into a session with its own track record.

Buy+Sell+Buy+Sell+

Strategy Tester

Run a coded strategy over the chart history and get a full report. Write it in CodeLab, import it from Pine Script, or ask Atlas to turn an indicator into a strategy.

02 / 05

How it works.
Rule, replay, results.

IfEMA 20crosses aboveEMA 50thenBuyexit whenEMA 20crosses belowEMA 50

Drag the slider to step through one trade. The bottom row shows when the position is open, so you see exactly when the signal formed and when it closed. Orders fill on the next bar, so a signal never trades on a price it could not have known.

Buy+Sell+

Robustness testsDon't trust one run.

Shuffle the trade order, sweep the settings and test on bars the rule never saw.

60 shuffled orders · 5 to 95% band · median in white

Monte Carlo

Shuffle the trade order 60 times. A fragile rule fans out wide. In the app it reshuffles your trades 1,000 times.

510152025303045607590105120Slow lengthFast length

Optimize

Sweep every fast and slow length. A good rule has a broad bright area, not one lucky cell.

TuneTestTime

Walk forward

Tune on one window, test on the next unseen one, then roll forward.

Replay vs Strategy TesterWhich one should you use?

Replay tests you: your reading of the chart and your discipline. The Strategy Tester tests rules. Many traders use both.

CompareReplayStrategy Tester
Coding neededNoA script: write it, import it from Pine, or ask Atlas
How trades happenYou place them by hand as the bars playYour strategy code places them
SpeedReal time, at the replay speed you pickEvery bar of the chart history in one run
Best forPractising discretionary setupsChecking a rule across many trades
Robustness checksA track record per strategy tag across sessionsMonte Carlo, parameter sweeps and walk forward
History1 year free, unlimited on Ultimate1 year free, unlimited on Ultimate
Coding needed
Replay
No
Strategy Tester
A script: write it, import it from Pine, or ask Atlas
How trades happen
Replay
You place them by hand as the bars play
Strategy Tester
Your strategy code places them
Speed
Replay
Real time, at the replay speed you pick
Strategy Tester
Every bar of the chart history in one run
Best for
Replay
Practising discretionary setups
Strategy Tester
Checking a rule across many trades
Robustness checks
Replay
A track record per strategy tag across sessions
Strategy Tester
Monte Carlo, parameter sweeps and walk forward
History
Replay
1 year free, unlimited on Ultimate
Strategy Tester
1 year free, unlimited on Ultimate

Backtest metricsRead the results honestly.

What each number in the Strategy Tester report means.

Net profit

Total profit minus total loss over all closed trades, after fees and slippage.

Return

Net profit as a percentage of the starting capital.

Win rate on closed trades

The share of closed trades that made money. A high win rate can still lose overall.

Max drawdown

The largest fall from a peak in equity, including the open position.

Profit factor

Gross profit divided by gross loss. Above 1 means winners outweigh losers.

Sharpe ratio

Return per unit of volatility. Higher means smoother results.

Sortino ratio

Like Sharpe, but it only counts downside volatility, so big up moves are not penalised.

MFE and MAE

How far each trade went in your favour and against you before it closed.

CodeLab in ChartLabs with a strategy script under the chart
04 / 05

Bring your strategy.
Pine in, results out.

Paste PinethenCodeLab converts itthenRun in the tester

A converted strategy keeps its own orders and its strategy() settings for capital, fees and slippage. The importer lists anything it could not convert.

How the importer works

Backtesting FAQCommon questions.

Is ChartLabs backtesting free?

Yes. Replay backtesting and the CodeLab Strategy Tester are part of the Free plan, with 1 year of history. Ultimate adds unlimited backtest history. You need a free account so your sessions and scripts can be saved.

Do I need to code to backtest?

No. Replay backtesting is manual: you watch the bars play and place trades yourself. Coding is only needed for the Strategy Tester, and Atlas, the ChartLabs AI, can write the strategy rules for you.

Can I backtest a Pine Script strategy?

Yes. Import it into CodeLab with Import from Pine Script. A converted strategy keeps its own orders and its strategy() settings for capital, fees and slippage, and runs in the Backtest tab. The importer lists anything it could not convert.

Are my replay sessions saved?

Yes. Sessions are saved to your account, so you can come back to them, keep many sessions and compare them.

Does the Strategy Tester include fees and slippage?

Yes. Set fees, slippage, leverage, order size and starting capital in the strategy properties before you run, and every trade in the report includes them.

What markets can I backtest?

Replay backtesting covers crypto, US stocks and ETFs, forex and gold, on timeframes from 1 minute to 1 day. The Strategy Tester runs on the symbol and timeframe of your chart.

What is walk forward testing?

You tune a rule on one window of history, then test it on the next window it has never seen, and roll forward. The Strategy Tester reports the out-of-sample part on its own, so a rule that only fits the past shows up.

Does a good backtest mean a strategy will make money?

No. A backtest shows how rules would have behaved on past data. Results are hypothetical and past performance does not guarantee future results. Use the Monte Carlo and walk-forward checks to see how fragile a result is.

05 / 05

Run your first backtest.
Free, no download.

Import a Pine strategy

Already have an account? and go straight to Backtesting.

Example market1h
EMA Cross 20/50
Buy+Sell+Buy+Sell+

Backtest results are hypothetical. They are simulated, do not include every real cost, and do not predict future results. Trading involves risk of loss, and nothing on this page is financial advice. Risk disclosures.