Turn an investing idea into a set of rules and see how it would have performed. The strategy builder lets you combine screener filters, such as P/E, dividend yield, revenue growth or momentum, choose how to rank the stocks that pass, and decide how many to hold and how often to rebalance. We then backtest it on the S&P 500 and compare the result with the index, showing total return, CAGR, maximum drawdown and the Sharpe ratio. You don't need to write any code. Backtests are hypothetical, and past performance is not a reliable indicator of future results.
Backtesting replays a fixed set of rules over historical data to see which stocks they would have picked and how that portfolio would have moved. It's a way to check whether an idea held up across different markets before you put time or money into it. A good backtest won't tell you what happens next, but a bad one can quickly rule an idea out.
Start from a template or a blank strategy. The templates cover quality, value, momentum, dividends, growth and low volatility. Add filters from valuation, profitability, growth, dividend and balance-sheet metrics, including price to book, return on equity, debt to equity, payout ratio and the Piotroski F-score, and narrow by sector or market cap if you like. Then choose a ranking metric, set the number of holdings (each held at equal weight) and pick a monthly, quarterly or annual rebalance. Run the test, then save your strategy to come back to it. A free account includes one backtest a day.
Results are shown side by side with the S&P 500. CAGR is the average yearly growth rate and total return is the overall gain. Maximum drawdown is the largest fall from a peak to a low, and the Sharpe ratio is return relative to volatility. Look at drawdown alongside return: a strategy that beats the index but falls 50% along the way may be hard to stick with in practice.
Many backtests quietly use only today's index members, which flatters results because the companies that failed or were removed are missing. That's survivorship bias. Our builder uses point-in-time S&P 500 membership, so a stock can only be picked while it was in the index, including names that later left. Some limits remain. Trades are assumed at the adjusted close with no commission or slippage, and it's easy to over-tune rules to one period. Test small variations and different time spans before trusting a result.
If you'd rather not start from scratch, open one of our published backtests, such as Graham Value, Magic Formula, Piotroski F-score or Momentum, to see the rules and results. Want to try an idea by hand first? Use the paper trading simulator. The Learn section explains metrics like P/E and the PEG ratio.
Backtesting tests a set of investing rules on historical prices and fundamentals to estimate how they would have performed. The results are hypothetical and don't predict future returns.
No. You build the strategy with point-and-click filters, a ranking metric, a holding count and a rebalance schedule.
The S&P 500. Each rebalance uses the index membership on that date, including companies that later left the index, which reduces survivorship bias.
They're a useful research tool but not a forecast. Results can be overfitted to the past, trades are assumed at the adjusted close with no costs, and past performance is not a reliable indicator of future results.
Yes. Running and saving a backtest needs a free Stocklytics account, which includes one backtest a day.
Capital is at risk. Stocklytics is operated by Stocklytics Inc., a Marshall Islands company. It is not regulated by the FCA and does not give investment advice.