New

11 tools. $557.98 if bought one by one. 5 new Premium desks inside.$557.98 one by one

$97 once$97See all 11See it
ProEA Lab · MT5, TradingView and trading research · Evidence standards
Journal

How to Export Chart Data from MT5 to CSV (Bars and Ticks)

MT5 can save a symbol's price history as CSV in two ways: the chart's bars with File → Save, or any timeframe's bars and the raw ticks from the Symbols window. Where each one lives, what caps it, and how to read the tick flags.

PL · 4 min read
Explainer cover titled Export MT5 chart data: one hour, any timeframe. Sixty simulated 1-minute gold bars rebuilt into four 15-minute bars inside dashed boxes, above an export preview listing the four CSV rows with date, time, open, high, low and close.
To export chart data from MT5, use File → Save (Ctrl+S) for the bars on the chart you have open, or right-click Market Watch → Symbols, pick the Bars or Ticks tab, choose the symbol and timeframe, click Request, then Export. Both save CSV. MT5 keeps all history as 1-minute bars and builds other timeframes from them; "Max bars in chart" caps how many bars it downloads.
One hour of history, three timeframes, one export.MT5 keeps minute bars and builds every other timeframe from them. Pick the timeframe you export.
2399.002401.002403.002405.002407.002409.0010:0010:1510:3010:45Symbols → Bars · M15 · 4 M15 barsEXPORT PREVIEW · 4 rows2026.10.08,10:00,2400.00,2404.70,2398.63,2403.932026.10.08,10:15,2403.93,2409.69,2403.36,2409.252026.10.08,10:30,2409.25,2409.45,2404.23,2404.49… 1 moreExport: 4 rows for the hour on M15. The H1 bar is O 2400.00 H 2409.69 L 2398.63 C2403.87 on every timeframe; only the row count changes.

Simulated minute bars, not market data. The preview shows only date, time and OHLC; the date is illustrative.

Read as text
  1. Request: MT5 downloads the symbol's history as 1-minute bars. Here, one simulated hour, 60 bars.
  2. M15: the terminal rebuilds every 15 minute bars into one, first open, highest high, lowest low, last close.
  3. Export: 4 rows for the hour on M15. The H1 bar is O 2400.00 H 2409.69 L 2398.63 C 2403.87 on every timeframe; only the row count changes.

How this window was chosen: MT5 stores the whole quote history as minute bars and calculates other timeframes from them; Request downloads the history once, and the number of bars it downloads is capped by "Max bars in chart". From the MT5 help on Market Watch, checked 2026-10-08. A timeframe's bar takes the first open, highest high, lowest low and last close of its minutes.

Two routes to a CSV

All from MetaQuotes' Market Watch help and hot keys, checked 2026-10-08.

You wantRouteNotes
The bars on this chartFile → Save, or Ctrl+SCSV, PRN or HTM
Bars for any symbol and timeframeMarket Watch → right-click → Symbols → Bars → Request → ExportDownloads from the broker's server first
Raw ticksSame window, Ticks tab → Request → ExportLarge; start with a short range

Your closed trades are a different export: that's the History tab, covered in how to export MT5 trade history.

Why the bar count is short

MT5 stores the whole quote history as minute bars and calculates the other timeframes from them, so switching timeframe doesn't change the download. "The maximum number of downloaded bars is limited by the 'Max bars in chart' parameter". It's under Tools → Options → Charts, and it takes effect after a restart (settings).

Use itRaise Max bars in chart, restart, then Request again before exporting a long history.

Watch outThe export only holds what the terminal downloaded.

Reading the tick flags

Each exported tick carries a flags number that says what changed. The values add up (Market Watch help, checked 2026-10-08):

FlagThe tick changed
2Bid
4Ask
8Last deal price
16Volume
32A buy trade made it
64A sell trade made it

So 6 is Bid and Ask, and 24 is last price and volume.

Same minutes underneath, whatever timeframe you export.

The prices are your broker's, on its server clock: see MT5 server time before you line the file up with another source.

Use this animation on your site.

Frequently asked questions

How do I export chart data from MT5?

For the chart you're looking at, File → Save (Ctrl+S) saves its bars as CSV, PRN or HTM. For a chosen symbol and timeframe, right-click Market Watch → Symbols, open the Bars tab, pick the timeframe, click Request, then Export.

How do I export tick data from MT5?

Same window, Ticks tab: pick the symbol, Request, then Export. Ticks are large and slow to download, MetaQuotes warns, so start with a short range.

Why does my MT5 export have fewer bars than I expected?

The number of bars MT5 downloads is capped by "Max bars in chart" (Tools → Options → Charts). Raise it, restart the terminal as the setting requires, and request again.

What do the numbers in the tick FLAGS column mean?

They add up: 2 the Bid changed, 4 the Ask, 8 the last deal price, 16 the volume, 32 a buy trade, 64 a sell trade. 6 means Bid and Ask both changed, per MetaQuotes' Market Watch help.

Does exporting a higher timeframe download different data?

No. MT5 stores the whole history as minute bars and calculates every other timeframe from them, so the download is the same; the export just has fewer, wider rows.

Continue reading

MT5 Server Time: Why Your Trade Times Are Hours Off

MT5 stamps every trade in your broker's server time, not yours. How to find your server's offset in one minute, convert any trade time to your clock, and the two stretches a year when the usual New York + 7 hours is wrong by an hour.

Oct 8 · ProEA Lab

Explainer cover titled MT5 server time: 16:30 on the server is 09:30 in New York, except twice a year. A 2026 timeline with the server's UTC+2 and UTC+3 stretches on EU dates above New York's UTC−5 and UTC−4 on US dates, and a step line that drops from 7 to 6 hours in the shaded weeks from 8 to 29 March and 25 October to 1 November.

Free Trading Journal Template: Excel and Google Sheets, Formulas Included

A free trading journal template for Excel and Google Sheets: eighteen columns, R multiples and win/loss computed for you, and a Summary sheet with expectancy, profit factor and the plan-followed split. Download it, delete three example rows, log tonight.

Oct 7 · ProEA Lab

Explainer cover titled A free journal that counts in R. On the left, the template's Trades sheet with its three example rows: EURUSD risk $100, result +$196, R multiple +1.96R, Win; XAUUSD risk $100, −$112, −1.12R, Loss; GBPUSD risk $100, −$163, −1.63R, Loss, plan broken. The R multiple and Win/Loss columns have grey formula headers, and under the table the R multiple formula =K/ABS(J) turns 196 ÷ 100 into +1.96R. On the right, the Summary reads 3 trades, 33.3% win rate and −0.26R expectancy, with the formula win rate times average win minus loss rate times average loss, and a small equity curve in R steps from 0 to +1.96R, +0.84R and −0.79R.

How to Export MT5 Trade History: HTML, Excel and PDF

Export MT5 trade history from Toolbox → History. Choose dates, save an HTML statement, and handle Excel, PDF, CSV, Mac, web terminal and MT4.

Jul 12 · ProEA Lab

An antique filing drawer of paper trading receipts under a desk lamp, one receipt lifted catching the light — poster titled Export the Record.