Q&AManual Strategy Backtesting

How to Backtest a Gold Trading Strategy:
Complete Guide for Manual Traders

Published 17 June 2026 ยท 14 min read

Quick Answer

Manual strategy backtesting uses TradingView bar replay to advance through historical XAUUSD charts one candle at a time, recording every trade your rules would have triggered into a spreadsheet. You need at minimum 100 trades (ideally 150โ€“200+) across 2+ years of data. Three numbers determine whether your strategy has edge: win rate, profit factor, and expected value (EV). A positive EV means the strategy makes money on average. This guide covers the 4-phase process from rules definition through results analysis.

Note: This guide covers manual strategy backtesting (TradingView + spreadsheet). For EA backtesting in MT5 Strategy Tester, see the related links at the bottom of this page.

The 4-Phase Manual Backtest Protocol

Click each phase to expand the full instructions, tools list, and common shortcuts to avoid.

Before you open a single chart, write down your strategy in precise, testable language. This means: Entry condition: "I enter long when [exact condition] is true and [exact confirmation] is also true." If you write "when price looks bullish," that is not testable โ€” it is subjective. "When the H1 candle closes above the 50 EMA and ATR(14) is above 18 pips" is testable. Stop loss rule: "My stop loss is placed [specific location] โ€” e.g., below the most recent swing low, or at a fixed 15 pips below entry." The specific rule must be consistent across all trades. Take profit rule: "My take profit is [specific location or ratio]." A 1:2 risk/reward ratio is specific. "When it looks like it's going to reverse" is not. Exit rule (besides SL/TP): If you have any other exit condition (time-based, indicator cross, trail stop), write it down precisely. The test of whether your rules are precise enough: could a stranger execute them from your written description without asking any questions? If not, refine them before testing.

Tools needed for this phase

Pen and paper, a clear written strategy document

Backtest Sample Size Calculator

How many trades do you actually need? It depends on your strategy's expected win rate and how confident you need to be in the result. Select below.

Expected Win Rate

Confidence Level Needed

Select both win rate and confidence level to see your minimum sample size

Why Manual Backtesting Is Underrated

Most traders jump straight to backtesting in MT5 Strategy Tester because it is automated โ€” you can run 5 years of data in 3 minutes. Manual backtesting takes weeks. So why bother?

Builds real chart reading skill

Advancing through 2 years of XAUUSD history one bar at a time, while looking for your setup, creates chart reading intuition that you cannot get any other way. You learn what the London open looks like on 300 different mornings. You learn what a false breakout pattern feels like versus a genuine one. This knowledge transfers to live trading in ways that MT5 backtests cannot.

Forces rule precision

The MT5 Strategy Tester will run any set of coded rules, even vague ones. Manual backtesting forces you to make a decision on every single bar โ€” is this my setup or not? When you are uncertain, it reveals that your rules are not precise enough. This forces you to refine the rules before testing, which is the right order.

Works for any strategy, not just codeable ones

Many effective strategies involve price action elements that are difficult or impossible to code reliably: specific candlestick patterns at specific levels, volume context, time-of-day confluence. Manual backtesting works for all of these. You are the pattern recogniser, not a coded indicator. This means you can test strategies that would require expensive custom EA development to backtest any other way.

Reveals the practical experience of the strategy

When you backtest manually for 20 hours, you will notice things you would not see in a report: your strategy has 12 consecutive losses in February 2022 during the Russia-Ukraine shock. Your setup does not appear at all during certain weeks. These observations inform how you will manage the strategy live โ€” something a statistical report alone cannot convey.

From Manual Backtest to Forward Test to Live

The complete development pathway for a trading strategy:

Manual Backtest

2โ€“8 weeks

100โ€“200 trades, 2+ years of history. Validates the basic edge.

Demo Forward Test

4โ€“8 weeks

Real-time trading on a demo account with the same rules. Validates the edge in current conditions.

Small Live Account

3โ€“6 months

Minimum lot sizes on a live account. Real execution; real emotions; confirm the strategy survives contact with live conditions.

Full Sizing

Ongoing

Scale to target lot sizes only after the strategy is validated across all three prior stages.

