Backtesting & Trading Journal: Test Your Forex Strategy

Advanced5 min read
Flat lay journal on desk
Image by magnific on Magnific

Why Test Before You Trade

A strategy is a hypothesis: “when I see X, doing Y has a positive expected result after costs.” Backtesting checks that hypothesis against history, and a trading journal checks it against your own live execution. Neither can prove a method will work in future, because markets change. What they can do is reject bad ideas cheaply, show you what normal losing streaks look like, and give you a baseline to compare live results against. Trading without either means you are paying the market to run the experiment for you.

Manual Versus Automated Backtesting

Manual backtesting means scrolling a chart back, advancing it candle by candle, and recording every trade your rules would have taken. It is slow, but it builds screen time and it works for discretionary methods that are hard to code, such as price action setups. Its weakness is hindsight: it is very easy to skip the losing trade you “would not have taken”. Hide the future candles and log every valid signal, no exceptions.

Automated backtesting runs coded rules over years of data in seconds. It removes hindsight bias and makes large samples easy, but it introduces its own traps: poor-quality data, unrealistic fills, fixed spreads that ignore news-time widening, and the temptation to optimise endlessly. Whichever route you take, include realistic costs. Spread, commission and swap can turn a thin edge negative, so be sure you understand spreads and pips before trusting any result.

For the step-by-step mechanics of MetaTrader, including modelling modes, spread settings and how to read the report, see how to backtest an EA in the Strategy Tester. On TradingView, the browser-based charting platform, a Pine strategy gets a similar report; try strategies without repainting flags and check the cost settings, because repainting scripts look better in history than live.

Sample Size and Expectancy

Twenty trades tell you almost nothing; luck dominates small samples. A common rule of thumb is at least 100 trades covering different conditions — trending, ranging, quiet and volatile — and more for methods with a low win rate, whose results are lumpier.

Equity curve in R over 120 hypothetical trades with 40% winners at 1.8R and 60% losers at 1R, dipping below zero early with drawdowns shaded red, and ending at plus 14.4R
Illustration: the guide’s 120-trade test in one possible order. The edge is +0.12R a trade, yet after 20 trades the account is still behind and the deepest drawdown is 12.8R. Only over the full sample does the positive expectancy show.

The key output is expectancy, the average amount you make or lose per trade:

E = (win% × average win) − (loss% × average loss)

Take a hypothetical test of 120 trades: 48 winners (40%) and 72 losers (60%), with an average win of 180 USD and an average loss of 100 USD. E = (0.40 × 180) − (0.60 × 100) = 72 − 60 = 12 USD per trade. Over 120 trades that is 1,440 USD. In risk units, with 100 USD as 1R, it is 0.12R per trade. Note that the system loses more often than it wins and is still positive.

Now flip it. A method that wins 70% of the time with an average win of 50 USD and an average loss of 150 USD gives E = (0.70 × 50) − (0.30 × 150) = 35 − 45 = −10 USD per trade. A high win rate with poor risk-to-reward loses money. Margins matter too: if the first system’s costs were understated by just 5 USD a trade, its expectancy falls from 12 to 7 USD, a drop of more than 40%.

Overfitting and Curve Fitting

Overfitting means tuning rules until they describe the past perfectly — and the future not at all. With enough parameters you can make any dataset look profitable. Warning signs:

  • Oddly specific values, such as an RSI threshold of 37 or a 23-period average, with no logic behind them.
  • Results that collapse when a parameter shifts slightly. If a 20-period setting works but 18 and 22 fail, you have found noise.
  • Filters added one by one to remove specific historical losers.
  • An equity curve that looks too smooth to be real.

The defence is simplicity: few rules, each with a reason you can explain, that hold up across neighbouring parameter values and ideally across several pairs.

Out-Of-Sample and Forward Testing

Split your data before you begin. Develop the rules on one portion — say the first five years — and keep the most recent two years untouched. When development is finished, run the rules once on the unseen portion. If performance holds up reasonably, that is encouraging; if it falls apart, the method was fitted to the first period. Be honest about the word “once”: every time you tweak after peeking, the out-of-sample data quietly becomes in-sample.

A public forward test looks like ForexR Signals: each trade published before its entry, then tracked and kept, losses included. How to read a signal track record explains how to judge one.

Then forward test on a demo account or at minimum size for a few months, or 30 to 50 trades. This is the first time live spreads, slippage and your own hesitation enter the results.

What a Journal Records, and When to Review It

The journal is a forward test that never ends. For each trade record: date, time and session; pair and direction; setup name; entry, stop and target; planned risk-to-reward; position size; result in R and in money; before and after screenshots; whether you followed your rules; and a line on your emotional state, which ties in with trading psychology.

