Replay and backtest need candles: the prices around your trades, one candle per minute. SetupBook finds many of them on its own. Crypto comes from the public exchanges, MetaTrader, cTrader, Oanda and TradeLocker connections send their own, and forex, indices, futures and US shares fall back to Yahoo Finance when its prices match your fills. When none of those has the candles you need, you can bring them yourself: a file of 1-minute candles, uploaded under Settings → Price data. Replay and backtest use your own candles first.
This guide shows where each common platform keeps its export, what the file looks like, and the two choices to make when you upload it.
Which source for which market
The best file is the one from the same feed you traded on: your broker's MetaTrader for CFDs, your futures platform for futures. Its prices are the ones your fills happened at, so every entry and exit lands on its candle.
If your platform is connected to SetupBook
Many connections already bring their candles, so there is nothing to export:
Under Accounts → Connections, each connection's What this connection brings shows the same for your own account.
Before you start
- A SetupBook account. Replay and backtest are part of Pro; Pro has room for 400 days of 1-minute candles, and a set can be deleted at any time.
- The symbol written the way your trades have it. If your journal says
MNQZ6, upload the file asMNQZ6; if it saysEURUSD, useEURUSD. That is how the candles find your trades. - 1-minute candles. Longer timeframes are built from them; a file of 5-minute or hourly candles is turned away.
1. TradingView: Download chart data
- Open the symbol on a Supercharts chart and switch the timeframe to 1m.
- Scroll the chart to the left until it reaches the first day you want. TradingView puts only the candles loaded on the chart into the file, so the scroll decides how far back it goes.
- Open the menu on the upper toolbar and choose Download chart data…, pick the chart and click Download.
The file is a CSV with a time column and open, high, low, close, plus any indicators on the chart (SetupBook ignores those). The times carry their own zone, so you will not be asked for one. TradingView offers the export on its paid plans; how far back 1-minute history loads also depends on the plan, so a long period may take a few files.
For futures, open the contract you traded (for example the December contract) rather than the continuous 1! chart when you can: around a roll the two trade at different prices.
2. MetaTrader 5: Symbols, Bars, Export Bars
- In MetaTrader 5 open View → Symbols (or press Ctrl+U), or right-click the symbol in Market Watch and choose Symbols.
- Go to the Bars tab, pick the symbol, set the timeframe to M1 and choose the first and last date.
- Click Request. The terminal downloads the bars from your broker's server; a long period takes a moment.
- Click Export Bars and save the file as CSV.
The file has a date and a time, the four prices, tick volume and the spread. Its times are your broker's server clock, not yours. SetupBook checks the possible zones against your fills on that symbol and suggests the one where they land inside their candles; most brokers use UTC+2/+3 (New York DST).
If you connect the same MetaTrader account with the SetupBook Expert Advisor (version 1.10 or later), it sends the 1-minute candles around your trades by itself, and you do not need the file.
3. MetaTrader 4: History Center, Export
- In MetaTrader 4 open Tools → History Center (or press F2).
- On the left, open the symbol and double-click 1 Minute (M1). The bars load on the right.
- Click Export, choose where to save, and save it as CSV.
MetaTrader 4 keeps only as many bars as Tools → Options → Charts allows (Max bars in history and Max bars in chart); raise them if the file stops short of the days you need. As with MetaTrader 5, the times are your broker's server clock.
4. NinjaTrader 8: Historical Data, Export
- In the Control Center open Tools → Historical Data.
- If the data is not on your computer yet, download it first on the Load tab, from the connection that provides it (your futures broker's data).
- In the Export section pick the instrument, set the interval to Minute and the data type to Last, and choose the start and end date.
- Click Export and save the
.txtfile.
Each line reads yyyyMMdd HHmmss;open;high;low;close;volume. NinjaTrader writes these times in UTC and stamps each candle at its close. When you upload the file, pick UTC as the time zone and tick Times mark the close of each candle (NinjaTrader).
Interactive Brokers through NinjaTrader
NinjaTrader 8 can connect to an Interactive Brokers account (with TWS or IB Gateway running) and download minute history for its instruments into the same Historical Data window, which then exports it as above. Two things to know: Interactive Brokers slows down large history requests from other programs, so download one instrument and a short period at a time, and NinjaTrader needs a real-time Interactive Brokers market data subscription for the instrument; delayed data does not work there.
5. HistData: free forex 1-minute candles
- On histdata.com open the free forex data downloads and choose Generic ASCII and 1 Minute Bar Quotes.
- Pick the pair, then the year or month, and download the ZIP.
- Unzip it; upload the
.csvinside.
Each line reads YYYYMMDD HHMMSS;open;high;low;close;volume, with bid prices. The times are Eastern Standard Time without daylight saving, all year: pick UTC-5 when you upload, and Bid for the prices.
HistData's prices come from its own feed, not your broker's. They sit very close for the major pairs, but a fill can land just outside a candle now and then.
6. Upload the file to SetupBook
- Open Settings → Price data and click Upload candles.
- Choose the file. SetupBook reads it in your browser and shows how many candles it found and from when to when.
- Write the symbol exactly as your trades have it.
- Check the time zone. When the file has no zone of its own, SetupBook tries the possible ones against your fills on that symbol and shows how many land inside their candles. A high share means the zone is right.
- Choose whose prices they are: Bid for forex and CFDs, Traded for futures, shares and crypto.
- Click Save. The days go into your account, where only you see them.
Open Replay: the trades on that symbol now play on your candles, and the chart header names your file as the source. A new backtest session on the symbol uses them too.
Frequently asked questions
Why is a trade still not in the replay list after the upload?
The file has to cover the trade's day and the symbol has to match the trade's exactly. Under the replay list, Where the candles come from lists every trade left out and why.
Can I upload more than one file for the same symbol?
Yes. Each upload adds its days to the symbol's set; a day you upload again is replaced.
Do I need 1-minute candles, or will 5-minute ones do?
1-minute candles. Replay builds the 5-minute, 15-minute, hourly and daily candles from them, and a fill can only be placed on its own minute.
Does Interactive Brokers export candles?
Not from the Flex report the connection uses: it holds trades, not prices. Connect NinjaTrader 8 to your Interactive Brokers account and export from there, or take the candles from TradingView.
Does cTrader export candles?
cTrader has no built-in candle export, and it does not need one here: a cTrader connection sends the 1-minute candles around your trades by itself.
Who can see my candles?
Only you. Uploaded candles stay in your account, and you can delete any set under Settings → Price data at any time.
Sources
- TradingView: How to export chart data
- NinjaTrader 8 help: Exporting historical data
- NinjaTrader 8 help: Importing, the file format
- HistData: data files, detailed specification
- StrategyQuant: How to export data from MetaTrader 5
- MyForex: Exporting historical data from MetaTrader
- NinjaTrader forum: downloading historical minute data from Interactive Brokers
- NinjaTrader forum: Interactive Brokers intraday data
This post is based on public sources as of November 8, 2026. Found a mistake? Write to info@setupbook.io.