For context: the breakout logic that Goldie Razor V2.8.4 uses originated as a manually-observed pattern. The London open range break was repeatedly observed to follow through on gold โ€” consistently enough across enough sessions to warrant formal backtesting and then automation. Most robust EA strategies share this origin: manually verified edge, then coded.

The Most Common Manual Backtesting Mistakes

Mistake: Moving on after 30 trades

Fix: Commit to at least 100 trades (ideally 150+) before evaluating results. 30 trades is not enough to distinguish strategy edge from a lucky streak.

Mistake: Looking forward when deciding

Fix: Use bar replay only. If you can see the candles that came after the setup, you will unconsciously bias toward "winning" setups โ€” a form of hindsight bias that makes any strategy look better than it is.

Mistake: Adjusting rules mid-backtest

Fix: Define your rules completely before starting. If you change them based on what you see, you are fitting the rules to the historical data you just observed โ€” a form of curve fitting.

Mistake: Testing only the best year

Fix: Always test across at least two different calendar years, including at least one ranging and one trending year. Testing only 2023โ€“2024 (a strong bull year for gold) will make almost any long-biased strategy look profitable.

Mistake: Skipping the EV calculation

Fix: Win rate alone tells you nothing about profitability. You need average win size and average loss size. Calculate EV = (Win% ร— Avg win) โˆ’ (Loss% ร— Avg loss) before declaring the strategy profitable.

Mistake: Not recording losing trades

Fix: Every trade that meets the rules must be recorded โ€” even the ones that "looked bad." Selectively recording only the setups you took, rather than all setups that qualify, produces a biased sample.

Related Reading

Frequently Asked Questions

The statistical minimum is typically 100 trades, but the exact number depends on your strategy's win rate. At a 60% win rate, you need approximately 200 trades to distinguish real edge from luck at 95% confidence. At a 50% win rate (closer to random), you need even more โ€” around 400 trades. The practical recommendation: aim for 150โ€“200 trades across at least 2 different years. This gives you enough data to identify the strategy's characteristics across different market conditions rather than just one regime.

Hindsight bias is the #1 enemy of manual backtesting โ€” and it is unavoidable unless you use bar replay. Without bar replay (looking at historical charts where all future candles are already visible), your eyes automatically incorporate what came after the setup. You will unconsciously take more 'winning' trades and skip more 'losing' ones, producing a falsely optimistic result. The solution is strict bar replay: you must only see the chart up to the current bar, exactly as you would in live trading. TradingView's bar replay feature is specifically designed for this. Never manually backtest by scrolling backwards on a complete chart.

Yes, for H1 and above. TradingView's bar replay uses the same data as the charts โ€” it simply hides future candles as you advance through history. For very short timeframes (M1, M5), the replay can have data quality limitations since TradingView aggregates tick data into bars differently from MT5. For strategies on H1, H4, and Daily timeframes โ€” the most common for manual traders โ€” TradingView bar replay is sufficiently accurate. If you need tick-by-tick precision for a very short-timeframe strategy, MT5's Strategy Tester on an indicator is more appropriate.

The conversion process: First, write your strategy rules in pseudo-code โ€” plain English but structured like code. 'IF [condition A] AND [condition B] is true THEN enter long AT [exact price] WITH stop at [exact location].' Second, identify which conditions require indicators (these translate directly to EA code), which require pattern recognition (harder to code), and which are discretionary (cannot be coded). Third, hire an MQL5 developer or use the MT5 Expert Advisor Wizard for simple strategies. The more precisely you have defined your rules in step 1 (Phase 1 above), the more accurately the developer can code your intent.

Move to demo forward testing when: (1) you have 150+ manual backtest trades across 2+ years; (2) the backtest shows positive EV and a profit factor above 1.3; (3) you understand the strategy well enough to know exactly when it should and should not take a trade. Demo forward testing is the next validation step โ€” running the strategy in real-time (but with simulated money) to confirm the manual backtest results hold in current market conditions. Spend at least 4โ€“8 weeks on demo before considering live trading, and track your results with the same spreadsheet discipline you used in the backtest.

Goldie Razor V2.8.4

M15 breakout + H4 EMA filter โ€” built for XAUUSD on MT5

View Goldie Razor โ†’