EnglishفارسیTürkçe

Features

Journal Backtest Prop Firm Scripts Replay & Trade Charts Analysis Playbook Mentor Broker sync

Resources

Pricing Learn Forex calculator Crypto futures calculator Symbols Supported brokers Sign in Get started
Guide · 2026

How to backtest gold (XAUUSD) on 1-minute data, step by step

Where 1-minute gold data comes from and how far back it goes, what TradingView, MT5 and the other backtesters let you do with it, why the news minutes need 1-second bars, and a full run from an empty chart to a report.

How to backtest gold on 1-minute data: XAUUSD bar by bar from May 2003 to last week, 1-second bars since 2023, Pine Script indicators, beside TradeAssay's 1-minute gold chart on the morning of the US jobs report, 4 April 2025.

The short answer

  • You need the data firstGold on 1 minute, with the bid and the ask, going back through several very different years. Most free sources stop at a few months.
  • Then a way to trade it blindA bar replay hides the future and lets you place your own trades candle by candle. On TradingView, 1-minute replay is a paid feature; MT5's tester is built for automated strategies.
  • The quickest wayTradeAssay replays XAUUSD from May 2003 to last week on 1 minute, with your TradingView indicators and 1-second bars for the news. 7 days free, no card.
Why one minute is not always enough
The jobs report
Every tool, side by side
Compare
TradingView's Bar Replay and MT5
TradingView · MT5
A full run, from session to report
Step by step
Which years to test, and how many trades
A test plan

Who wrote this. TradeAssay makes a backtester, and it is one of the options below. Every fact about another tool comes from that tool's own pages or from our own screenshots of it, with the date we checked. Every price and every time on this page comes from real XAUUSD candles; nothing was drawn or rounded for the pictures.

Why gold needs 1-minute data, and sometimes less

Gold moves in bursts. Most of a quiet London morning it drifts a couple of dollars a minute; then a US number comes out and a single minute holds more movement than the hour before it. A strategy tested on 1-hour or 15-minute bars never sees those minutes, and those are the minutes that decide whether a scalper's stop survives.

Take the US jobs report of Friday 4 April 2025, released at 12:30 UTC (8:30 in New York). From 08:00 to 12:00 UTC the average 1-minute candle on XAUUSD was $2.45 from high to low. The release minute was $12.97, more than five times that. That day gold traded between 3,015.34 and 3,136.44, a range of $121.

The minute itself is the interesting part. It opened at 3,095.57 and closed at 3,097.87, a small green candle. Inside it, the price fell to 3,089.83 three seconds after the release and to 3,087.41 after six, then turned and reached 3,100.38 before the minute was out. Picture a buy at the open with a $5 stop and a $4 target: the 1-minute candle touched both, and only the 1-second bars show that the stop came first. On 1-minute data alone a backtester can't know the order. TradeAssay walks the real seconds inside the minute where they exist (gold from January 2023) and otherwise counts the stop, never the target.

XAUUSD on the 1-second chart in TradeAssay around the US jobs report of 4 April 2025: the fall from 3,095 to 3,087 in the first seconds after 12:30 UTC, then the rise above 3,100 within the same minute.
The jobs-report minute of 4 April 2025 on 1-second bars, in TradeAssay's backtester (Elite).

So the rule of thumb: test on the timeframe you trade, use 1-minute bars for intraday gold, and check the trades that sit on a release on 1-second bars before you count them. If you trade around the US session, our study of the best hours to trade gold shows how much bigger those hours are.

Where you can backtest gold on 1-minute data

ToolGold on 1 minuteSecondsYour own trades, bar by barPrice
TradingView Bar Replay180 days (Essential), 365 days (Plus), all history (Premium); Basic: daily bars onlyPremium and UltimateYesEssential $12.95/mo, Premium $59.95/mo, billed yearly
MT5 Strategy TesterWhatever your broker's server holdsTick modelling, for automated testsNo, automated strategies only (add-ons exist)Free
Forex Tester OnlineUp to 23 years of tick dataNo, 1 minute is the shortestYesShown in your local currency
FX ReplayForex back to 2003; gold's start not stated5-second candles, on ProYesFree: 2 sessions of 50 trades; $17.99/mo; Pro $35/mo
BacktestingMaxSince 20031 second, on ProYesFree plan; Pro $34.99/mo
TradersCasa6 months free; 6 years paid; 20+ years on ProNot statedYesFree with ads; $8.95 or $30 per 4 weeks
TradeAssayMay 2003 to last week1 second since January 2023, on EliteYes, with Pine Script indicators7 days free, no card; Pro $9.99/mo; Elite $24.99/mo

