Skip to content
Menu

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.

  • Indicators, overlays and candlestick patterns
  • Every trade, win and loss
  • Account value over the range

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
+128,621.22
$10,000 per signal
Gain / max cost
815.23%
Trades
22
18 won · 4 lost
Win rate
82%
of closed trades
Signals in range
32
169 bars

Transactions chart

Buy and cover markers below the bar, sell and short markers above

200.0100.0k0Account valueDec 84Jun 93Sep 01Mar 10Jun 18Nov 26

Results

Trades, wins and losses for the long side, the short side and both together

Backtest results by side
StatisticLongShortTotal
Trades22022
Wins18018
Losses404
P&L+128,621.220.00+128,621.22
P&L average+5,846.420.00+5,846.42
Total wins134,250.400.00134,250.40
Total losses5,629.190.005,629.19
Average win6,102.290.006,102.29
Average loss255.870.00255.87
Max wins134,250.400.00134,250.40
Max losses5,629.190.005,629.19

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
128,621.22
Cash
128,621.22
Cost basis
0.00
Unrealized gain
0.00
Realized gain
+128,621.22
0.0020,000.0040,000.00Mar 1, 1986Dec 13, 1992Sep 27, 1999Jul 11, 2006Apr 23, 2013Feb 5, 2020Nov 19, 2026

Allocation

Largest Cash 128,621.22 100.00% · 1 holding

HoldingValueAllocation
Cash128,621.22100.00%

Transactions

22 trades, oldest first

Backtest transactions
DateActionSignalSharesPriceRealized gainPosition afterAvg price
Mar 1, 1986BuyCross Up PSAR (0.02, 0.2) - Buy Signal60,532.690.1652—60,532.690.1652
Dec 1, 1988SellCross Down PSAR (0.02, 0.2) - Sell Signal60,532.690.3237+9,594.43——
Dec 1, 1990BuyCross Up PSAR (0.02, 0.2) - Buy Signal19,561.820.5112—19,561.820.5112
Jun 1, 1993SellCross Down PSAR (0.02, 0.2) - Sell Signal19,561.820.2366-5,371.67——
Jun 1, 1998BuyCross Up PSAR (0.02, 0.2) - Buy Signal35,906.640.2785—35,906.640.2785
Sep 1, 1998BuyCross Up MACD (26, 12) - Buy Signal35,063.110.2852—70,969.760.28181
Sep 1, 1999SellCross Up RSI (14) @ 70 - Overbought70,969.760.8739+42,020.47——
Mar 1, 2004BuyCross Up MACD (26, 12) - Buy Signal19,956.10.5011—19,956.10.5011
Sep 1, 2004SellCross Up RSI (14) @ 70 - Overbought19,956.11.20+13,947.32——
Sep 1, 2004BuyCross Up PSAR (0.02, 0.2) - Buy Signal8,333.331.20—8,333.331.20
Mar 1, 2008SellCross Up RSI (14) @ 70 - Overbought8,333.336.74+46,166.67——
Jun 1, 2009BuyCross Up MACD (26, 12) - Buy Signal1,663.896.01—1,663.896.01
Sep 1, 2009BuyCross Up PSAR (0.02, 0.2) - Buy Signal1,400.567.14—3,064.456.53
Mar 1, 2010SellCross Up RSI (14) @ 70 - Overbought3,064.459.17+8,101.04——
Jun 1, 2014BuyCross Up PSAR (0.02, 0.2) - Buy Signal390.1725.63—390.1725.63
Mar 1, 2016SellCross Down MACD (26, 12) - Sell Signal390.1724.97-257.51——
Mar 1, 2017BuyCross Up MACD (26, 12) - Buy Signal261.8538.19—261.8538.19
Mar 1, 2017SellCross Up RSI (14) @ 70 - Overbought261.8538.190.00——
Sep 1, 2019BuyCross Up PSAR (0.02, 0.2) - Buy Signal149.6866.81—149.6866.81
Dec 1, 2022SellCross Down PSAR (0.02, 0.2) - Sell Signal149.68147.41+12,064.06——
Jun 1, 2023BuyCross Up PSAR (0.02, 0.2) - Buy Signal53.23187.87—53.23187.87
Jun 1, 2025SellCross Up RSI (14) @ 70 - Overbought53.23232.14+2,356.42——

The three sample backtests every account starts with

  • Sample Backtesting

    AAPL
    Sample Backtesting
  • Candlestick Patterns

    AAPL
    Candlestick Patterns
  • Doji Star Pattern

    AAPL
    Doji Star Pattern