FullStack Alpha
Trading Lessons

Manual Backtesting for Swing Trades With a Worksheet

FullStack Alpha Editorial Team

Reviewed by Jay Rocco, Chief Editor

15 min read
Manual Backtesting for Swing Trades With a Worksheet

Updated 2026

By the FullStack Alpha Editorial Team, reviewed by Jay Rocco, Chief Editor

Quick Answer

Manual backtesting means you test a swing trade idea by hand, one chart bar at a time, with the rules written down first. You hide the future, log every signal in a worksheet, and only then look at the results. Done this way, testing by hand beats picking old charts that already look perfect.

Here's the problem. Every example chart looks convincing once you know how it ended. The fix is a worksheet that makes you decide before you see.

Key Takeaways

  • Freeze before you replay. Write entry, stop and exit rules before the first bar moves. TradingView's Bar Replay lets you advance one bar at a time.
  • Log all signals. A 30-signal sample with 9 skipped signals and 11 losers tells the truth. A sample with only winners tells a story.
  • Costs count. CFA Institute material lists commissions, bid-ask spreads and market impact as real costs, so the worksheet needs a fill column.
  • Keep a holdout. CME Group's November 2026 article recommends out-of-sample testing, so reserve a date range you do not touch until the rules are locked.
  • Count your tries. CME material cites evidence that about 7 trials can produce a strong-looking result by luck, so log how many variants you tested.

Manual backtesting infographic: the steps to test a swing setup by hand on past charts with a worksheet

Manual backtesting, step by step with a worksheet.

How do you freeze the rules before manual backtesting?

Freezing means writing every rule down and not changing it during the test. Do it on paper or in a Google Sheet before you open a single replay bar.

Think of a kitchen scale. If you change the weight of the flour after you see the cake, you didn't measure anything. Rules work the same way.

Your frozen rule card needs these items:

  • The setup: what must be true on the chart. Example: price pulls back to the 20-day moving average (the average of the last 20 closing prices) in an uptrend.
  • The entry: the exact trigger, such as "buy above the prior day's high."
  • The stop loss: the price where you exit if wrong, such as "below the pullback low."
  • The exit: a target or rule, such as "sell at 2 times the risk or after 10 trading days."
  • The market filter: a broad-market check, like "skip if the S&P 500 sits below its 50-day average."
  • Position size: the dollars risked per trade, such as 1% of a $10,000 account, or $100.

Decision rule: if a rule needs a word like "looks strong," rewrite it. A rule must be something a stranger could apply and get the same answer.

Lock the version, too. Name it "Pullback v1" and date it. If you change a rule later, that's v2, and it gets its own sheet. The old pullback lesson, S09 idea works best when written this way, and your trading plan from S17 holds the same fields.

How do you freeze the rules before manual backtesting?

How do you record all signals, misses and losses in manual backtesting?

Record every time the rules fire, not only the ones you liked. Each signal gets one row, even if you skipped it, missed it or lost money.

How do you record all signals, misses and losses in manual backtesting?

This is where most people cheat without noticing. They scroll back, find five pretty winners and call it a test. That's a highlight reel, not a record.

Use these columns in your Google Sheet:

Column What goes in it Why it matters
Test ID "PB-v1" Shows which rule version
Variants tried A count, like 1 Tracks how much you tuned
Date and ticker 2025-03-12, ABCD Lets you recheck later
Signal Yes or no Proves you logged blanks
Taken Yes, no, why Records misses
Signal price Price at trigger Baseline
Fill price Price you could really get Shows friction
Costs Commission plus slippage Net, not gross
Result in R Gain divided by risk Compares trades fairly
Session note Regular or overnight Separates gaps

R is your risk unit. If you risked $100 and made $200, that's +2R. If the stop hit, that's -1R.

Hunting for a lower price? Check our AI stock tool deals page.

Include blanks: weeks where nothing fired. A system that signals twice in 6 months is a different tool than one that fires daily. Include losers, too. Cut losers fast in real life, and log them honestly in the sheet.

If you build scanner-based watchlists, write down the scan filters in the rule card as well.

Where can hindsight and unrealistic fills enter manual backtesting?

Hindsight enters whenever a rule uses information you could only know later. Fills go wrong when you assume you got the exact price on the chart.

Hindsight traps:

  • Using the day's closing high when your entry was supposed to happen at 10:30 a.m.
  • Picking the stock list today from "names that went up."
  • Skipping a signal because you already know it failed.
  • Ignoring the broad market because the chart "looked fine."

