Backtest a Stock Trading Rule Without Code
Choose a U.S. stock or ETF and a rule. Run a free historical test to see when the rule would have traded and how it compares with buying and holding over the same dates. The rule’s result includes estimated trading costs. You can run an example without an account.
Historical simulation, free, no account needed.
A free stock backtesting tool, with the assumptions in view
A backtest applies a defined rule to historical prices to see what would have happened under a set of assumptions. Reality Check tests a rule on a US stock or ETF without coding or creating an account, then compares it with buying and holding the same symbol over the same available period. A historical result is evidence to investigate, not a forecast.
How the daily test works
- Choose a symbol and one of the starting rules; each rule sets its own exit. To change the exit, limit the holding time or pick a history period, open the rule in Advanced. Available history can be shorter than the five-year maximum.
- The model evaluates daily closing data and fills entries at the next session’s open. It uses a long-only account starting with $100,000.
- Read the result’s cost assumptions and data notes. The trading rule includes modeled commission and slippage on each side; the holding comparison has no trading costs.
- Compare return, drawdown and trade count. Check whether the conclusion depends on one period, a few trades or a favorable cost assumption.
What this test can and cannot tell you
Daily bars do not establish the sequence of intraday prices or reproduce live execution. Modeled costs cannot guarantee fills, liquidity or actual slippage. Short sales, options and intraday opening-range rules are outside this tool’s daily model.
Read each result’s dividend and adjustment notes: both comparisons include dividends when available; otherwise both use price returns. Testing currently listed symbols can also introduce survivorship bias.
Changing settings after looking at results reuses the same history. Basic checks do not create an untouched holdout sample. Learn how to avoid look-ahead bias and account for trading costs before interpreting a result.
Read a documented study
These separate studies document their own data windows, cost assumptions and limitations. The daily tool above does not reproduce their intraday or overnight execution models.
- QQQ opening-range breakout: historical result and cost-model correction
- SPY overnight: original result and later sensitivity checks
- All published rule tests, including negative and inconclusive results
Common questions
Do I need an account or code to run a test?
No. Running this daily historical simulation is free and does not require an account or code. Saving studies is a separate account feature. See current plans
How much history does a test use?
Up to five years of daily bars on the free tool. Pro defaults to five years and goes up to 20 with the History option. Some symbols have a shorter history.
Which trading costs are included?
Each trade of the rule includes modeled commission and slippage on both sides, with a lower estimate for the most liquid symbols (major index ETFs, the largest stocks and leveraged ETFs) and a higher one for everything else. The buy and hold comparison has no trading costs.
Are dividends included?
Both sides include dividends when they are available; otherwise both use price returns. Each result says which one it used.
Does beating buy and hold prove that a rule works?
No. One historical comparison can reflect chance, selection bias or settings chosen after seeing the result. Review the number of trials, test another period and keep an untouched sample before drawing conclusions.
Can a backtest tell me how many shares to buy?
The backtest studies a rule under its own account assumptions, and a planned stop can fill at a worse price than planned. For a separate account-risk scenario, use the position size calculator. Open the position size calculator