When neither currency is the account currency, the conversion uses the currency pair made up of the quote currency and the account currency. For example, a USD account buys 1 lot of EURGBP at 0.8600 and closes at 0.8640, making a profit of 400 GBP. With GBPUSD at 1.2700 at that time, this converts to 508 USD. If the account currency comes second in the conversion pair (e.g. GBPUSD), multiply; if it comes first (e.g. USDJPY), divide. (Prices are hypothetical.)