Fill traps:

  • Assuming you bought at the exact trigger when the stock gapped past it. A gap is when a stock opens far from the prior close.
  • Ignoring the spread, the small gap between the buy price and the sell price.
  • Forgetting slippage, the difference between the price you wanted and the price you got.
  • Leaving out commissions, even if your broker charges none, since spread still costs you.

CFA Institute model-validation material names look-ahead bias and overfitting as major risks and treats transaction costs as direct and indirect. Your sheet should hold a "signal price" and a "fill price" for that reason.

Also watch the clock. U.S. equity markets are scheduled to move to a 23-hour, 5-day schedule on December 6, 2026, while regular hours stay 9:30 a.m. to 4:00 p.m. ET. Your data source may call an overnight move part of the "daily candle" or not. Add a note column that says "regular session" or "overnight" so a gap is not counted twice or hidden.

Free tool. Trading the first hour from another time zone? See exactly when does the stock market open on your own clock, daylight saving changes handled.

A quick, honest rule: if the fill needs a perfect price, assume you got a worse one. Add a fixed cost per trade, say 0.1% each way, and keep it the same across all rows.

Where can hindsight and unrealistic fills enter manual backtesting?

How do you compare the holdout with the initial sample in manual backtesting?

Compare them by running the exact same frozen rules on both and checking whether the results stay in the same neighborhood. If the holdout falls apart, the rules were fit to the first sample.

A holdout is a block of dates you set aside and do not look at until the rules are final. Picture a teacher who keeps a few exam questions hidden. If you only study the practice test, you learn the test, not the subject.

CME Group's November 2026 article recommends out-of-sample testing and walk-forward testing. Walk-forward means you build on one window, test on the next unseen window, then roll forward. A simple version: build on January 2022 to December 2024, then test on January to June 2025.

Compare these numbers side by side:

  • Number of signals
  • Win rate (wins divided by trades)
  • Average win and average loss in R
  • Net result in R after costs
  • Worst losing streak

Decision rule: if the holdout's net R is far worse, or flips from positive to negative, do not tweak and retest on the same holdout. That burns it. Write down what happened and start a new version on fresh dates.

CME also warns that if small parameter changes wreck the results, the strategy is likely overfit. So don't test a 17-day average against an 18-day one and keep the winner. Pick a narrow range before you start, and report all of it.

How do you compare the holdout with the initial sample in manual backtesting?

What is manual backtesting? A plain-English glossary

Manual backtesting is testing a trading idea on past price charts by hand, without code, following written rules and logging each result. It is slower than software but teaches you what each trade felt like. For the broader method, see the general article on how to backtest a trading strategy without fooling yourself.

Term Plain meaning
Swing trade A stock trade held for days to weeks
Bar replay A chart mode that shows history one bar at a time
Look-ahead bias Using facts you could not have known yet
Slippage Getting a worse price than you planned
Holdout Dates you keep sealed until rules are final
R multiple Profit or loss divided by the amount risked
Overfitting Rules that fit past data but fail on new data
Expectancy Average result per trade after costs

Overfitting is like memorizing the answer key. It scores well and teaches nothing. Expectancy gets its own lesson, on trading expectancy, and the profit calculator helps you check net gain after fees.

How do you do manual backtesting step by step with a worksheet?

Follow these steps in order. Each one closes a door that hindsight likes to sneak through.

  1. Write the rule card. Entry, stop, exit, market filter, risk per trade. Why: you can't edit what is already written.
  2. Split your dates. Pick, for example, 2022 to 2024 as the sample and 2025 as the holdout. Seal the holdout. Why: it stays untouched.
  3. Open the chart and turn on replay. In TradingView, follow the Bar Replay help page. Pick a start date and move forward one bar at a time. Why: the future stays hidden.
  4. Decide before you advance. At each bar, check the rule card. If a signal fires, write the entry, stop and target in the sheet first. Why: the decision exists before the outcome.
  5. Advance one bar and log. Record the fill price, with spread and slippage added. Why: it keeps the fill honest.
  6. Log blanks and skips. Note "no signal" weeks and any signal you skipped, with a reason. Why: this keeps the sample whole.
  7. Add the market context. Note whether the S&P 500 was above its 50-day average. Why: setups often behave differently in weak markets.
  8. Close the trades and compute R. Subtract costs. Why: net, not gross, is what you keep.
  9. Run the holdout once. Same rules, same sheet, new tab. Why: it is your only clean exam.
  10. Compare and write a verdict. Pass, fail or unclear. Why: a written verdict resists spin.

