Account Currency & Sizing

Exact Account-Currency P&L, Margin & Lot Sizing on MT5 Cross Pairs

Backtesting JPY or GBP crosses in a USD or EUR account without historical FX conversion distorts pip value, lot sizing, margin, and stop-out levels.

5 min read · Updated: 2026-11-13

Key Engineering Takeaways

  • Raw quote-currency P&L must be converted into your account currency (USD, EUR, JPY) at the historical exchange rate.
  • Direct pairs containing the account currency derive exact conversion rates from their own tick stream.
  • Cross pairs use an imported conversion series (e.g., USDJPY when testing GBPJPY in a USD account) for exact MT5 parity.

1. Why Unconverted Quote P&L Breaks JPY and Cross Backtests

Treating raw JPY points as USD or EUR inflates nominal gains and losses by two orders of magnitude and corrupts percentage risk sizing.

Even on EURGBP in a USD account, historical GBPUSD fluctuations materially shift pip value over multi-year tests.

2. Exact Conversion Hierarchy

When the traded pair includes your account currency, Azimuth Studio derives exact tick-level conversion automatically; for pure crosses, importing the matching conversion pair provides historical precision.

RoboFolio enforces a single shared account currency across all assembled strategies so combined drawdown and weights remain exact.

3. Broker Lot-Step Rounding and Minimum Capital

MetaTrader 5 rounds order volume to the symbol's lot step (typically 0.01 lot).

When allocating portfolio weights, check the minimum capital indicator so the smallest-weighted slot still clears 0.01 lot cleanly.

Formula & Verification Protocol
Pip_Value_Account(t) = (pip_size * contract_size) * Quote_to_Account_Rate(t)
Raw_Lots(t) = (Account_Equity(t) * risk_pct) / (SL_pips * Pip_Value_Account(t))
MT5_Lots = max(lot_min, floor(Raw_Lots / lot_step) * lot_step)

Frequently Asked Questions

Which extra file should I import to backtest GBPJPY in a USD account?

Import your broker's USDJPY historical series so quote-currency JPY cashflows convert accurately at each timestamp.

Can RoboFolio mix strategies saved in EUR and USD?

No. RoboFolio requires identical account currencies across all selected strategies to prevent distorted portfolio curves.

Related Technical Guides

Run this verification protocol on your own MT5 ticks

Import your own CSV/Parquet tick series or inspect the built-in synthetic DEMOFX dataset once signed in.