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
+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

200.0300.010.0k0Account valueNov 21Nov 22Nov 23Nov 24Nov 25Nov 26

Results

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

Backtest results by side
StatisticLongShortTotal
Trades34034
Wins18018
Losses16016
P&L+13,164.300.00+13,164.30
P&L average+387.190.00+387.19
Total wins16,844.000.0016,844.00
Total losses3,679.700.003,679.70
Average win495.410.00495.41
Average loss108.230.00108.23
Max wins16,844.000.0016,844.00
Max losses3,679.700.003,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
0.0010,000.0020,000.00Nov 29, 2021Sep 28, 2022Jul 27, 2023May 25, 2024Mar 24, 2025Jan 20, 2026Nov 19, 2026

Allocation

Largest Cash 13,162.91 100.01% · 1 holding

HoldingValueAllocation
Cash13,162.91100.01%

Transactions

34 trades, oldest first

Backtest transactions
DateActionSignalSharesPriceRealized gainPosition afterAvg price
Nov 29, 2021BuyCross Up PSAR (0.02, 0.2) - Buy Signal61.79161.84—61.79161.84
Jan 17, 2022SellCross Down PSAR (0.02, 0.2) - Sell Signal61.79162.41+35.22——
Mar 21, 2022BuyCross Up PSAR (0.02, 0.2) - Buy Signal57.23174.72—57.23174.72
May 2, 2022SellCross Down PSAR (0.02, 0.2) - Sell Signal57.23157.28-998.17——
Jul 18, 2022BuyCross Up MACD (26, 12) - Buy Signal64.9154.09—64.9154.09
Jul 18, 2022BuyCross Up PSAR (0.02, 0.2) - Buy Signal64.9154.09—129.79154.09
Sep 12, 2022SellCross Down PSAR (0.02, 0.2) - Sell Signal129.79150.70-440.00——
Nov 14, 2022BuyCross Up MACD (26, 12) - Buy Signal66.1151.29—66.1151.29
Dec 5, 2022SellCross Down MACD (26, 12) - Sell Signal66.1142.16-603.48——
Jan 23, 2023BuyCross Up MACD (26, 12) - Buy Signal68.53145.93—68.53145.93
Jan 23, 2023BuyCross Up PSAR (0.02, 0.2) - Buy Signal68.53145.93—137.05145.93
May 29, 2023SellCross Up RSI (14) @ 70 - Overbought137.05180.95+4,799.56——
Nov 6, 2023BuyCross Up PSAR (0.02, 0.2) - Buy Signal53.65186.40—53.65186.40
Nov 20, 2023BuyCross Up MACD (26, 12) - Buy Signal52.64189.97—106.29188.17
Jan 8, 2024SellCross Down MACD (26, 12) - Sell Signal106.29185.92-238.94——
Apr 29, 2024BuyCross Up PSAR (0.02, 0.2) - Buy Signal54.53183.38—54.53183.38
May 6, 2024BuyCross Up MACD (26, 12) - Buy Signal54.63183.05—109.16183.21
Jun 10, 2024SellCross Up RSI (14) @ 70 - Overbought109.16212.49+3,195.72——
Sep 16, 2024BuyCross Up PSAR (0.02, 0.2) - Buy Signal43.82228.20—43.82228.20
Sep 23, 2024SellCross Down MACD (26, 12) - Sell Signal43.82227.79-17.97——
Dec 9, 2024BuyCross Up MACD (26, 12) - Buy Signal40.3248.13—40.3248.13
Dec 16, 2024SellCross Up RSI (14) @ 70 - Overbought40.3254.49+256.32——
Jun 30, 2025BuyCross Up MACD (26, 12) - Buy Signal46.83213.55—46.83213.55
Jun 30, 2025BuyCross Up PSAR (0.02, 0.2) - Buy Signal46.83213.55—93.65213.55
Dec 15, 2025SellCross Down PSAR (0.02, 0.2) - Sell Signal93.65273.67+5,630.53——
Feb 2, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal35.96278.12—35.96278.12
Mar 16, 2026SellCross Down PSAR (0.02, 0.2) - Sell Signal35.96247.99-1,083.35——
Apr 20, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal36.89271.06—36.89271.06
Apr 27, 2026BuyCross Up MACD (26, 12) - Buy Signal35.7280.14—72.59275.53
May 18, 2026SellCross Up RSI (14) @ 70 - Overbought72.59308.82+2,416.82——
Jul 6, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal31.71315.32—31.71315.32
Aug 10, 2026SellCross Down MACD (26, 12) - Sell Signal31.71305.93-297.79——
Sep 7, 2026BuyCross Up MACD (26, 12) - Buy Signal30.1332.27—30.1332.27
Nov 15, 2026SellClose position30.1349.21+511.22——

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