Trading Log Exporter
- Utilità
- Versione: 1.3
Version 1.02 | MetaTrader 5 | Expert Advisor — Utilities
Turn Your Trading History Into Structured, Actionable Data
Trading Log Exporter is a professional trade-recording utility for MetaTrader 5, designed to automatically transform your closed trading positions into organized CSV files.
Whether you trade manually, use Expert Advisors, or manage multiple strategies, Trading Log Exporter helps you maintain a detailed, consistent record of your trading activity without manually entering transactions into spreadsheets.
Export up to 31 configurable data columns, including trade performance, risk-to-reward results, Maximum Adverse Excursion (MAE), Maximum Favorable Excursion (MFE), trading sessions, timestamps, commissions, and more.
Daily and weekly performance summaries are generated automatically, helping you analyze your trading history with greater precision.
One utility. Structured trade records. Full control over your exported data.
Key Features
Automatic Trade Logging
-
Automatically records closed positions into structured CSV files.
-
Supports manual trades and Expert Advisor transactions.
-
Works with both hedging and netting accounts.
-
Combines entries and partial exits into a single position record.
-
Supports every trading symbol available in your account.
-
Automatically imports historical positions when first activated.
-
Monitors new position closures while MetaTrader 5 is running.
-
Recovers missed closures from account history after terminal restarts.
Advanced Trade Analytics
Export detailed information, including:
-
Trade identifiers, symbols, direction and volume.
-
Entry and exit prices calculated using volume-weighted averages.
-
Server-time and UTC timestamps.
-
Initial stop-loss information and risk exposure when available.
-
Realized performance expressed in R-multiples.
-
Maximum Adverse Excursion (MAE).
-
Maximum Favorable Excursion (MFE).
-
Gross profit, commission, swap, fees and net results.
-
Position duration, trading session and weekday.
-
Magic number and trade comments.
-
Reconstructed account balance after position closure.
Historical trades imported before the utility was activated may have unavailable risk and excursion fields.
Daily & Weekly Performance Reports
Trading Log Exporter automatically generates separate daily and weekly CSV summary files.
Each report includes:
-
Total closed positions.
-
Winning percentage.
-
Average winning and losing trades.
-
Payoff ratio.
-
Profit factor.
-
Expectancy expressed in R.
-
Longest consecutive losing streak.
-
Maximum drawdown.
Weekly reports use ISO calendar weeks.
These reports help you review historical trading performance without manually calculating every metric.
Fully Customizable CSV Export
Your trading data should fit your workflow.
Configure the export format to match your analytical requirements:
-
Select individual columns from the available data fields.
-
Customize column order using names or numerical identifiers.
-
Choose your preferred field separator.
-
Customize decimal formatting.
-
Configure date and time formatting.
-
Select ANSI or UTF-16 encoding.
-
Filter records by trading symbol or magic number.
-
Enable or disable column headers.
Files can be opened in spreadsheet software and other applications that support CSV.
Important: Compatibility with specific third-party trading-journal platforms is not guaranteed. Their import requirements must be checked separately.
Restart Recovery & File Integrity
Trading Log Exporter incorporates safeguards designed to maintain consistent records during terminal restarts and interruptions.
Its recovery system can:
-
Detect and repair incomplete final CSV lines after an interruption.
-
Identify previously exported positions to prevent duplicate records.
-
Recover additional closed positions from account history.
-
Detect conflicting file access between running instances.
-
Archive the existing file when export settings require a new format.
This reduces the risk of missing or duplicated trading records when MetaTrader 5 is restarted.
Integrated Information Panel
Monitor your export activity directly from the MetaTrader 5 chart.
The information panel displays:
-
Current journal size.
-
Most recently exported closed position.
-
Number of positions closed today.
-
Number of positions closed this week.
-
Daily net trading result.
-
Weekly net trading result.
Optional chart screenshots can also be saved when positions close on the chart's symbol.
Strategy Tester Demonstration Mode
Trading Log Exporter includes a dedicated demonstration mode that operates exclusively inside the MetaTrader 5 Strategy Tester.
This mode automatically generates small, minimal-volume demonstration positions with volatility-based stop-loss and take-profit levels.
Its purpose is to demonstrate the export system without requiring an existing trading history.
On live and demo charts outside the Strategy Tester, Trading Log Exporter never opens, modifies, or closes trades.
Who Is Trading Log Exporter For?
Trading Log Exporter is designed for:
Manual Traders
Maintain structured trading records without manually copying transaction details from MetaTrader 5.
Algorithmic Traders
Analyze the historical activity of your Expert Advisors using exported position data and magic-number filtering.
Strategy Developers
Examine realized trade performance, historical risk, R-multiples, and favorable or adverse excursions where sufficient data is available.
Trading Researchers
Export structured datasets for spreadsheet analysis, statistical research, or custom analytical workflows.
Portfolio & Multi-Symbol Traders
Consolidate closed-position records across multiple trading instruments into a configurable journal.
Trading Log Exporter is an export and reporting utility, not an automated trading strategy or a complete graphical performance-analysis platform.
Technical Specifications
| Feature | Specification |
|---|---|
| Platform | MetaTrader 5 |
| Product Type | Expert Advisor / Utility |
| Version | 1.02 |
| Export Format | CSV |
| Available Columns | Up to 31 |
| Account Types | Hedging and Netting |
| Symbol Support | All account symbols |
| Historical Import | 30 days by default |
| Daily Reports | Included |
| Weekly Reports | Included |
| Information Panel | Included |
| Custom Column Ordering | Supported |
| Trading Session Classification | Supported |
| Server / UTC Timestamps | Supported |
| Optional Chart Screenshots | Supported |
| Restart Recovery | Supported |
| Live Trading Execution | None |
| Tester Demonstration Trading | Included |
Default Configuration
Trading Log Exporter comes with a preconfigured set of default settings. No additional preset file is required.
Journal Settings
-
File prefix: TradingLog
-
Historical import: 30 days
-
Symbol filter: All symbols
-
Magic-number filter: All
-
CSV header: Enabled
CSV Formatting
-
Columns: All 31, default order
-
Field separator: Comma
-
Decimal separator: Period
-
Character encoding: ANSI by default
-
Date-time format: Configurable
Trading Sessions — Broker Server Time
-
Asia: 00:00–08:00
-
London: 08:00–16:00
-
New York: 16:00–24:00
Session names and time ranges can be customized.
Time Zone
-
Server-to-UTC offset: 0 minutes by default
Configure this value to match your broker's server time for accurate UTC timestamps.
Reporting & Display
-
Daily summaries: Enabled
-
Weekly summaries: Enabled
-
Information panel: Enabled
-
Screenshots at close: Disabled
-
Screenshot resolution: 1024 × 700
Strategy Tester Only
-
Demonstration mode: Enabled
-
Stop-loss volatility multiplier: 1.5
-
Take-profit volatility multiplier: 2.0
Installation & Getting Started
Step 1 — Install
Install Trading Log Exporter from the MQL5 Market and attach it to any MetaTrader 5 chart.
Step 2 — Configure
Use the default settings or customize your preferred columns, CSV format, trading sessions and historical import period.
For accurate UTC timestamps, enter the appropriate server-to-UTC offset.
Step 3 — Export
The utility begins processing the selected historical trading records and monitoring subsequent position closures.
Step 4 — Access Your Data
Navigate to:
File → Open Data Folder → MQL5 → Files
Open the utility's journal subfolder to access the exported CSV files and performance summaries.
Step 5 — Analyze
Open your trading log in a compatible spreadsheet application or import it into your own analytical workflow.
For continuous real-time export, MetaTrader 5 must remain running. Closed positions from downtime can be recovered from available account history after restarting.
Testing & Validation
Trading Log Exporter was tested in the MetaTrader 5 Strategy Tester using a full year of historical real-tick data.
Reported validation results:
-
Testing period: One full year.
-
Data modeling: Every tick based on real ticks.
-
Exported closed positions: 777.
-
Position-by-position comparison with the Strategy Tester report.
-
Verification of trade direction, volume, prices, gross profit, swap and net results.
-
Reconciliation of the final reconstructed balance with the tester report.
-
Testing of demonstration trading, performance summaries and restart behavior.
The reported comparison found matching records for the 777 exported positions.
These validation results describe the tested configuration and should not be interpreted as a guarantee that every broker, account history or terminal environment will produce identical results.
Note: If the Strategy Tester closes a remaining open position after the Expert Advisor has stopped, that final position may appear in the tester report without appearing in the exported journal.
Important Limitations
Trading Log Exporter is designed for accurate trade recording, but certain limitations should be understood.
Historical Stop-Loss Information
MetaTrader 5 does not preserve every historical stop-loss state needed to reconstruct original risk. Consequently, historical positions imported before tracking began may have empty stop-loss, initial-risk and R-multiple fields.
MAE and MFE
Excursion metrics depend on the information available during live position tracking. Complete MAE and MFE data cannot be guaranteed for previously closed positions.
Third-Party Journal Compatibility
CSV customization does not guarantee direct compatibility with external trading-journal applications.
Server Time
Correct UTC conversion depends on the configured server-to-UTC offset. Broker server-time changes may require this setting to be updated.
Terminal Availability
The terminal must run for continuous live monitoring. Historical recovery provides a way to reconstruct closed-position records, but it cannot recreate every missing live-tracking observation.
No Live Trade Execution
The utility does not execute trades on live accounts. Its demonstration trading is restricted to the Strategy Tester.
Financial Risk
Trading Log Exporter is not a trading signal provider and does not promise improved profitability. Historical performance statistics are descriptive and do not guarantee future trading results.
Frequently Asked Questions
Does Trading Log Exporter place trades on my account?
No. The utility never executes trades on live or demo charts. Its trading demonstration is available only in the Strategy Tester.
Can I use it with my existing Expert Advisors?
Yes. Trading Log Exporter records closed positions from the account, including trades generated by other Expert Advisors. Magic-number filtering is available.
Does it support multiple symbols?
Yes. Attach it to one chart and it can export closed positions across the account's symbols, subject to your configured filters.
What happens if MetaTrader 5 closes unexpectedly?
At restart, the utility checks the existing journal, repairs an incomplete final line when necessary, and processes available account history while avoiding previously exported records.
Can I customize the CSV columns?
Yes. You can select columns, reorder them, and adjust separators, encoding and date-time formatting.
What does R-multiple mean?
R-multiple expresses realized trade performance relative to the trade's initial risk. For example, +2R represents a profit equal to twice the initial risk, while −1R represents a loss equal to that risk.
What are MAE and MFE?
MAE measures the largest adverse price movement observed during a position. MFE measures the largest favorable movement. These metrics help describe how a position behaved between entry and exit.
Can I import the CSV into Excel or another spreadsheet?
Yes, provided the application supports the selected CSV format and encoding. Some import settings may need adjustment.
Will historical trades include every risk metric?
Not necessarily. Risk measurements requiring previously observed stop levels cannot always be reconstructed from closed-trade history alone.
Is a minimum account balance required?
No. Trading Log Exporter does not trade outside the Strategy Tester and has no trading-capital requirement.
Build a More Organized Trading Record
Accurate analysis starts with structured data.
Trading Log Exporter gives MetaTrader 5 users a configurable way to collect closed-position history, monitor realized trading performance and maintain daily and weekly records.
Export your trades. Organize your history. Analyze your results.
Trading Log Exporter — Professional trade recording for MetaTrader 5.
