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
- +3,392.10
- $10,000 per signal
- Gain / max cost
- 8.79%
- Trades
- 78
- 35 won · 43 lost
- Win rate
- 45%
- of closed trades
- Signals in range
- 105
- 501 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 | 78 | 0 | 78 |
| Wins | 35 | 0 | 35 |
| Losses | 43 | 0 | 43 |
| P&L | +3,392.10 | 0.00 | +3,392.10 |
| P&L average | +43.49 | 0.00 | +43.49 |
| Total wins | 10,715.67 | 0.00 | 10,715.67 |
| Total losses | 7,323.57 | 0.00 | 7,323.57 |
| Average win | 137.38 | 0.00 | 137.38 |
| Average loss | 93.89 | 0.00 | 93.89 |
| Max wins | 10,715.67 | 0.00 | 10,715.67 |
| Max losses | 7,323.57 | 0.00 | 7,323.57 |
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
- 0.00
- Account value
- 3,392.10
- Cash
- 3,392.10
- Cost basis
- 0.00
- Unrealized gain
- 0.00
- Realized gain
- +3,392.10
Allocation
Largest Cash 3,392.10 100.00% · 1 holding
| Holding | Value | Allocation |
|---|---|---|
| Cash | 3,392.10 | 100.00% |
Transactions
78 trades, oldest first
| Date | Action | Signal | Shares | Price | Realized gain | Position after | Avg price |
|---|---|---|---|---|---|---|---|
| Nov 21, 2024 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 43.76 | 228.52 | — | 43.76 | 228.52 |
| Dec 19, 2024 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 43.76 | 249.79 | +930.77 | — | — |
| Dec 20, 2024 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 39.29 | 254.49 | — | 39.29 | 254.49 |
| Dec 31, 2024 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 39.29 | 250.42 | -159.93 | — | — |
| Jan 27, 2025 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 43.5 | 229.86 | — | 43.5 | 229.86 |
| Jan 29, 2025 | Buy | Cross Up MACD (26, 12) - Buy Signal | 41.78 | 239.36 | — | 85.28 | 234.51 |
| Feb 7, 2025 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 85.28 | 227.63 | -587.07 | — | — |
| Feb 11, 2025 | Buy | Cross Up MACD (26, 12) - Buy Signal | 42.99 | 232.62 | — | 42.99 | 232.62 |
| Feb 14, 2025 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 40.88 | 244.60 | — | 83.87 | 238.46 |
| Feb 28, 2025 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 83.87 | 241.84 | +283.52 | — | — |
| Mar 12, 2025 | Buy | Cross Down RSI (14) @ 30 - Oversold | 46.09 | 216.98 | — | 46.09 | 216.98 |
| Mar 24, 2025 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 45.3 | 220.73 | — | 91.39 | 218.84 |
| Mar 25, 2025 | Buy | Cross Up MACD (26, 12) - Buy Signal | 44.69 | 223.75 | — | 136.08 | 220.45 |
| Apr 3, 2025 | Sell | Cross Down MACD (26, 12) - Sell Signal | 136.08 | 203.19 | -2,349.06 | — | — |
| Apr 4, 2025 | Buy | Cross Down RSI (14) @ 30 - Oversold | 53.08 | 188.38 | — | 53.08 | 188.38 |
| Apr 14, 2025 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 49.38 | 202.52 | — | 102.46 | 195.19 |
| Apr 15, 2025 | Buy | Cross Up MACD (26, 12) - Buy Signal | 49.47 | 202.14 | — | 151.93 | 197.46 |
| May 8, 2025 | Sell | Cross Down MACD (26, 12) - Sell Signal | 151.93 | 197.49 | +5.19 | — | — |
| May 12, 2025 | Buy | Cross Up MACD (26, 12) - Buy Signal | 47.44 | 210.79 | — | 47.44 | 210.79 |
| May 22, 2025 | Sell | Cross Down MACD (26, 12) - Sell Signal | 47.44 | 201.36 | -447.36 | — | — |
| Jun 6, 2025 | Buy | Cross Up MACD (26, 12) - Buy Signal | 49.04 | 203.92 | — | 49.04 | 203.92 |
| Jun 11, 2025 | Sell | Cross Down MACD (26, 12) - Sell Signal | 49.04 | 198.78 | -252.06 | — | — |
| Jun 23, 2025 | Buy | Cross Up MACD (26, 12) - Buy Signal | 49.63 | 201.50 | — | 49.63 | 201.50 |
| Jun 24, 2025 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 49.93 | 200.30 | — | 99.55 | 200.90 |
| Jul 14, 2025 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 99.55 | 208.62 | +768.73 | — | — |
| Jul 21, 2025 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 47.06 | 212.48 | — | 47.06 | 212.48 |
| Jul 29, 2025 | Sell | Cross Down MACD (26, 12) - Sell Signal | 47.06 | 211.27 | -56.95 | — | — |
| Aug 6, 2025 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 46.89 | 213.25 | — | 46.89 | 213.25 |
| Aug 7, 2025 | Buy | Cross Up MACD (26, 12) - Buy Signal | 45.45 | 220.03 | — | 92.34 | 216.59 |
| Aug 8, 2025 | Sell | Cross Up RSI (14) @ 70 - Overbought | 92.34 | 229.35 | +1,178.56 | — | — |
| Sep 3, 2025 | Buy | Cross Up MACD (26, 12) - Buy Signal | 41.93 | 238.47 | — | 41.93 | 238.47 |
| Sep 4, 2025 | Sell | Cross Up RSI (14) @ 70 - Overbought | 41.93 | 239.78 | +54.93 | — | — |
| Sep 16, 2025 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 41.99 | 238.15 | — | 41.99 | 238.15 |
| Sep 19, 2025 | Buy | Cross Up MACD (26, 12) - Buy Signal | 40.73 | 245.50 | — | 82.72 | 241.77 |
| Sep 22, 2025 | Sell | Cross Up RSI (14) @ 70 - Overbought | 82.72 | 256.08 | +1,183.84 | — | — |
| Oct 20, 2025 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 38.13 | 262.24 | — | 38.13 | 262.24 |
| Oct 23, 2025 | Buy | Cross Up MACD (26, 12) - Buy Signal | 38.52 | 259.58 | — | 76.66 | 260.90 |
| Oct 30, 2025 | Sell | Cross Up RSI (14) @ 70 - Overbought | 76.66 | 271.40 | +804.65 | — | — |
| Nov 13, 2025 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 36.64 | 272.95 | — | 36.64 | 272.95 |
| Nov 17, 2025 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 36.64 | 267.46 | -201.14 | — | — |
| Nov 24, 2025 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 36.24 | 275.92 | — | 36.24 | 275.92 |
| Nov 28, 2025 | Buy | Cross Up MACD (26, 12) - Buy Signal | 35.86 | 278.85 | — | 72.1 | 277.38 |
| Dec 1, 2025 | Sell | Cross Up RSI (14) @ 70 - Overbought | 72.1 | 283.10 | +412.63 | — | — |
| Jan 2, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 36.9 | 271.01 | — | 36.9 | 271.01 |
| Jan 5, 2026 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 36.9 | 267.26 | -138.37 | — | — |
| Jan 6, 2026 | Buy | Cross Down RSI (14) @ 30 - Oversold | 38.12 | 262.36 | — | 38.12 | 262.36 |
| Jan 15, 2026 | Buy | Cross Down RSI (14) @ 30 - Oversold | 38.73 | 258.21 | — | 76.84 | 260.27 |
| Jan 27, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 38.72 | 258.27 | — | 115.56 | 259.60 |
| Jan 28, 2026 | Buy | Cross Up MACD (26, 12) - Buy Signal | 39 | 256.44 | — | 154.56 | 258.80 |
| Feb 12, 2026 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 154.56 | 261.73 | +452.56 | — | — |
| Feb 24, 2026 | Buy | Cross Up MACD (26, 12) - Buy Signal | 36.75 | 272.14 | — | 36.75 | 272.14 |
| Feb 25, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 36.47 | 274.23 | — | 73.21 | 273.18 |
| Mar 2, 2026 | Sell | Cross Down MACD (26, 12) - Sell Signal | 73.21 | 264.72 | -619.44 | — | — |
| Mar 26, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 39.54 | 252.89 | — | 39.54 | 252.89 |
| Mar 30, 2026 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 39.54 | 246.63 | -247.54 | — | — |
| Mar 31, 2026 | Buy | Cross Up MACD (26, 12) - Buy Signal | 39.4 | 253.79 | — | 39.4 | 253.79 |
| Apr 6, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 38.63 | 258.86 | — | 78.03 | 256.30 |
| Apr 7, 2026 | Sell | Cross Down PSAR (0.02, 0.2) - Sell Signal | 78.03 | 253.50 | -218.49 | — | — |
| Apr 10, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 38.39 | 260.48 | — | 38.39 | 260.48 |
| May 8, 2026 | Sell | Cross Up RSI (14) @ 70 - Overbought | 38.39 | 293.32 | +1,260.75 | — | — |
| Jun 2, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 31.73 | 315.20 | — | 31.73 | 315.20 |
| Jun 3, 2026 | Sell | Cross Down MACD (26, 12) - Sell Signal | 31.73 | 310.26 | -156.73 | — | — |
| Jul 1, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 33.97 | 294.38 | — | 33.97 | 294.38 |
| Jul 2, 2026 | Buy | Cross Up MACD (26, 12) - Buy Signal | 32.4 | 308.63 | — | 66.37 | 301.34 |
| Jul 16, 2026 | Sell | Cross Up RSI (14) @ 70 - Overbought | 66.37 | 333.26 | +2,118.78 | — | — |
| Jul 27, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 29.68 | 336.91 | — | 29.68 | 336.91 |
| Jul 31, 2026 | Sell | Cross Down MACD (26, 12) - Sell Signal | 29.68 | 308.91 | -831.08 | — | — |
| Aug 26, 2026 | Buy | Cross Up MACD (26, 12) - Buy Signal | 31.9 | 313.45 | — | 31.9 | 313.45 |
| Sep 2, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 30.77 | 324.96 | — | 62.68 | 319.10 |
| Sep 29, 2026 | Sell | Cross Down MACD (26, 12) - Sell Signal | 62.68 | 329.40 | +645.49 | — | — |
| Oct 8, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 29.38 | 340.42 | — | 29.38 | 340.42 |
| Oct 14, 2026 | Buy | Cross Up MACD (26, 12) - Buy Signal | 29.16 | 342.96 | — | 58.53 | 341.69 |
| Oct 20, 2026 | Sell | Cross Down MACD (26, 12) - Sell Signal | 58.53 | 339.50 | -127.91 | — | — |
| Oct 22, 2026 | Buy | Cross Up MACD (26, 12) - Buy Signal | 28.72 | 348.22 | — | 28.72 | 348.22 |
| Oct 28, 2026 | Sell | Cross Down MACD (26, 12) - Sell Signal | 28.72 | 343.83 | -126.07 | — | — |
| Nov 4, 2026 | Buy | Cross Up PSAR (0.02, 0.2) - Buy Signal | 28.61 | 349.51 | — | 28.61 | 349.51 |
| Nov 11, 2026 | Buy | Cross Up MACD (26, 12) - Buy Signal | 28.12 | 355.63 | — | 56.73 | 352.54 |
| Nov 19, 2026 | Sell | Cross Down MACD (26, 12) - Sell Signal | 56.73 | 349.21 | -189.11 | — | — |
The three sample backtests every account starts with
Sample Backtesting
Sample BacktestingCandlestick Patterns
Candlestick PatternsDoji Star Pattern
Doji Star Pattern
