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
- +2,235.48
- $10,000 per signal
- Gain / max cost
- 5.63%
- Trades
- 38
- 15 won · 23 lost
- Win rate
- 39%
- of closed trades
- Signals in range
- 49
- 251 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 | 38 | 0 | 38 |
| Wins | 15 | 0 | 15 |
| Losses | 23 | 0 | 23 |
| P&L | +2,235.48 | 0.00 | +2,235.48 |
| P&L average | +58.83 | 0.00 | +58.83 |
| Total wins | 4,914.23 | 0.00 | 4,914.23 |
| Total losses | 2,678.75 | 0.00 | 2,678.75 |
| Average win | 129.32 | 0.00 | 129.32 |
| Average loss | 70.49 | 0.00 | 70.49 |
| Max wins | 4,914.23 | 0.00 | 4,914.23 |
| Max losses | 2,678.75 | 0.00 | 2,678.75 |
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
- 2,235.48
- Cash
- 2,235.48
- Cost basis
- 0.00
- Unrealized gain
- 0.00
- Realized gain
- +2,235.48
Allocation
Largest Cash 2,235.48 100.00% · 1 holding
| Holding | Value | Allocation |
|---|---|---|
| Cash | 2,235.48 | 100.00% |
Transactions
38 trades, oldest first
| Date | Action | Signal | Shares | Price | Realized gain | Position after | Avg price |
|---|---|---|---|---|---|---|---|
| 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