Paper trading is the next rung. TradingView's paper trading page explains the simulated account. Paper trade it first before real money.

What does a manual backtesting worked example look like?

This example is hypothetical. The ticker "LUMX" and every number are made up to show the math. None of it is a real result or a prediction.

Rule card (Pullback v1, dated November 3, 2026): buy LUMX when it dips to its 20-day average in an uptrend and trades above the prior day's high. Stop below the pullback low. Exit at +2R or after 10 trading days. Risk: $100 per trade. Cost: $0.04 per share total friction.

Signal on March 12, 2025 (hypothetical):

  • Trigger price: $50.00
  • Fill price: $50.06 (gap and spread)
  • Stop: $48.06, so risk is $2.00 per share
  • Shares: $100 divided by $2.00 = 50 shares
  • Cost: 50 shares x $0.04 = $2.00 round trip
  • Exit at target: $54.06, gain $4.00 per share = $200
  • Net: $200 minus $2.00 = $198, about +1.98R

Another signal on April 2, 2025 (hypothetical): trigger $52.00, fill $52.05, stopped at $50.05. Loss is $2.00 per share = $100 plus $2.00 cost, so -1.02R.

Here's the sample summary from a made-up 30-signal sheet: 21 taken, 9 skipped (4 in a weak market, 5 because of a missed alert), 11 losers, 10 winners. That's a win rate of 10 out of 21, about 48%. If the average win is +1.9R and the average loss is -1.02R, the net is (10 x 1.9) minus (11 x 1.02) = 19 minus 11.22 = +7.78R over 21 trades, or about +0.37R per trade.

Now the holdout, also hypothetical: 12 trades, 4 winners, 8 losers. Net is (4 x 1.9) minus (8 x 1.02) = 7.6 minus 8.16 = -0.56R. The sample looked decent. The holdout didn't. That's the signal that Pullback v1 isn't ready.

Notice what the sheet did. It stopped a pretty story. Play stupid games, win stupid prizes, and skipping the holdout is the stupid game.

When should you not trust manual backtesting results?

Do not act on a manual backtest when the sample is tiny, the rules moved, or the holdout failed. The number on the page is not the danger. The confidence it creates is.

Skip or pause if:

  • You have fewer than about 30 signals. Small samples swing wildly. Gather more dates first.
  • You changed rules mid-test. That's a new version. Start a new sheet.
  • You peeked at the holdout. It's used up. Make a fresh one.
  • Costs are missing. Gross results mislead. A November 2026 study of Dhaka Stock Exchange data found a strategy with a large gross return turned unprofitable after a 10 basis point one-way cost. It's a different market, but the lesson fits.
  • You only tested one kind of market. If every date was an uptrend, say so. Results may not carry over.
  • You can't explain a skipped trade. Mystery skips usually mean hindsight crept in.

Real money should wait on the paper trading stage. A backtest is a hypothesis, not a promise.

What are the most common manual backtesting mistakes?

Beginners repeat five mistakes. Each has a simple fix.

  1. Cherry-picking charts. You scroll until you find clean examples. Fix: log every signal in date order from a set start date.
  2. Changing rules after losses. A stop gets "tweaked." Fix: freeze version numbers and make any change a new test.
  3. Ignoring costs. Gross profit feels great. Fix: add spread, slippage and commission to every row.
  4. Using the holdout twice. You retest until it passes. Fix: use it once, then write the verdict.
  5. Forgetting the market backdrop. A pullback in a falling market is a different animal. Fix: add a market filter column and log it even for skipped trades.

Revenge trading in real life often starts with a spreadsheet that lied. Be honest in the sheet and it is easier to be honest at the keyboard.

What if the manual backtesting results are mixed?

Mixed results are normal and useful. They tell you which part of the rule needs a new test, not which result to hide.

If the sample is positive and the holdout is flat, run a second holdout on new dates before changing anything. If winners cluster in strong markets, write a market filter as v2 and test it on fresh data. Also record how many variants you have tried, because CME material cites about seven trials as enough to produce a flattering result by chance.

If results stay mixed after two clean versions, shrink the idea. Trade it on paper, or drop it. Not every setup deserves a place on the watchlist, and a dropped idea is a good result for a worksheet. It saved you money.

Related lessons help here. The breakout trading strategy lesson shows a confirmed breakout and a fakeout in action, and the chart tools comparison explains where each charting site shines.

