Backtest a strategy on real prices
Pick indicators, overlays or candlestick patterns; every signal buys or shorts $10,000 of the stock, and you get the trades, wins and losses and the account value over the range. Your backtests are the ones you keep in the Stock Master app.
Sample: Sample Backtesting on AAPL
MACD, RSI and Parabolic SAR signals, long only, over the last year. Change the range or action to re-run it here.
- Gain
- +13,164.30
- $10,000 per signal
- Gain / max cost
- 59.82%
- Trades
- 34
- 18 won · 16 lost
- Win rate
- 53%
- of closed trades
- Signals in range
- 43
- 263 bars
Transactions chart
Buy and cover markers below the bar, sell and short markers above
Results
Trades, wins and losses for the long side, the short side and both together
| Statistic | Long | Short | Total |
|---|---|---|---|
| Trades | 34 | 0 | 34 |
| Wins | 18 | 0 | 18 |
| Losses | 16 | 0 | 16 |
| P&L | +13,164.30 | 0.00 | +13,164.30 |
| P&L average | +387.19 | 0.00 | +387.19 |
| Total wins | 16,844.00 | 0.00 | 16,844.00 |
| Total losses | 3,679.70 | 0.00 | 3,679.70 |
| Average win | 495.41 | 0.00 | 495.41 |
| Average loss | 108.23 | 0.00 | 108.23 |
| Max wins | 16,844.00 | 0.00 | 16,844.00 |
| Max losses | 3,679.70 | 0.00 | 3,679.70 |
Market Value / Cost
The account over the range: what the open positions were worth against what they cost.
History & allocation
Latest quote values
- Market value
- -1.39
- Account value
- 13,161.52
- Cash
- 13,162.91
- Cost basis
- 1.39
- Unrealized gain
- 0.00
- Realized gain
- +13,164.30
Allocation
Largest Cash 13,162.91 100.01% · 1 holding
| Holding | Value | Allocation |
|---|---|---|
| Cash | 13,162.91 | 100.01% |
Transactions
34 trades, oldest first
| Date | Action | Signal | Shares | Price | Realized gain | Position after | Avg price |
|---|---|---|---|---|---|---|---|
| Nov 29, 2021 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 61.79 | 161.84 | — | 61.79 | 161.84 |
| Jan 17, 2022 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 61.79 | 162.41 | +35.22 | — | — |
| Mar 21, 2022 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 57.23 | 174.72 | — | 57.23 | 174.72 |
| May 2, 2022 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 57.23 | 157.28 | -998.17 | — | — |
| Jul 18, 2022 | Buy | Cross Up MACD (26, 12) - Buy Signal | 64.9 | 154.09 | — | 64.9 | 154.09 |
| Jul 18, 2022 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 64.9 | 154.09 | — | 129.79 | 154.09 |
| Sep 12, 2022 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 129.79 | 150.70 | -440.00 | — | — |
| Nov 14, 2022 | Buy | Cross Up MACD (26, 12) - Buy Signal | 66.1 | 151.29 | — | 66.1 | 151.29 |
| Dec 5, 2022 | Sell | Cross Down MACD (26, 12) - Sell Signal | 66.1 | 142.16 | -603.48 | — | — |
| Jan 23, 2023 | Buy | Cross Up MACD (26, 12) - Buy Signal | 68.53 | 145.93 | — | 68.53 | 145.93 |
| Jan 23, 2023 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 68.53 | 145.93 | — | 137.05 | 145.93 |
| May 29, 2023 | Sell | Cross Up RSI (14) @ 70 - Overbought | 137.05 | 180.95 | +4,799.56 | — | — |
| Nov 6, 2023 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 53.65 | 186.40 | — | 53.65 | 186.40 |
| Nov 20, 2023 | Buy | Cross Up MACD (26, 12) - Buy Signal | 52.64 | 189.97 | — | 106.29 | 188.17 |
| Jan 8, 2024 | Sell | Cross Down MACD (26, 12) - Sell Signal | 106.29 | 185.92 | -238.94 | — | — |
| Apr 29, 2024 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 54.53 | 183.38 | — | 54.53 | 183.38 |
| May 6, 2024 | Buy | Cross Up MACD (26, 12) - Buy Signal | 54.63 | 183.05 | — | 109.16 | 183.21 |
| Jun 10, 2024 | Sell | Cross Up RSI (14) @ 70 - Overbought | 109.16 | 212.49 | +3,195.72 | — | — |
| Sep 16, 2024 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 43.82 | 228.20 | — | 43.82 | 228.20 |
| Sep 23, 2024 | Sell | Cross Down MACD (26, 12) - Sell Signal | 43.82 | 227.79 | -17.97 | — | — |
| Dec 9, 2024 | Buy | Cross Up MACD (26, 12) - Buy Signal | 40.3 | 248.13 | — | 40.3 | 248.13 |
| Dec 16, 2024 | Sell | Cross Up RSI (14) @ 70 - Overbought | 40.3 | 254.49 | +256.32 | — | — |
| Jun 30, 2025 | Buy | Cross Up MACD (26, 12) - Buy Signal | 46.83 | 213.55 | — | 46.83 | 213.55 |
| Jun 30, 2025 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 46.83 | 213.55 | — | 93.65 | 213.55 |
| Dec 15, 2025 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 93.65 | 273.67 | +5,630.53 | — | — |
| Feb 2, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 35.96 | 278.12 | — | 35.96 | 278.12 |
| Mar 16, 2026 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 35.96 | 247.99 | -1,083.35 | — | — |
| Apr 20, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 36.89 | 271.06 | — | 36.89 | 271.06 |
| Apr 27, 2026 | Buy | Cross Up MACD (26, 12) - Buy Signal | 35.7 | 280.14 | — | 72.59 | 275.53 |
| May 18, 2026 | Sell | Cross Up RSI (14) @ 70 - Overbought | 72.59 | 308.82 | +2,416.82 | — | — |
| Jul 6, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 31.71 | 315.32 | — | 31.71 | 315.32 |
| Aug 10, 2026 | Sell | Cross Down MACD (26, 12) - Sell Signal | 31.71 | 305.93 | -297.79 | — | — |
| Sep 7, 2026 | Buy | Cross Up MACD (26, 12) - Buy Signal | 30.1 | 332.27 | — | 30.1 | 332.27 |
| Nov 15, 2026 | Sell | Close position | 30.1 | 349.21 | +511.22 | — | — |
The three sample backtests every account starts with
Sample Backtesting
Sample BacktestingCandlestick Patterns
Candlestick PatternsDoji Star Pattern
Doji Star Pattern
