Market data: where prices come from, and how they become bars
Where every backtest's prices come from, how much history each instrument has, and how recorded ticks become the bars and the clock your rules read.
Every number a backtest produces starts from recorded prices. This page says which prices are used, where they come from, how far back they go, how fresh they are, what is known to be wrong with them, and how they become the bars and the clock your rules read.
At a glance
| Backtest | Live deployment | |
|---|---|---|
| Price source | Dukascopy's historical tick data, for every instrument | Your broker's cTrader price feed |
| Smallest unit | A recorded tick: time to the millisecond (UTC), bid, ask, two volume figures | A broker quote: bid and ask, stamped with the broker server's time |
| History before your start date | The stored Dukascopy history | The broker's own bars |
| Bars | Bid prices. 1-minute bars are built from ticks and every other timeframe from 1-minute bars | The same rules, applied to the broker's ticks |
| Bar volume | The number of ticks in the bar | The number of ticks in the bar, as your broker counts them |
One source for every backtest
- Every backtest runs on Dukascopy's public historical tick data, which the platform downloads hour by hour and stores. This holds for both data modes ("Tick by tick" and "Bar by bar (M1)"). No second data vendor is used, and a backtest never uses a broker's history.
- "Bar by bar (M1)" reads 1-minute bars that the platform builds from those same ticks, so both modes see the same market.
- You cannot upload your own price data or backtest on a broker's history. The instruments API is read-only.
- Live deployments trade on your broker's cTrader feed, which comes from a different vendor. Its spreads, gaps around the weekly open, quiet periods and volume all differ from the Dukascopy history the strategy was tested on.
- Results state this. The run report and the optimization page show "Simulated on Dukascopy tick data — your broker's live fills will differ." The replay's account panel shows "Simulated on Dukascopy tick data. Spreads, swaps and fills are simulations; your broker's live conditions will differ."
- The parity tests against the MetaTrader 5 Strategy Tester load these same Dukascopy ticks into MT5. They verify how the engine trades (compared with MetaTrader 5). They do not show that Dukascopy's prices equal your broker's.
What a recorded tick contains
- Each tick holds a UTC timestamp to the millisecond, a bid, an ask, and Dukascopy's two volume figures (bid side and ask side).
- Prices are stored with the precision Dukascopy publishes (its "data decimals"). A backtest reads them rounded to the instrument's price digits where Dukascopy publishes more decimals (two precisions).
- Ticks stay in Dukascopy's order, and ticks that share a millisecond are all kept.
- A bar's volume does not use these two figures: it is the number of ticks in the bar (volume).
Prices are used as published
- No filter removes or corrects individual prices, so a spike that is in Dukascopy's history is also in your backtest.
- The platform applies no adjustment for splits, dividends or contract rolls.
- The stored history currently has these known defects. Backtests over these windows run on these prices.
| Instrument | Where (UTC) | What the stored prices show |
|---|---|---|
| COPPERCMDUSD | between 2012-03-01 23:59 and 2012-03-02 00:00 | The price level steps down by exactly ×0.1 (about 39.33 → 3.934). Copper traded near $3.9/lb, so the earlier side looks 10× too high. |
| DIESELCMDUSD | across a two-week gap, 2017-12-11 16:30 → 2017-12-26 00:56 | The price level steps down by exactly ×0.01 (about 57,175 → 573). The earlier side looks 100× too high. |
| CADJPY | 2007-03-30 → 2007-04-04 | Ten single-minute prints near 0.7–2.4 inside a series around 102. Each is gone the next minute. |
How much history, and how fresh
- The earliest possible date is 2003-01-01 UTC. Each instrument's history starts at the first tick Dukascopy has for it, so the start date differs by instrument.
- The instrument picker shows each symbol's history under its name as month and year in UTC (for example "Jan 2015 – Aug 2026"). If none has been ingested, it shows "No market history yet".
- New data arrives once a day. A job starting at 00:30 UTC adds every instrument's ticks up to the end of the previous UTC day. The current UTC day is never available.
- The dates you pick are UTC calendar days, whatever your strategy's reference timezone. A run covers 00:00:00 UTC on the first day to 23:59:59 UTC on the last.
- The run dialog only offers dates where every instrument the strategy reads or trades has data: from the latest first tick to the earliest last tick. It names the symbol that sets the limit ("History starts {month} because of {symbol}…"). If the instruments share no history, you cannot start the run from the dialog.
- The server does not check the dates against the data. A run started another way, for example by a connected AI app, is not refused over a period that has no data. That stretch has nothing to process and produces no trades.
- Every plan you can buy reaches the full history. Only a Starter plan from before the base plan has a window, on the most recent 10 years counted back from today, until it moves: a run that starts earlier is refused, whatever its length (plans → backtests). Every run is also capped in length on every plan (limits that can stop a run).
Corrections and reproducing a result
- When a defect in the stored history is fixed, the data is corrected in place. A result does not record which version of the data it ran on. Re-running an old backtest after a correction can therefore give a different result, and the ticks a replay shows are read from storage when you open it.
Instruments
There are 70 instruments: 37 forex pairs, 5 metals, 10 commodities, 17 index CFDs and 1 cryptocurrency. The table gives each one's asset class, quote currency, price digits and contract size per lot, and the symbol each reviewed broker uses for it.
| Instrument | Class | Quote currency | Price digits | Data decimals | Contract size | FP Markets | FTMO | IC Markets (EU) | Spotware |
|---|---|---|---|---|---|---|---|---|---|
EURUSD | Forex | USD | 5 | 5 | 100,000 | EURUSD | EURUSD | EURUSD | EURUSD |
GBPUSD | Forex | USD | 5 | 5 | 100,000 | GBPUSD | GBPUSD | GBPUSD | GBPUSD |
NZDUSD | Forex | USD | 5 | 5 | 100,000 | NZDUSD | NZDUSD | NZDUSD | NZDUSD |
AUDUSD | Forex | USD | 5 | 5 | 100,000 | AUDUSD | AUDUSD | AUDUSD | AUDUSD |
USDCAD | Forex | CAD | 5 | 5 | 100,000 | USDCAD | USDCAD | USDCAD | USDCAD |
USDJPY | Forex | JPY | 3 | 3 | 100,000 | USDJPY | USDJPY | USDJPY | USDJPY |
USDCHF | Forex | CHF | 5 | 5 | 100,000 | USDCHF | USDCHF | USDCHF | USDCHF |
USDHKD | Forex | HKD | 4 | 5 | 100,000 | USDHKD | USDHKD | USDHKD | not carried |
AUDCHF | Forex | CHF | 5 | 5 | 100,000 | AUDCHF | AUDCHF | AUDCHF | AUDCHF |
AUDJPY | Forex | JPY | 3 | 3 | 100,000 | AUDJPY | AUDJPY | AUDJPY | AUDJPY |
AUDNZD | Forex | NZD | 5 | 5 | 100,000 | AUDNZD | AUDNZD | AUDNZD | AUDNZD |
CADCHF | Forex | CHF | 5 | 5 | 100,000 | CADCHF | CADCHF | CADCHF | CADCHF |
CADJPY | Forex | JPY | 3 | 3 | 100,000 | CADJPY | CADJPY | CADJPY | CADJPY |
CHFJPY | Forex | JPY | 3 | 3 | 100,000 | CHFJPY | CHFJPY | CHFJPY | CHFJPY |
EURAUD | Forex | AUD | 5 | 5 | 100,000 | EURAUD | EURAUD | EURAUD | EURAUD |
EURCAD | Forex | CAD | 5 | 5 | 100,000 | EURCAD | EURCAD | EURCAD | EURCAD |
EURCHF | Forex | CHF | 5 | 5 | 100,000 | EURCHF | EURCHF | EURCHF | EURCHF |
EURGBP | Forex | GBP | 5 | 5 | 100,000 | EURGBP | EURGBP | EURGBP | EURGBP |
EURJPY | Forex | JPY | 3 | 3 | 100,000 | EURJPY | EURJPY | EURJPY | EURJPY |
EURNZD | Forex | NZD | 5 | 5 | 100,000 | EURNZD | EURNZD | EURNZD | EURNZD |
GBPAUD | Forex | AUD | 5 | 5 | 100,000 | GBPAUD | GBPAUD | GBPAUD | GBPAUD |
GBPCAD | Forex | CAD | 5 | 5 | 100,000 | GBPCAD | GBPCAD | GBPCAD | GBPCAD |
GBPCHF | Forex | CHF | 5 | 5 | 100,000 | GBPCHF | GBPCHF | GBPCHF | GBPCHF |
GBPJPY | Forex | JPY | 3 | 3 | 100,000 | GBPJPY | GBPJPY | GBPJPY | GBPJPY |
GBPNZD | Forex | NZD | 5 | 5 | 100,000 | GBPNZD | GBPNZD | GBPNZD | GBPNZD |
NZDCAD | Forex | CAD | 5 | 5 | 100,000 | NZDCAD | NZDCAD | NZDCAD | NZDCAD |
NZDCHF | Forex | CHF | 5 | 5 | 100,000 | NZDCHF | NZDCHF | NZDCHF | NZDCHF |
NZDJPY | Forex | JPY | 3 | 3 | 100,000 | NZDJPY | NZDJPY | NZDJPY | NZDJPY |
USDSGD | Forex | SGD | 5 | 5 | 100,000 | USDSGD | USDSGD | USDSGD | USDSGD |
XAUUSD | Metals | USD | 2 | 3 | 100 | XAUUSD | XAUUSD | XAUUSD | XAUUSD |
XAGUSD | Metals | USD | 3 | 3 | 5,000 | XAGUSD | XAGUSD | XAGUSD | XAGUSD |
AUDCAD | Forex | CAD | 5 | 5 | 100,000 | AUDCAD | AUDCAD | AUDCAD | AUDCAD |
AUDSGD | Forex | SGD | 5 | 5 | 100,000 | AUDSGD | AUDSGD | AUDSGD | AUDSGD |
CADHKD | Forex | HKD | 5 | 5 | 100,000 | CADHKD | not carried | not carried | not carried |
CHFSGD | Forex | SGD | 5 | 5 | 100,000 | CHFSGD | CHFSGD | CHFSGD | CHFSGD |
EURHKD | Forex | HKD | 5 | 5 | 100,000 | EURHKD | EURHKD | EURHKD | EURHKD |
EURSGD | Forex | SGD | 5 | 5 | 100,000 | EURSGD | EURSGD | EURSGD | EURSGD |
HKDJPY | Forex | JPY | 3 | 5 | 100,000 | HKDJPY | HKDJPY | not carried | not carried |
SGDJPY | Forex | JPY | 3 | 3 | 100,000 | SGDJPY | SGDJPY | SGDJPY | SGDJPY |
COPPERCMDUSD | Metals | USD | 4 | 4 | 100 | not carried | not carried | not carried | not carried |
XPDCMDUSD | Metals | USD | 2 | 3 | 100 | XPDUSD | XPDUSD | XPDUSD | XPDUSD |
XPTCMDUSD | Metals | USD | 2 | 3 | 100 | XPTUSD | XPTUSD | XPTUSD | XPTUSD |
BRENTCMDUSD | Commodities | USD | 2 | 3 | 100 | XBRUSD | UKOIL.cash | XBRUSD | XBRUSD |
LIGHTCMDUSD | Commodities | USD | 2 | 3 | 100 | XTIUSD | USOIL.cash | XTIUSD | XTIUSD |
GASCMDUSD | Commodities | USD | 3 | 4 | 10,000 | XNGUSD | NATGAS.cash | XNGUSD | NAT.GAS |
DIESELCMDUSD | Commodities | USD | 3 | 3 | 4 | not carried | not carried | not carried | not carried |
COCOACMDUSD | Commodities | USD | 1 | 3 | 1 | COCOA | COCOA.c | not carried | not carried |
SUGARCMDUSD | Commodities | USD | 3 | 3 | 1 | not carried | not carried | not carried | not carried |
COFFEECMDUSX | Commodities | USD | 2 | 3 | 10 | not carried | COFFEE.c | not carried | not carried |
COTTONCMDUSX | Commodities | USD | 2 | 3 | 100 | not carried | COTTON.c | not carried | not carried |
OJUICECMDUSX | Commodities | USD | 3 | 3 | 20 | not carried | not carried | not carried | not carried |
SOYBEANCMDUSX | Commodities | USD | 2 | 3 | 4 | SOYBEANS | SOYBEAN.c | not carried | not carried |
USA30IDXUSD | Indices | USD | 2 | 3 | 1 | US30 | US30.cash | US30 | US 30 |
USATECHIDXUSD | Indices | USD | 2 | 3 | 1 | US100 | US100.cash | USTEC | US TECH 100 |
USA500IDXUSD | Indices | USD | 2 | 3 | 1 | US500 | US500.cash | US500 | US 500 |
USSC2000IDXUSD | Indices | USD | 2 | 3 | 1 | RUS2000 | US2000.cash | US2000 | not carried |
DOLLARIDXUSD | Indices | USD | 3 | 3 | 1 | not carried | DXY.cash | not carried | not carried |
HKGIDXHKD | Indices | HKD | 2 | 3 | 1 | HK50 | HK50.cash | HK50 | HONG KONG 50 |
JPNIDXJPY | Indices | JPY | 2 | 3 | 1 | JP225 | JP225.cash | JP225 | JAPAN 225 |
AUSIDXAUD | Indices | AUD | 2 | 3 | 1 | AUS200 | AUS200.cash | AUS200 | AUSTRALIA 200 |
CHIIDXUSD | Indices | USD | 2 | 3 | 1 | CHINA50 | not carried | CHINA50 | not carried |
SGDIDXSGD | Indices | SGD | 2 | 3 | 1 | not carried | not carried | SG30 | not carried |
DEUIDXEUR | Indices | EUR | 2 | 3 | 1 | GER40 | GER40.cash | DE40 | GERMANY 40 |
FRAIDXEUR | Indices | EUR | 2 | 3 | 1 | FRA40 | FRA40.cash | F40 | FRANCE 40 |
EUSIDXEUR | Indices | EUR | 2 | 3 | 1 | not carried | EU50.cash | STOXX50 | EUROPE 50 |
GBRIDXGBP | Indices | GBP | 2 | 3 | 1 | UK100 | UK100.cash | UK100 | UK 100 |
ESPIDXEUR | Indices | EUR | 2 | 3 | 1 | SPA35 | SPN35.cash | ES35 | SPAIN 35 |
CHEIDXCHF | Indices | CHF | 2 | 3 | 1 | not carried | not carried | SWI20 | SWITZERLAND 20 |
NLDIDXEUR | Indices | EUR | 2 | 3 | 1 | not carried | N25.cash | NETH25 | not carried |
BTCUSD | Crypto | USD | 2 | 1 | 1 | BTCUSD | BTCUSD | BTCUSD | BTCUSD |
Two precisions
Price digits are the reference broker's price grid. The engine rounds every price it computes to this many decimals: stop loss, take profit, pending-order price and trailing-stop level. It rounds to the nearest value, and an exact half goes away from zero, as MetaTrader 5 does; live deployments round the same way (comparison).
Data decimals are the precision Dukascopy publishes. Where Dukascopy publishes more decimals than the grid, a backtest reads every recorded price rounded to the price digits, as a broker quotes it: each tick's bid and ask, and each bar's open, high, low and close (an exact half goes away from zero). A bar's recorded spread is an average, not a price, and is kept as recorded. When a virtual symbol sets the digits, its digits are the grid. The two differ on 29 instruments:
- The index CFDs other than DOLLARIDXUSD, and XAUUSD, XPDCMDUSD, XPTCMDUSD, BRENTCMDUSD, LIGHTCMDUSD, SOYBEANCMDUSX, COFFEECMDUSX and COTTONCMDUSX, carry 3 decimals against a grid of 2.
- COCOACMDUSD carries 3 against 1.
- GASCMDUSD carries 4 against 3.
- USDHKD carries 5 against 4.
- HKDJPY carries 5 against 3.
- BTCUSD carries 1 against 2, so its prices are read as recorded.
A US500 price recorded at 7520.518 is read as 7520.52, so a market fill lands on the same 0.01 grid as its stop. The chart and the replay show the stored prices; connected AI apps read a run's bars on the grid, as its rules read them, and say so.
One point is 10^-digits of the price grid: 0.00001 on EURUSD, 0.001 on USDJPY and 0.01 on US500. Spreads and markups you enter in points use this size. A virtual symbol that changes the digits changes the point to 10^-(its digits).
Contract sizes and volume limits
- COFFEECMDUSX, COTTONCMDUSX, OJUICECMDUSX and SOYBEANCMDUSX are priced in US cents (per lb, or per bushel for soybeans), as Dukascopy and cTrader brokers quote them. Their contract sizes absorb the cents, so price × contract size comes out in US dollars. "USX" is part of the name, not a currency.
- The catalog's contract sizes are the reference broker's lots (IC Markets (EU)), not Dukascopy's: palladium and platinum trade 100 oz per lot and natural gas 10,000 MMBTU per lot.
- A backtest uses the catalog's contract size unless you attach a virtual symbol (broker preset) that sets one. A live deployment always uses the broker's own contract size. Compare like with like before you read P&L.
- Every catalog row allows a minimum of 0.01 lots in steps of 0.01, and states no maximum: without a virtual symbol, the only bound on an order's size is the margin it needs. Many brokers require larger minimums on indices and softs, and every broker has a maximum. A virtual symbol brings a broker's real minimum, maximum and step into a backtest. Live uses the broker's own limits.
- The catalog sets no costs and no margin rates: those come from a virtual symbol. A run without one charges only the recorded spread and margins everything at the run's leverage. Choosing a broker preset that matches your broker is how you make a backtest realistic.
Spread figures you may see
- A backtest without a spread override uses the spread recorded in the data, shown in the cost model as "Historical (recorded market spread)".
- The virtual-symbol editor's cost strip shows the spread a run will charge. With the spread override empty it reads "Recorded": each tick's own spread, plus the markup when you set one ("Recorded + $0.50"). With an override, it prices the override plus the markup for 1.0 lot. The catalog has no spread figure of its own.
Asset classes
- Index CFDs are Dukascopy's CFD prices: over-the-counter quotes derived from the underlying, not exchange trades. They are quoted in index points, one CFD per lot.
- BTCUSD is the only cryptocurrency. It trades every day, including weekends, and its weekend hours are stored like any others.
- The platform has no trading calendar: no exchange hours, sessions or holidays, for any instrument, and none is planned for now. A bar exists where Dukascopy has ticks and nowhere else. The engine acts only when a price arrives (on a tick in tick mode and live, on a 1-minute bar in bar mode), so nothing happens while a market has no prices.
Your broker's symbols (live)
A deployment maps each instrument to a symbol on your cTrader account. Three rules are tried in order, and the first match wins:
- The platform's reviewed list for your broker. It names the broker's symbol or marks the instrument "not carried".
- The currency pair the name implies (forex pairs, XAUUSD, XAGUSD, BTCUSD), matched against the broker's base and quote assets, whatever the broker calls the symbol.
- The name, ignoring case and separators. EUR/USD reads as EURUSD, but a suffix stays part of the name: EURUSD.r reads as EURUSDR.
So the currency pairs, XAUUSD, XAGUSD and BTCUSD map at any cTrader broker that lists them. The other names (indices, commodities, and the palladium, platinum and copper rows: USA500IDXUSD, BRENTCMDUSD, XPDCMDUSD, …) imply no currency pair, so only a reviewed list binds them: a deploy that uses one on a broker without a reviewed binding is refused ("We have not reviewed broker '{broker}''s symbol for {symbol} yet, so it cannot be traded there. Forex pairs, gold, silver and BTC deploy on any broker. Please contact support to get this broker reviewed as soon as possible.").
Reviewed lists exist for IC Markets (EU), FP Markets, FTMO and Spotware (cTrader's own demo broker; reviewed on a demo account, so it ships no cost preset). The instrument table shows the symbol each broker uses, or "not carried".
IC Markets (Global) has a shorter list: the index and commodity names of IC Markets (EU), carried over and still being checked on an IC Markets (Global) account. Its currency pairs, gold, silver and BTC map by currency pair, as at any broker. It is not in the instrument table until the check is done.
You can still backtest an instrument your broker does not carry, but you cannot deploy it on that broker: the deploy is refused ("Broker '{broker}' does not carry {symbol} ({note}), so the strategy cannot be deployed to this account."), and an instrument your broker does not list at all stops the deployment at start. Both checks apply only when you deploy.
Live, the broker's own digits, point size, contract size and volume limits replace the catalog's for every instrument the strategy uses.
Not yet documented
- The first date of history for each instrument. The picker already shows it; this page does not list it yet.
- Whether Dukascopy adjusts its index and commodity CFD series for contract rolls or dividends.
- Whether Dukascopy's BTCUSD weekend coverage is complete.
- For the copper and diesel level steps: which side is wrong, and since when.
- Whether the stored history is missing hours for which Dukascopy had prices. The product does not show gaps per instrument.
How bars are built
Bars are built from the bid. A 1-minute bar holds every tick from hh:mm:00.000 up to, but not including, the next minute (UTC). Its open is the first bid, its high the highest bid, its low the lowest bid and its close the last bid.
Each 1-minute bar also stores the minute's average spread, which is the plain average of (ask − bid) over its ticks. It also stores the number of its ticks, which is the bar's volume (volume).
Every other timeframe is built from 1-minute bars on your strategy's clock (see below):
- open is the first 1-minute open
- high and low are the extremes
- close is the last 1-minute close
- volume is the sum of the 1-minute volumes
- spread is the plain average of the 1-minute spreads: each minute counts once, however many ticks it had.
There are no empty bars. A minute with no ticks has no 1-minute bar, and a period with no 1-minute bars has no bar. Shifts and indicator periods therefore count bars that exist, not clock time. Shift 1 on a D1 series is the last earlier day that had prices, and an indicator over 20 bars can span a gap.
There are 21 timeframes: M1, M2, M3, M4, M5, M6, M10, M12, M15, M20, M30, H1, H2, H3, H4, H6, H8, H12, D1, W1, and MN1. Every intraday period divides a day exactly, so there is no M45. There are no seconds timeframes.
Volume: the number of ticks in a bar
- A bar's volume is its tick count: how many ticks (price updates) arrived inside the bar, each counted once, whatever its price. It is not the traded volume, and it is not an amount of money or lots. The definition is the same in a backtest and live.
- A bar above one minute holds the sum of its 1-minute bars' volumes.
| Backtest | Live | |
|---|---|---|
| A closed 1-minute bar | The number of stored ticks in the minute | Your broker's count for the minute, from the 1-minute bar your broker sends with its prices. A minute your broker never stated takes the number of prices the deployment received in it. |
| A closed bar above one minute | The sum of its 1-minute bars | The sum of its 1-minute bars |
| The bar in progress | Tick mode: its closed minutes, plus the ticks of the current minute so far. Bar mode: the 1-minute bars processed so far; a 1-minute series reads the minute that just closed, with its full count | Its closed minutes, plus your broker's count for the current minute so far (or the prices received in it, while your broker has stated none) |
- The bar in progress carries its volume so far. In an On Tick rule,
[0]of Candle Data's Volume and of the Volumes indicator's volume line grows while the bar forms. The other indicators that read volume, and an indicator whose applied price is Volume, move both ways as the bar's prices and volume change. Live, the count of the minute in progress can also step, up or down, when your broker's first stated count replaces the prices received. - The minute a run starts in. In a tick-mode backtest and in a deployment, the minute the run starts in counts the ticks from the start until the minute closes; from then on it holds its full count. Bar mode takes that minute's whole stored bar. The run dialog and the optimization dialog start a run at 00:00 UTC, on a minute's first instant; a run started through the API or the AI assistant, and a hold-out run, can start at any instant.
- A late count, live. When your broker's bar for a minute arrives after the minute has closed, the stored 1-minute bar is corrected. So is a higher-timeframe bar that had already closed with that minute. A rule evaluated at that close has already read the count held then.
- The number depends on the price feed. Dukascopy and each broker deliver different numbers of ticks, so the same calendar bar has one volume in a backtest and another at each broker. Compare volume with its own earlier values or its average, never with a fixed number tuned on one feed. A volume-weighted calculation (VWAP, the Money Flow Index) is weighted by these counts too.
- In the strategy builder, a variable that reads volume carries a "volume varies by feed" badge for this reason: Candle Data's Volume, an indicator whose applied price is Volume, and every indicator that reads the bar's volume (indicators that read volume).
- A backtest keeps the volume it was run with. A run made before the tick count was introduced (November 2026) read a bar's volume as the sum of Dukascopy's bid-side volume figure over the bar's ticks, and it is not recomputed: re-run it to get the tick count. Its chart reads the stored data as it is today, so its candles show the tick count, while its results, and a replay's indicator lines, stay as the run computed them.
Your strategy's clock
Every timestamp is a UTC instant. Your strategy's Reference timezone decides where periods start and how time-of-day rules read the clock.
Only IANA zones whose standard offset is a whole number of hours are allowed, plus New York close (below); others are refused. New strategies created in the app start on Europe/Bucharest (EET: UTC+2, or UTC+3 under European summer time). A strategy created without a zone, for example through the API, uses UTC. The picker offers a fixed list of 26 zones. The strategy's header line shows its zone, and a backtest or optimization report names the zone of the revision it ran in its Setup row.
New York close (MT5 brokers) is the clock MT5 brokers keep their servers on: New York time plus seven hours, so UTC+2, and UTC+3 while the United States is on daylight saving time (second Sunday of March to first Sunday of November; before 2007, first Sunday of April to last Sunday of October). Every day ends at 17:00 New York, the forex market's daily close, and a trading week has exactly five daily bars, Monday to Friday, whatever the European clock changes do. Its id is
NewYorkClose.Where each period starts on your strategy's clock:
- M1 to H1 periods start at the same instants as in UTC.
- H2, H3, H4, H6, H8 and H12 follow the local clock's grid from local midnight.
- D1 starts at local midnight, W1 at local Monday 00:00, and MN1 at local 00:00 on the 1st.
Daylight saving time:
- If a boundary time does not exist on a spring-forward day, the period starts at the first local minute that does.
- If a boundary time occurs twice on a fall-back day, it is read as standard time.
- A local day lasts 23 or 25 hours on the days the clock changes.
With UTC as the reference timezone, the Sunday-evening market reopen forms its own short D1 bar. Weeks start on Monday 00:00, so those Sunday ticks belong to the week that is ending. The W1 close is therefore the last price before Monday 00:00 UTC, after the reopen, not Friday's close.
With Europe/Bucharest, the reopen normally falls on Monday 00:00 local, so no Sunday bar forms. The forex market reopens at a fixed New York time, though. In the weeks when New York and Europe change their clocks on different dates (in March, and from late October to early November), the reopen falls at 23:00 on Sunday local time and a one-hour Sunday bar forms. MT5 brokers' servers follow the US clock changes and do not get it.
With New York close, the reopen always falls on Monday 00:00 local and no Sunday bar ever forms: the daily and weekly bars are the ones an MT5 broker's terminal shows.
The Session P&L and Trade Count periods are not all anchored like the bars:
| Period | Starts at | Matches the bars? |
|---|---|---|
| Daily | local midnight | Yes, like D1 |
| Monthly | local 00:00 on the 1st | Yes, like MN1 |
| Weekly | local Monday 00:00 | Yes, like W1 |
| Hourly | on the hour | Yes (the same in every allowed zone) |
| 4-hourly | local 00:00, 04:00, 08:00, 12:00, 16:00 and 20:00 | Yes, like H4 |
- A Session Range window is read on your reference timezone (Session Range).
From recorded data to your rules
How each backtest mode steps through this data, when your rules run, what a rule can read at each moment and how a run warms up are on The execution model: tick mode, bar mode, when rules run, what a rule can see, warm-up and several symbols. Fills over a gap are on Orders and fills, and the currency conversion a run needs, with the account currencies that cannot trade some instruments, on Costs and the account.
Live prices
A live deployment trades on your broker's cTrader prices, not on this data. How quotes are merged and time-stamped, how live bars and their volume are built, the history a deployment loads at start, and what happens when prices stop are on Live execution. How this data compares with your MetaTrader 5 history is on the MT5 comparison.
Inspecting the data
- The replay of a run shows the stored ticks (bid and ask) for the run's instruments and dates; in a tick-mode run's replay, the forming 1-minute candle counts them into its volume. The ticks are read from storage when you open the replay.
- There is no bulk download of ticks or bars.
Not yet documented
- Whether the higher-timeframe history a live deployment loads at start (H4, H12, D1, W1, MN1) uses your reference timezone's period boundaries, as the bars it builds afterwards do.
- How bars of an instrument that trades through the night (BTCUSD) are formed during the hour that repeats when your reference timezone's clock falls back.
- Whether the broker bars a live deployment loads at start are bid-based, like the bars the engine builds.
- How far a broker's tick count sits from Dukascopy's on the same bar. Not measured.
Questions?support@algotradinghub.io