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
+1,822.84
$10,000 per signal
Gain / max cost
4.54%
Trades
35
12 won · 23 lost
Win rate
34%
of closed trades
Signals in range
44
223 bars

Transactions chart

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

250.0300.0350.02.0k0Account valueJan 26Mar 26May 26Jul 26Sep 26Nov 26

Results

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

Backtest results by side
StatisticLongShortTotal
Trades35035
Wins12012
Losses23023
P&L+1,822.840.00+1,822.84
P&L average+52.080.00+52.08
Total wins4,501.600.004,501.60
Total losses2,678.750.002,678.75
Average win128.620.00128.62
Average loss76.540.0076.54
Max wins4,501.600.004,501.60
Max losses2,678.750.002,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
1,822.84
Cash
1,822.84
Cost basis
0.00
Unrealized gain
0.00
Realized gain
+1,822.84
0.0020,000.0040,000.00Jan 2, 2026Feb 25, 2026Apr 19, 2026Jun 12, 2026Aug 4, 2026Sep 27, 2026Nov 19, 2026

Allocation

Largest Cash 1,822.84 100.00% · 1 holding

HoldingValueAllocation
Cash1,822.84100.00%

Transactions

35 trades, oldest first

Backtest transactions
DateActionSignalSharesPriceRealized gainPosition afterAvg price
Jan 2, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal36.9271.01—36.9271.01
Jan 5, 2026SellCross Down PSAR (0.02, 0.2) - Sell Signal36.9267.26-138.37——
Jan 6, 2026BuyCross Down RSI (14) @ 30 - Oversold38.12262.36—38.12262.36
Jan 15, 2026BuyCross Down RSI (14) @ 30 - Oversold38.73258.21—76.84260.27
Jan 27, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal38.72258.27—115.56259.60
Jan 28, 2026BuyCross Up MACD (26, 12) - Buy Signal39256.44—154.56258.80
Feb 12, 2026SellCross Down PSAR (0.02, 0.2) - Sell Signal154.56261.73+452.56——
Feb 24, 2026BuyCross Up MACD (26, 12) - Buy Signal36.75272.14—36.75272.14
Feb 25, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal36.47274.23—73.21273.18
Mar 2, 2026SellCross Down MACD (26, 12) - Sell Signal73.21264.72-619.44——
Mar 26, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal39.54252.89—39.54252.89
Mar 30, 2026SellCross Down PSAR (0.02, 0.2) - Sell Signal39.54246.63-247.54——
Mar 31, 2026BuyCross Up MACD (26, 12) - Buy Signal39.4253.79—39.4253.79
Apr 6, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal38.63258.86—78.03256.30
Apr 7, 2026SellCross Down PSAR (0.02, 0.2) - Sell Signal78.03253.50-218.49——
Apr 10, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal38.39260.48—38.39260.48
May 8, 2026SellCross Up RSI (14) @ 70 - Overbought38.39293.32+1,260.75——
Jun 2, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal31.73315.20—31.73315.20
Jun 3, 2026SellCross Down MACD (26, 12) - Sell Signal31.73310.26-156.73——
Jul 1, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal33.97294.38—33.97294.38
Jul 2, 2026BuyCross Up MACD (26, 12) - Buy Signal32.4308.63—66.37301.34
Jul 16, 2026SellCross Up RSI (14) @ 70 - Overbought66.37333.26+2,118.78——
Jul 27, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal29.68336.91—29.68336.91
Jul 31, 2026SellCross Down MACD (26, 12) - Sell Signal29.68308.91-831.08——
Aug 26, 2026BuyCross Up MACD (26, 12) - Buy Signal31.9313.45—31.9313.45
Sep 2, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal30.77324.96—62.68319.10
Sep 29, 2026SellCross Down MACD (26, 12) - Sell Signal62.68329.40+645.49——
Oct 8, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal29.38340.42—29.38340.42
Oct 14, 2026BuyCross Up MACD (26, 12) - Buy Signal29.16342.96—58.53341.69
Oct 20, 2026SellCross Down MACD (26, 12) - Sell Signal58.53339.50-127.91——
Oct 22, 2026BuyCross Up MACD (26, 12) - Buy Signal28.72348.22—28.72348.22
Oct 28, 2026SellCross Down MACD (26, 12) - Sell Signal28.72343.83-126.07——
Nov 4, 2026BuyCross Up PSAR (0.02, 0.2) - Buy Signal28.61349.51—28.61349.51
Nov 11, 2026BuyCross Up MACD (26, 12) - Buy Signal28.12355.63—56.73352.54
Nov 19, 2026SellCross Down MACD (26, 12) - Sell Signal56.73349.21-189.11——

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