Project Summary
I’m looking for an experienced MQL4 developer to build a simple, efficient Expert Advisor (EA) that exports all closed trades from the current MT4 account once daily to a CSV file, with a specific filename format and field structure. This EA will be used in a live trading environment and must be stable and low-maintenance. I’m happy to pay fairly for someone who delivers clean, reliable work.
Platform
MT4 (MetaTrader 4)
Broker Timezone: GMT+2 (Pepperstone UK)
Key Requirements
One-Time Daily Export
Automatically exports all closed trades of the current day at 23:58 server time (GMT+2).
The EA must detect the date internally (no input required).
Must only export once per day to avoid duplicates, even after VPS restarts.
File Format
Output as .CSV file with the following naming convention:
YYYYMMDD.csv (e.g., 20250421.csv )
Files saved in: C:\TradingLogs\TradeHistory
Fields to Export
Ticket number
Magic number
Comment
Symbol
Order type (Buy/Sell)
Lot size
Open time (yyyy.mm.dd hh:mm)
Open price
Close time (yyyy.mm.dd hh:mm)
Close price
Stop loss
Take profit
Commission
Swap
Profit
Duration in minutes (difference between open and close)
Operation
Attach EA to any chart. It must remain active but execute silently.
No user interaction or GUI needed.
Log or file error only if the export fails.
Works on any account type (including hedging accounts with multiple positions open on the same symbol)
Additional Notes
The EA should not remove itself from the chart after execution.
Should handle VPS reboots or MT4 restarts without re-exporting the same day.
No external libraries should be used—keep it native and robust.
Deliverables
Fully commented .mq4 source code
Compiled .ex4 file
1-2 rounds of revisions if needed after initial testing
Budget
Please provide your fixed price quote.
If you already have a similar module, feel free to leverage it.
Intellectual Property and Rights
All source code, compiled files, and related work produced during this project are considered work for hire and will become my exclusive property upon full payment.