MT5 Trading Report – Add Net Profit/Loss in EUR Using Daily ECB Rate (for my austrian tax report)

Tarea técnica

I need a report based on the original MetaTrader 5 (MT5) account statement (trading history export).
The original structure and all columns of the MT5 report must remain unchanged.

Only new columns may be added – as described below.


✅ Additional columns to be added:

  1. Fixed Fees (optional)
    – For example, in swap-free accounts or other broker-specific charges not already listed as swap or commission.

  2. Net USD
    – The net result per trade in USD, calculated as:
    Net USD = Profit − Swap − Commission − Fixed Fees

  3. ECB Rate (USD/EUR)
    – The official daily reference exchange rate of the European Central Bank, based on the trade closing date. The rates are at the ezb website („**ECB SDW REST-API**, **EXR**, **eurofxref XML**“)

  4. EUR (Net)
    – The converted net amount in EUR, calculated as:
    EUR = Net USD ÷ ECB Rate


📌 Requirements:

  • The program should be able to automatically generate PDF tax reports based on the MT5 report. If it's easier, an Excel file is also acceptable.

  • ECB rates must be fetched automatically or via Power Query, using this official ECB CSV file:
    📎 https://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist.csv

  • The correct ECB rate must be used for the closing date of each trade (daily accuracy).

  • The sheet must be based on a standard MT5 account history export.
    No existing columns may be removed or renamed.


🎯 Purpose:

The file is used for tax reporting in Austria.
According to local tax law, I must declare the net realized profit/loss per trade in EUR, converted using the official ECB exchange rate on the day the trade was closed.

All trading data must remain fully visible in the original MT5 format.
Only the calculated Net USD , the ECB Rate and EUR (Net) columns are required in addition.

Han respondido

1
Desarrollador 1
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
0
Trabaja
2
Desarrollador 2
Evaluación
(83)
Proyectos
142
51%
Arbitraje
5
20% / 60%
Caducado
22
15%
Libre

Información sobre el proyecto

Presupuesto
100+ USD
IVA (20%): 20 USD
Total: 120 USD
Para el ejecutor
90 USD

Cliente

(1)
Encargos realizados4
Número de arbitrajes0