Complete Suite: all 12 tools. 6 Premium desks inside.All 12 tools $606.98 one by one

$606.98 one by one $299 once Save $307.98Get the SuiteGet 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.

· 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. Once that statement is saved, the free MT5 report analyzer reads it in your browser; a Bars or Ticks CSV from this page isn't one.

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

Prop Firm Trading Journal: the Daily Loss Limit Beside Every Trade.

A free prop firm trading journal for Excel and Google Sheets: the free template's eighteen columns plus your account, its daily loss limit, the day's closed P/L before each trade and the room left, with OK or OVER on every trade's risk. Two worked days on a 50K evaluation, and where your firm counts the day differently.

Oct 29 · ProEA Lab

Explainer cover titled A prop firm journal that checks the room: the workbook's five example rows on an account called 50K evaluation with a $1,000 daily loss limit. Day one, 5 October: +$450, −$260 and a −$4.20 scratch, every risk OK, the day ending at +$185.80. Day two, 6 October: a −$508.40 stop-out leaves $491.60 of room, the next trade risks $600 and is marked OVER, and the day ends at −$1,118.40, past the limit.

Swing Trading Journal Template: Excel and Google Sheets, for Trades Held for Days

A free swing trading journal for Excel and Google Sheets: our template's 18 columns plus Exit date, Days held, Held over a weekend? and Gapped past the stop?. A worked AMD trade stopped at 149 instead of 152 after a weekend gap, a gold short closed early, the Summary's weekend and gap lines, and what to review each week.

Oct 29 · ProEA Lab

Explainer cover titled A swing trading journal that counts the gaps: the workbook's AMD example on a price line, long 25 shares on Thursday 8 October at 160 with the stop at 152, a planned risk of $8 a share times 25 = $200, and Monday's gap of $3 a share past the stop to a fill at 149, for −$277 and −1.385R, not −1R. Below, the three example rows: MSFT held 9 days over a weekend for +2.99R, AMD held 4 days over a weekend and gapped past the stop for −1.385R, and XAUUSD held 2 days within the week for +0.709R.

TraderSync vs TradeZella vs TradesViz vs Tradervue vs Edgewonk

Five subscription journals on the facts that decide between them: the price, how MT5 trades get in, the AI allowance, replay, a free plan and the refund terms, plus what three years cost. TradeZella, TradesViz and Edgewonk read on 26 November 2026, Tradervue on 29 October; TraderSync's from 3 October, because a bot check blocked our reader since.

Oct 29 · ProEA Lab

Explainer cover titled Five trading journals, side by side: a table of TradeZella, TraderSync, Tradervue, TradesViz and Edgewonk, each dated to its read (26 November 2026, Tradervue 29 October 2026, TraderSync 3 October 2026). For each it shows the price (TradeZella $35–$59 a month on its pricing page, TraderSync $29.95–$79.95, Tradervue $29.95–$49.95, TradesViz $19.99–$29.99, Edgewonk $35 a month or $197 a year), how MT5 trades get in (investor password for TradeZella and TradesViz, auto-sync listed for TraderSync, HTML upload for Tradervue, an Expert Advisor in early access for Edgewonk), the AI allowance, where replay starts, the free plan or trial, and the refund terms: TradeZella's discretionary, Edgewonk's a 14-day refund period.