Sources: TradingView's Bar Replay help pages and pricing page, read on 21 November 2026; Forex Tester Online, BacktestingMax and TradersCasa from their own sites on 21 November 2026; FX Replay from its pricing page and FAQ on 7 November 2026. Plans change, so check the vendor's page before you buy. Our full comparison is in the best backtesting software.

Two of these are close to us on data. BacktestingMax also has gold from 2003, with a free plan, and Forex Tester Online has long tick history. Where TradeAssay differs is the chart: it looks and works like TradingView's, it runs your Pine Script indicators, buys fill at the ask and sells at the bid, and the same app keeps your live trades and your prop firm's rules.

Backtesting gold on TradingView's Bar Replay

Bar Replay is the tool most traders already know: pick a past date, hide everything after it and step forward. How far back you can go on 1 minute depends on the plan. On the free Basic plan, choosing 1 minute in Bar Replay opens this:

TradingView on the free Basic plan: XAUUSD on the 1-minute chart, and Bar Replay answering with an upgrade window that says intraday bar replays are only on upgraded plans and recommends Essential.
Our own screenshot, 21 November 2026. TradingView is a trademark of TradingView, Inc.; we are not affiliated.

Essential replays the last 180 days of 1-minute bars, Plus the last 365 days, and only Premium ($59.95 a month, billed yearly) and Ultimate replay all the history TradingView holds; seconds are on Premium and above too. A year of gold is one market regime, so to test across several you need Premium. Our guide to backtesting on TradingView covers the plans and the steps in detail.

Backtesting gold in MT5's Strategy Tester

MT5's Strategy Tester is free and very good at one job: running an automated strategy, written in MQL5, over your broker's history. Pick the program, XAUUSD, the timeframe and the dates, and choose how prices are modelled. "Every tick based on real ticks" is the most accurate, and the slowest.

MT5's Strategy Tester settings: an indicator from the examples folder on XAUUSD, H1, last year from 2026.01.01 to 2026.11.20, modelling Every tick based on real ticks.

Its visual mode replays the chart, but it plays the program's trades, not yours: there are no Buy and Sell buttons for practising by hand, which is why add-on programs exist for manual testing. The history is whatever your broker's server keeps, so two brokers can give two different results for the same dates.

MT5's Strategy Tester visualization of XAUUSD on the 1-hour chart from 2026.01.01 to 2026.11.20, with a Skip to date and the Accelerator indicator below the chart.
MT5's tester in visual mode, our own screenshots, 21 November 2026.

If your strategy is code, MT5 is the right place for it. If you trade by hand and want to practise reading gold's chart, you need a bar replay.

How to backtest gold on 1-minute data, step by step

This is the run we did for this article in TradeAssay, on XAUUSD around the jobs report of 4 April 2025. The backtester is in the 7-day trial (no card) and in Pro.

1. Create a session on XAUUSD

Open Backtest and press Create session. Name it, choose XAUUSD, a starting balance and the timeframe, and set the dates. Any start from May 2003 works; this one runs to the end of 2025.

Create a backtest session in TradeAssay: name Gold scalping, 1 minute; symbol XAUUSD; starting balance $100,000; dates 6 May 2003 to 31 December 2025.

2. Set the chart up the way you trade

The chart is built to feel like TradingView's: its kind of drawing tools on the left, timeframes from 1 second to 12 months, and its indicators. Here are TradingView's MA Ribbon (EMA 20, 50, 100 and 200), Bollinger Bands and MACD, running in our own Pine Script engine. Everything after the replay's clock stays hidden.

XAUUSD on the 1-minute chart in TradeAssay's backtester on 4 April 2025: the drop after the 12:30 UTC jobs report, an EMA ribbon of 20, 50, 100 and 200 periods, Bollinger Bands, and MACD in its own pane.

3. Trade it bar by bar

Step one candle at a time, or play at 1x to 10x. Open trades from the order ticket: market, limit, stop or stop limit, sized in lots or by the dollars you're willing to lose, with the stop and the target set before you send it. The ticket shows both prices, and buys fill at the ask, sells at the bid, so gold's spread is paid as it would be live. The position, its stop and its open profit sit on the chart as the candles arrive.

A gold position opened from TradeAssay's order ticket on the 1-minute XAUUSD replay, with its stop and target lines and open profit on the chart, and the ticket showing the bid and the ask.

A quick sizing reminder: at most brokers one lot of XAUUSD is 100 ounces, so every $1 the price moves is $100 per lot. A $5 stop on 2 lots is $1,000. Sizing by risk in dollars avoids doing that in your head.

4. Drop to 1-second bars on the news

When a trade sits on a release, switch the same chart to 1 second (Elite, from January 2023) and replay the minute. That is how the picture in the first section was made, and it settles which of your stop and target came first.

