Round Trip Cost Reconciler MT5

Round Trip Cost Reconciler MT5
Download ALL MT5 experts (1731)
YouTube Video Thumbnail



Similar MetaTrader Tools

Round Trip Cost Reconciler MT5

Info

The Round Trip Cost Reconciler MT5 is a Expert Advisor for MetaTrader 5 that round trip cost reconciler is a free, read-only utility for metatrader 5 (mt5) that enhances deal-history analysis for traders and developers. This tool generates two CSV files: one with filtered deal records and another that groups buy/sell deals by DEAL_POSITION_ID.

Usage

This tool is typically used for automated trading on major forex pairs and gold.

Platform

This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use Round Trip Cost Reconciler MT5

1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.

2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.

3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.

4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.

Frequently Asked Questions

Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.

Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.

Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.

What this tool does

Round Trip Cost Reconciler is a free, read-only utility for MetaTrader 5 (MT5) that enhances deal-history analysis for traders and developers.

Typical Use Case

This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.

Description & Settings

Related: turnaround tuesday trading strategy - another powerful expert for MetaTrader 5 traders.

Round Trip Cost Reconciler is a free, read-only utility for MetaTrader 5 (MT5) that enhances deal-history analysis for traders and developers.

Also recommended: MA Rounding Channel Expert Advisor - similar expert with strong performance on MetaTrader 5.


This tool generates two CSV files: one with filtered deal records and another that groups buy/sell deals by DEAL_POSITION_ID. It calculates volume-weighted entry and exit prices while preserving broker-recorded commission, swap, and fee data, separate from the gross trading result.

## What it Reports

- Deal, order, and position identifiers.

- Symbol, magic number, direction, entry type, time, price, and volume.

- Broker-recorded profit, commission, swap, and fee.

- Total entry and exit volume per position identifier.

- Volume-weighted entry and exit prices.

- Gross result, total costs, net result, deal count, and lifecycle status.

## Lifecycle Statuses

- COMPLETE: Entry and exit volumes match within tolerance.

- OPEN_OR_INCOMPLETE: Entry volume remains unmatched.

- EXCESS_EXIT: Exit volume exceeds recorded entry volume.

- COMPLEX_REVERSAL: An INOUT reversal exists, avoiding a misleading simple allocation.

## Inputs

- InpDaysBack: History window from 1 to 3650 days.

- InpSymbolScope: Current chart symbol or all symbols.

- InpMagicFilter: -1 for every magic number, or a specific non-negative magic.

- InpDealsFileName and InpPositionsFileName: Two distinct safe CSV filenames.

- InpUseCommonFolder: Common Files folder when enabled.

- InpDelimiter: Comma (44) or semicolon (59).

## Setup

1. Compile RoundTripCostReconcilerMT5.mq5 with RoundTripCostCore.mqh in the same folder.

2. Attach the Expert Advisor to any chart.

3. Select the history scope and optional exact magic filter.

4. Choose two distinct safe CSV filenames.

5. Read the Experts log, then retrieve the CSV files from the specified folder.

## Safety and Limitations

The utility is designed for safety, only reading account history and writing local CSV files. It does not interact with orders or use external services. Results are dependent on the broker's historical data. Reversals are classified as complex to maintain accuracy, making it an accounting aid rather than a profit guarantee.

You may also like: Playground Series: Combining Trading Concepts - excellent alternative for expert users on MetaTrader 5.

Source Code

#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version   "1.00"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property strict
#include "RoundTripCostCore.mqh"
enum ENUM_RTC_SYMBOL_SCOPE
  {
   RTC_CURRENT_SYMBOL=0,
   RTC_ALL_SYMBOLS=1

.......

Leave your opinion, ask a question, share some knowledge

⚠ Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.