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
+202.40
$10,000 per signal
Gain / max cost
1.01%
Trades
11
3 won · 8 lost
Win rate
27%
of closed trades
Signals in range
13
65 bars

Transactions chart

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

320.0340.01.0k0Account valueAug 26Sep 26Sep 26Oct 26Nov 26Nov 26

Results

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

Backtest results by side
StatisticLongShortTotal
Trades11011
Wins303
Losses808
P&L+202.400.00+202.40
P&L average+18.400.00+18.40
Total wins645.490.00645.49
Total losses443.090.00443.09
Average win58.680.0058.68
Average loss40.280.0040.28
Max wins645.490.00645.49
Max losses443.090.00443.09

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
202.40
Cash
202.40
Cost basis
0.00
Unrealized gain
0.00
Realized gain
+202.40
0.0010,000.0020,000.00Aug 26, 2026Sep 9, 2026Sep 23, 2026Oct 8, 2026Oct 22, 2026Nov 5, 2026Nov 19, 2026

Allocation

Largest Cash 202.40 100.00% · 1 holding

HoldingValueAllocation
Cash202.40100.00%

Transactions

11 trades, oldest first

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