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
- -315.18
- $10,000 per signal
- Gain / max cost
- -1.57%
- Trades
- 5
- 0 won · 5 lost
- Win rate
- 0%
- of closed trades
- Signals in range
- 7
- 23 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 | 5 | 0 | 5 |
| Wins | 0 | 0 | 0 |
| Losses | 5 | 0 | 5 |
| P&L | -315.18 | 0.00 | -315.18 |
| P&L average | -63.04 | 0.00 | -63.04 |
| Total wins | 0.00 | 0.00 | 0.00 |
| Total losses | 315.18 | 0.00 | 315.18 |
| Average win | 0.00 | 0.00 | 0.00 |
| Average loss | 63.04 | 0.00 | 63.04 |
| Max wins | 0.00 | 0.00 | 0.00 |
| Max losses | 315.18 | 0.00 | 315.18 |
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
- -315.18
- Cash
- -315.18
- Cost basis
- 0.00
- Unrealized gain
- 0.00
- Realized gain
- -315.18
Allocation
No allocation to display.
Transactions
5 trades, oldest first
| Date | Action | Signal | Shares | Price | Realized gain | Position after | Avg price |
|---|---|---|---|---|---|---|---|
| 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
