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,333.37
$10,000 per signal
Gain / max cost
6.62%
Trades
18
6 won · 12 lost
Win rate
33%
of closed trades
Signals in range
25
128 bars

Transactions chart

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

300.0325.0350.02.0k0Account valueMay 26Jun 26Aug 26Sep 26Oct 26Nov 26

Results

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

Backtest results by side
StatisticLongShortTotal
Trades18018
Wins606
Losses12012
P&L+1,333.370.00+1,333.37
P&L average+74.080.00+74.08
Total wins2,764.270.002,764.27
Total losses1,430.900.001,430.90
Average win153.570.00153.57
Average loss79.490.0079.49
Max wins2,764.270.002,764.27
Max losses1,430.900.001,430.90

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,333.37
Cash
1,333.37
Cost basis
0.00
Unrealized gain
0.00
Realized gain
+1,333.37
0.0010,000.0020,000.00Jun 2, 2026Jun 30, 2026Jul 29, 2026Aug 26, 2026Sep 23, 2026Oct 22, 2026Nov 19, 2026

Allocation

Largest Cash 1,333.37 100.00% · 1 holding

HoldingValueAllocation
Cash1,333.37100.00%

Transactions

18 trades, oldest first

Backtest transactions
DateActionSignalSharesPriceRealized gainPosition afterAvg price
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