Skip to content
All library documents

Converting XAUUSD Trade Profits into a Euro Account

Article Quant Q&A · Author: overflaw

Summary

The document explains why the euro profit from an XAUUSD trade cannot be calculated from the gold price movement alone. A trade denominated in dollars creates exposure to the EUR/USD exchange rate when the account balance is in euros. The response describes the currency conversion at both ends of the trade: the dollar amount associated with the position is translated into euros at entry, and the dollar profit is converted at the rate prevailing when the position closes. The resulting euro amount depends on the exchange-rate movement during the holding period.

The example reports a short gold trade and a euro profit from a trading terminal, but does not provide the exchange rates, contract specifications, or a numerical derivation that reproduces that figure. It also clarifies that leverage does not, by itself, determine profit from a given price move and position size. Trading a gold instrument quoted in euros could avoid this particular dollar conversion exposure, though instrument terms and broker calculations may differ.

Key ideas

  • A gold trade quoted in dollars exposes a euro-funded account to EUR/USD movements.
  • The dollar amount associated with a position is converted into the account currency using exchange rates relevant to the conversion.
  • The euro result may reflect both the gold price change and currency conversion during the trade.
  • The discussion gives a conversion concept but lacks the inputs needed to reproduce the terminal’s reported profit.

Tags

Full text
# Complete formula for calculating forex pip value for XAUUSD with account funded in euros


# Complete formula for calculating forex pip value for XAUUSD with account funded in euros












I'm currently developping forex robot using Python API for Metatrader 5. Among different things, this robot places trades given by external signals (with price, SL and TP).

I use euro funded account, trade XAUUSD, and have a 1:100 leverage ratio. In order to implement 1% strategy (meaning never risk more than 1% of capital in one trade), I would like to calculate precise SL/TP level in euro, my account money, and fail to compute same results as given in my MT5 terminal.

If I take a trade as example (informations sourced from MT5):

- SELL XAUUSD, price \$1849.32

- lot size : 0.01

- date : 2022.05.31 13:31:05

- closed at price $1848.03

- profit announced by MT5 : 2,4€

What's the formula used to calculate this amount, placing leverage and exchange rate from USD to EUR ?

My method so far:

AFAIK, pip value for an USD account with USD as last currency in pair (i.e XAUUSD) is:

Applied to given trade above (result in dollars):

Total trade value (in dollars, without any leverage)

From this point, I can't find any way to include leverage and exchange rate for finding this 2,4€ profit.

## Answer by babelproofreader (score 1)

https://quant.stackexchange.com/a/71119

You'll need to account for the change in the EUR_USD rate over the duration of the trade.

When you initiate the trade you are shorting XAU and going long USD, which means you buy USD at the going EUR_USD rate at trade entry time, which will also mean a EUR "debit" to your account since your account is denominated in EUR.

When you exit the trade, you get your USD profit which is then converted or "credited" to your EUR denominated account at the EUR_USD rate prevailing at trade exit time. Your total profit in the trade (in your example 2.4 EUR) is then the difference between these "credit" and "debit" amounts in EUR.

Implicit in all this is the fact that not only are you placing an XAU trade but also a EUR_USD trade, i.e. the classic "currency risk" when you trade in a different currency than that in which your base account is denominated. I believe, without being in a position to prove it, that this hidden risk trips up many traders.

You could, of course, avoid this "currency risk" by shorting XAU_EUR instead as a standalone XAU play.

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.