Review on three cadences. Daily, spend five minutes checking rule adherence. Weekly, go through screenshots and tag mistakes. Monthly, calculate expectancy by setup, pair and session, compare it with the backtest, and use the drawdown calculator to see what any losing run has cost and the gain needed to recover. Change one thing at a time.

Past performance, tested or live, does not guarantee future results. Forex and CFDs carry a high risk of loss; only risk money you can afford to lose.

FAQ

How many trades do I need for a valid backtest?

There is no magic number, but a common rule of thumb is at least 100 trades spread across trending, ranging, quiet and volatile periods. Methods with low win rates or infrequent large winners need more, because a handful of trades can dominate the result and make a small sample misleading.

What is a good expectancy for a trading strategy?

Any figure that stays positive after realistic spread, commission, swap and slippage is workable, but thin edges are fragile. Express expectancy in R so it is comparable across position sizes, and treat a backtest result as an upper bound: live performance is usually somewhat worse than the test.

What is the difference between backtesting and forward testing?

Backtesting applies your rules to historical data to see how they would have performed. Forward testing applies them in real time, on a demo account or at very small size, so live spreads, slippage and your own execution are included. A method should pass both before you commit meaningful risk.

See these strategies traded live

ForexR Signals publishes each trade before the entry, with its stop and three targets, and tracks it against live prices. Every win and loss stays on the record. Practice trades with no real money, not advice.

All signals and the full track record · Signals terms

Related on ForexR

Next lesson Prop Firm Challenges Explained: Rules, Maths & How to Pass Continue

More Advanced Guides

Multi-Timeframe Analysis in Forex: A Top-Down Routine Price Action Trading: Market Structure, Zones & Liquidity Smart Money Concepts (SMC) Explained: A Practical Guide Fair Value Gap (FVG) Explained: How to Find and Trade It The Wyckoff Method: Accumulation, Distribution and Market Cycles Elliott Wave Theory Explained: The 5-3 Wave Pattern Made Simple London Breakout Strategy: Rules, Example & Backtesting Currency Correlation in Forex: Pairs That Move Together Hedging in Forex: How It Works, Strategies and Real Costs US Dollar Index (DXY) Explained: How to Read & Use It Carry Trade & Interest Rates: How Swap Shapes Forex Trades Trading the News in Forex: NFP, CPI & Rate Decisions Non-Farm Payrolls (NFP): How to Trade the US Jobs Report CPI and Forex: How Inflation Data Moves Currencies FOMC Meetings Explained: How Fed Rate Decisions Move Forex XAU/USD Explained: Contract Specs, Volatility and ATR Stops Gold Price History: 1971 to 2020 in Cycles, Not Straight Lines Gold Futures vs Spot vs CFDs: Contango, Roll and Which to Trade LBMA Gold Price and the London Fix: How Gold's Benchmark Is Set Central Bank Gold Buying: Why They Buy and What It Does to Price Gold Supply and Demand: Mines, Recycling, Jewellery and ETFs Gold Seasonality: Festivals, Weddings and What the Data Say Gold EAs and Trading Bots: Why XAU/USD Breaks Forex Robots Hedging Physical Gold With XAU/USD: A Guide for Jewellers How to Trade Silver (XAG/USD): What Moves It and How It Differs How to Trade Bitcoin (BTC/USD): A Guide for Forex Traders Forex Robots & Expert Advisors (EAs): A Practical Guide Running an EA 24/7: Forex VPS, Forward Testing & Going Live Open-Source Forex EAs on GitHub: Licences, Compiling & Editing How to Backtest a Pine Script Strategy in TradingView How Pine Script Runs: Bars, Series and the History Operator Pine Script Strategy Orders: Entries, Stops and Position Size Pine Script Functions, Methods and Libraries: Reuse Your Code Pine Script Drawings: Lines, Labels, Boxes and Tables Pine Script Errors and Limits: How to Fix the Common Ones How to Publish a Pine Script: Open Source, Private and Licences How to Send TradingView Alerts to MT4 or MT5 AI in Forex Trading: What It Can and Cannot Do for You Machine Learning in Forex: What Works and What Fails What Is MCP? The Model Context Protocol for Traders How to Build an AI Trading Bot: An Honest Walkthrough How to Backtest an AI Trading Strategy the Right Way Martingale and Grid Trading Explained: How They Work, Pros & Cons Prop Firm Challenges Explained: Rules, Maths & How to Pass Trading Psychology in Forex: Discipline, Bias & Routine

Choose a Regulated Broker

Put what you’ve learned to work with a regulated broker. Compare costs, platforms and licences side by side.

Compare top brokers