5. Read the report, then repeat on other years

Each session keeps every trade and builds a report: win rate, profit factor, average win and loss, drawdown and the equity curve. Save the session, then run the same rules on a different period. One good week of gold proves very little.

Price: backtesting is in the 7-day trial (no card) and in Pro ($9.99/mo or $79.99/yr); 1-second bars and up to 16 charts are on Elite ($24.99/mo). The free plan has no backtesting. More about the backtester.

A gold test plan that means something

  • Pick different years, not just recent ones. Gold behaved very differently in the 2008 crisis, at the 2011 top, in the 2013 sell-off, in the March 2020 panic, through the 2022 rate rises and in the 2024–2025 record run. A rule that only works in one of them is a bet on that kind of market coming back.
  • Test the hours you will trade. Asian, London and New York gold are almost different instruments. See the best hours to trade gold.
  • Mark the news. Note which trades sat on a release and check them on 1-second bars. If the strategy only makes money on news minutes, you need to know that before you trade it.
  • Take enough trades. With a 60% win rate you need about 100 trades before the numbers say much; at 55%, closer to 370. See how many trades before your statistics mean anything.
  • Pay the spread. Test with the bid and the ask, not mid prices. On a $4 target a few dimes of spread are a real part of the trade.

Frequently asked questions

Where can I backtest gold on 1-minute data?

In a bar-replay backtester. TradingView's Bar Replay goes back 180 days on 1 minute on Essential, 365 days on Plus and all its history on Premium; the free Basic plan replays daily bars only. MT5's Strategy Tester uses your broker's history and runs automated strategies. TradeAssay replays XAUUSD 1-minute bars from May 2003 to last week, bar by bar, with Pine Script indicators, in the 7-day trial and on Pro.

How far back does 1-minute gold data go?

It depends on the source. TradeAssay's XAUUSD 1-minute history starts in May 2003 and its 1-second bars in January 2023. A broker's MT5 history varies by broker, and TradingView's Bar Replay on 1 minute is limited by plan: 180 days on Essential, 365 days on Plus, all history on Premium and Ultimate.

Can I backtest XAUUSD for free?

Partly. MT5's Strategy Tester is free but tests automated strategies on your broker's history. TradingView's free Basic plan replays daily bars and above, not 1 minute. TradeAssay's 7-day trial needs no card and includes the full backtester with gold from 2003; after it, backtesting is on Pro at $9.99 a month.

Is 1-minute data enough to backtest gold scalping?

For most of the day, yes. Around big releases it isn't: on 4 April 2025, the minute of the US jobs report had a $12.97 range, five times the morning's average, and fell $8 in six seconds before rising to a new high. A 1-minute bar can't show whether a stop or a target was reached first; 1-second bars can.

Can I backtest gold manually in MT5?

Not with the Strategy Tester alone. It replays the chart in visual mode for automated strategies and indicators, but it has no order buttons for your own trades; manual practice needs an add-on program. History and spreads are whatever your broker's server holds.

How many trades do I need to backtest a gold strategy?

More than most traders take. With a 60% win rate you need about 100 trades before the result says much; at 55% it is closer to 370. Spread them over different years, because gold behaves very differently in a quiet range, a trend and a news week.

What is the best time frame to backtest gold?

The one you will trade. Scalpers should test on 1 minute and check the news minutes on 1-second bars; day traders on 5 or 15 minutes; swing traders on 1 hour and above. Test on the same timeframe and session you plan to trade live.

Written by the TradeAssay Team, traders with more than seven years of experience in forex, gold, indices and futures. The prices on this page are TradeAssay's own XAUUSD 1-minute and 1-second candles for 4 April 2025; the TradingView and MT5 pictures are our own screenshots from 21 November 2026. If something here is out of date, write to support@tradeassay.com and we'll correct it.

Replay gold on 1 minute from 2003 to last week, with your TradingView indicators. 7 days free, no card.

Start free

Trading foreign exchange, gold, futures and other leveraged products carries a high level of risk and is not suitable for every investor. Past prices, and results tested on them, do not guarantee future results. TradingView, MetaTrader 5, Forex Tester Online, FX Replay, BacktestingMax and TradersCasa are the trademarks of their owners and are named only to compare; TradeAssay is not affiliated with any of them. This page is not investment advice.

Your next trade deserves a reason.

Bring in your history and see what it says — free, in a few minutes.

Create your free account
Help centre

Answers to what traders ask us most — and a ticket to a person when they aren't enough.

Open help
Write to us

support@tradeassay.com — read by the people who build the app.

Send an email
Learn

Long reads on sample size, R and prop-firm rules, each with a calculator.

Start reading