Test trading strategies on historical stock data. No coding, no real money. Pick a strategy, tune the settings, and see how it would have performed.
How it works
Step 01
Pick a stock
Choose from SPY, AAPL, TSLA, NVDA, QQQ, or MSFT. Each one has different volatility and behavior.
Step 02
Choose a strategy
Select one of 4 built-in trading rules. Each one has different logic for when to buy and sell.
Step 03
Tune the sliders
Adjust the parameters like how many days to look back to change how the strategy behaves.
Step 04
Run the backtest
Hit the button and watch it simulate every trade day by day across your chosen time period.
Step 05
Read the results
See charts, metrics, and a full trade log. Compare your strategy against just holding SPY the whole time.
The 4 strategies
MA Crossover
Buy when a short price average crosses above a longer one. Classic trend-following.
RSI
Buy when the stock is oversold and beaten down too far. Sell when it gets overbought.
Bollinger Bands
Buy when price dips below its normal range. Sell when it bounces back to the top.
Momentum
Buy when price is rising fast. Ride the wave until the trend reverses.
What the results mean
Total return
Did you make or lose money overall?
Sharpe ratio
Return vs risk. Above 1.0 is good.
Max drawdown
The worst drop from a peak. How painful was the ride?
Win rate
Percentage of individual trades that made money.
Pro tip. The real test is not just "did I make money." It is "did I beat the benchmark?" If SPY returned 60% over the same period and your strategy only returned 40%, you would have been better off doing nothing. Watch the blue benchmark line on the chart.
QuantLab
Strategy Sandbox
Asset
Ticker SPY
Period
Date range
Initial capital $10,000
Strategy
Buy when short MA crosses above long MA. Sell when it crosses back below. A classic trend-following approach.