Practice: how do you run your own manual backtesting exercise?

Run a small test on one setup and one ticker list in an hour or two. The goal is not profit. The goal is to feel the discipline.

Checklist:

  1. Copy the worksheet columns from this article into a new Google Sheet.
  2. Write a one-paragraph rule card and date it.
  3. Choose 10 liquid U.S. stocks and a sample window of 12 months. Seal a separate 6-month holdout.
  4. Replay one stock at a time and log every signal, skip and loser.
  5. Add a fixed cost to every trade.
  6. Total net R for the sample. Write it down before touching the holdout.
  7. Run the holdout once. Write pass, fail or unclear.
  8. Note how many variants you tried. If it's more than one, say so.

What are the top 5 things you should know about manual backtesting?

  1. Rules come first. Written rules stop you from bending the past.
  2. Blanks and losers belong in the sheet. A record with only winners isn't a record.
  3. Fills are worse than chart prices. Add spread and slippage.
  4. A holdout is a one-time exam. Peek, and it's gone.
  5. Your sample is a hypothesis. Past results don't promise future ones.

What should you look out for with manual backtesting?

Watch for quiet drift. It's rarely one big lie. It's a skipped signal here, a rounded fill there.

  • Moving goalposts: the stop shifts by 20 cents "just this once."
  • Tired replay sessions: after 40 minutes, people start spotting what they want.
  • Data quirks: a "daily close" can differ by data source, especially as extended trading hours expand. Note the source in the sheet.
  • Survivor lists: testing only stocks that still exist and trade well.
  • Intraday overlap: if you open and close a trade the same day, tag it. FINRA's new intraday margin standards took effect June 4, 2026, replacing the old pattern day trader rule, and your broker may apply a transition period. Check your broker's rules.

For more on the rule change, read Investor.gov's investor bulletins for plain-English investing guidance.

Which tools help after this manual backtesting lesson?

Two tools do most of the work: a chart with replay and a spreadsheet.

  • TradingView: use Bar Replay where your plan includes it, to move through history one bar at a time.
  • Google Sheets: the worksheet itself. Free, shareable and easy to copy for each version.
  • Trade Ideas and Finviz: scanners that help you build the list of stocks your rules will test. Compare options in the swing trading tools section or the free AI stock tools list.

Optional AI step: paste your rule card or redacted rows (no account numbers) into ChatGPT and ask: "Check this replay worksheet for rules that require data I could only know later. Flag omitted broad-market context and fills." Treat the answer as a second pair of eyes, not a verdict. Read the honest guide to AI stock trading before leaning on it.

What is the quick recap on manual backtesting?

  • Write and date the rules before replay.
  • Log every signal, skip, blank and loser.
  • Add costs and realistic fills to each row.
  • Run the holdout once and write a verdict.
  • Count your versions so luck can't hide.

What should you learn next?

Next up is the trading expectancy lesson, Trading Expectancy With Win Rate, Average Loss and Fees. You'll turn your worksheet columns into one number that says whether a setup earns its keep after costs.

This is education, not financial advice.

The rest of this free beginner course lives at FullStack Alpha.

Your market edge starts with the right tool. Stay alpha.

Conclusion

A convincing chart is easy to find. An honest test is harder, and that's exactly why it's worth doing. Freeze the rules, replay blind, log every signal and loser, add costs, and keep a holdout you touch once.

Your next steps: build the sheet today, run ten stocks through one setup, and write the verdict before you trade a dollar. For more tools, browse the 200+ options in the FullStack Alpha directory at aistockpickerapps.com.

References

  1. Moving Beyond the Illusion of Backtests. cmegroup.com.

Prices are subject to change as fast as AI technology.

The Alpha Report

We test the tools. You get the verdict.

One email a week. What we tested, what scored, and what we'd skip. Written for traders, not for clicks.

No spam. Unsubscribe anytime.

Frequently asked

The FullStack Alpha Network

Four sites, one standard. Tested tools, no paid rankings.

  • You are here

    AIStockPickerApp.com

    Editorial reviews, deep dives and Alpha Scores for AI stock tools.

  • Directory

    AIStockPickerApps.com

    A directory of 200+ AI stock tools, filterable by category and price.

    Browse the directory
  • Trading Bots

    AIStockTradingBots.com

    AI trading bots, broker APIs, backtesting and paper trading news.

    See the trading bots
  • Tool Finder

    BestAITradingTools.com

    Interactive finders and educator workflows that match you to AI trading tools.

    Find your tool