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:
Fixed Fees (optional)
– For example, in swap-free accounts or other broker-specific charges not already listed as swap or commission.Net USD
– The net result per trade in USD, calculated as:
Net USD = Profit − Swap − Commission − Fixed FeesECB 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**“)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.csvThe 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.