{"id":3942,"date":"2023-06-30T11:09:41","date_gmt":"2023-06-30T09:09:41","guid":{"rendered":"https:\/\/cplugin.com\/?post_type=docs&#038;p=3942"},"modified":"2023-07-24T14:08:52","modified_gmt":"2023-07-24T12:08:52","password":"","slug":"mt4-report-server-extended-replication","status":"publish","type":"docs","link":"https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/","title":{"rendered":"MT4 Report Server extended replication"},"content":{"rendered":"\n<p>This tool is for extending standard MetaQuotes Report server features. It saves additional data from MT4 server to MySQL database to let other services consume all required data from one place, from MySQL to minimize load to MT4 server by requesting data for some kind of calculations that could be made using relational database environment.<\/p>\n\n\n\n<p>This tool contains two pieces: windows service and MT4 plugin.<\/p>\n\n\n\n<p>It saves:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Symbols (<code>mt4_symbols<\/code>&nbsp;table)<\/li>\n\n\n\n<li>Symbol groups (<code>mt4_symbol_groups<\/code>)<\/li>\n\n\n\n<li>Groups (<code>mt4_group<\/code>)<\/li>\n\n\n\n<li>Ticks (MT4 plugin required) (<code>mt4_ticks<\/code>)<\/li>\n\n\n\n<li>Server journal (MT4 plugin required) (<code>mt4_logs<\/code>)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"MT4ReportServerextendedreplication-Installandrun\">Install and run<\/h3>\n\n\n\n<p>Application can be used in two ways: as windows service and normally, in console mode.<br><a href=\"http:\/\/nuget.cplugin.com\/feeds\/apps\/CPlugin.ExReplica.SyncService\/versions\">http:\/\/nuget.cplugin.com\/feeds\/apps\/CPlugin.ExReplica.SyncService\/versions<\/a><br>For testing purposes it is more convenient to run in console and check that everything works well. After \u00a0that it is better to install application as windows service to let it run automatically when server \u00a0starts, with no need to log on and run it manually every time.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"MT4ReportServerextendedreplication-Runinconsole\">Run in console<\/h4>\n\n\n\n<p>To run in console (if you don\u2019t want to install a service) you can run .exe file passing argument&nbsp;<code>-con<\/code>&nbsp;to it.<\/p>\n\n\n\n<p>To exit, use Q key on your keyboard.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"MT4ReportServerextendedreplication-Runaswindowsservice\">Run as windows service<\/h4>\n\n\n\n<p>First of all, you will need to install&nbsp;<a href=\"https:\/\/www.microsoft.com\/en-US\/download\/details.aspx?id=40779\">Microsoft .NET Framework 4.5.1<\/a>&nbsp;to your server.<\/p>\n\n\n\n<p>Download package and unpack to any folder.<br>Also, you have to put&nbsp;<code>mtmanapi.dll<\/code>&nbsp;and&nbsp;<code>mtmanapi64.dll<\/code>&nbsp;to this folder. We cannot distribute these files. You might find them under your MT4 Administrator \/API\/ sufolder.<\/p>\n\n\n\n<p>To install as a service you might use&nbsp;<code>sc<\/code>&nbsp;windows utility. For example, run this command from console:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">sc create \"CPlugin.ExReplica.DbWriter\" binPath=C:\\CPlugin.ExReplica\\CPlugin.ExReplica.DBWriter.exe start=auto\nsc failure \"CPlugin.ExReplica.DbWriter\" actions=restart\/60000\/restart\/60000\/restart\/60000 reset=INFINITE<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"MT4ReportServerextendedreplication-Settings\">Settings<\/h4>\n\n\n\n<p>All settings are inside&nbsp;<code>CPlugin.ExReplica.DBWriter.exe.config<\/code>&nbsp;XML file.<\/p>\n\n\n\n<p>Most important section is&nbsp;<code>configuration \u2192&nbsp;connectionStrings \u2192&nbsp;mysqlConnection<\/code>, here you will have to put your MySQL server address and credentials.<\/p>\n\n\n\n<p>Other settings are inside&nbsp;<code>configuration \u2192&nbsp;userSettings \u2192&nbsp;CPlugin.ExReplica.DBWriter.Properties.Settings<\/code>.<\/p>\n\n\n\n<p><code>mt4_server<\/code>&nbsp;- your MT4 server address<br><code>mt4_login<\/code>&nbsp;- login of account that has access to symbols, groups, journal and prices using Manager api. It must be a manager.<br><code>mt4_password<\/code>&nbsp;- its password<br><code>proceed_mt4r<\/code>&nbsp;- flag to define, do you want to proceed files created by plugin, or not. true\/false.<br><code>mt4r_path<\/code>&nbsp;- path to these files<\/p>\n\n\n\n<p>To save ticks and journal messages from MT4 to MySQL you will have to install special plugin to your MT4 server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"MT4ReportServerextendedreplication-MT4plugin\">MT4 plugin<\/h3>\n\n\n\n<p>Download file&nbsp;<code>CPlugin.ExReplica.dll<\/code>&nbsp;and put under your MT4 \/plugins\/ directory. Restart mt4 server and check that plugin initialized successfully. You must notice something like<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">0 12:59:13.398 CPlugin.ExReplica LogPath = C:\\MT4ReplicaFiles\n0 12:59:13.398 CPlugin.ExReplica Write ticks = 1\n0 12:59:13.398 CPlugin.ExReplica Write logs = 1\n0 12:59:13.399 CPlugin.ExReplica initialized (ver. 1.00, May 24 2016 12:55:36)<\/code><\/pre>\n\n\n\n<p>It writes one file per minute. That files will be consumed by master tool automatically. No additional actions needed from operator. Only set proceed_mt4r flag to true and service will do rest job.<\/p>\n\n\n\n<p>It has options:<\/p>\n\n\n\n<p><code>LogPath<\/code>&nbsp;- path to folder where plugin will store data to be proceeded by database writer. Be sure you have enough space on it.<br><code>Write ticks<\/code>&nbsp;- flag to make plugin write ticks, 0 - do not write, 1 - do write.<br><code>Write logs<\/code>&nbsp;- flag to make plugin write journal messages, 0 - do not write, 1 - do write.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"MT4ReportServerextendedreplication-Demoversionlimitations\">Demo version limitations<\/h3>\n\n\n\n<p><em>MT4 plugin<\/em>&nbsp;free demo version has limitations: it proceed first 100 journal messages and 5000 ticks. You can restart your MT4 to reset such counters, to try additional 100 and 5000 records respectively.<\/p>\n\n\n\n<p><em>Windows service<\/em>&nbsp;fully functional during 28 days after you first time run it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tool is for extending standard MetaQuotes Report server features. It saves additional data from MT4 server to MySQL database to let other services consume all required data from one place, from MySQL to minimize load to MT4 server by requesting data for some kind of calculations that could be made using relational database environment. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[87],"doc_tag":[],"class_list":["post-3942","docs","type-docs","status-publish","hentry","doc_category-apps"],"year_month":"2026-06","word_count":639,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Vladislav Sorokin","author_nicename":"cplugin","author_url":"https:\/\/cplugin.com\/blog\/author\/cplugin\/"},"doc_category_info":[{"term_name":"Standalone Apps","term_url":"https:\/\/cplugin.com\/docs-category\/apps\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MT4 Report Server extended replication - CPlugin<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MT4 Report Server extended replication - CPlugin\" \/>\n<meta property=\"og:description\" content=\"This tool is for extending standard MetaQuotes Report server features. It saves additional data from MT4 server to MySQL database to let other services consume all required data from one place, from MySQL to minimize load to MT4 server by requesting data for some kind of calculations that could be made using relational database environment. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/\" \/>\n<meta property=\"og:site_name\" content=\"CPlugin\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/cplugin\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-24T12:08:52+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@CPlugin_com\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/\",\"url\":\"https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/\",\"name\":\"MT4 Report Server extended replication - CPlugin\",\"isPartOf\":{\"@id\":\"https:\/\/cplugin.com\/#website\"},\"datePublished\":\"2023-06-30T09:09:41+00:00\",\"dateModified\":\"2023-07-24T12:08:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cplugin.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\/\/cplugin.com\/wiki\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"MT4 Report Server extended replication\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cplugin.com\/#website\",\"url\":\"https:\/\/cplugin.com\/\",\"name\":\"CPlugin\",\"description\":\"CPlugin offers software and services to Forex brokers who use MetaQuotes MetaTrader 4 and 5 which are most advanced and reliable trading platforms.\",\"publisher\":{\"@id\":\"https:\/\/cplugin.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cplugin.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/cplugin.com\/#organization\",\"name\":\"CPlugin Ltd.\",\"url\":\"https:\/\/cplugin.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cplugin.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.cplugin.com\/wp-content\/uploads\/2021\/07\/CPlugin-logo-1.png\",\"contentUrl\":\"https:\/\/www.cplugin.com\/wp-content\/uploads\/2021\/07\/CPlugin-logo-1.png\",\"width\":1823,\"height\":677,\"caption\":\"CPlugin Ltd.\"},\"image\":{\"@id\":\"https:\/\/cplugin.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/cplugin\",\"https:\/\/x.com\/CPlugin_com\",\"https:\/\/www.linkedin.com\/company\/cplugin\",\"https:\/\/www.youtube.com\/c\/CPlugin_com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MT4 Report Server extended replication - CPlugin","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/","og_locale":"en_US","og_type":"article","og_title":"MT4 Report Server extended replication - CPlugin","og_description":"This tool is for extending standard MetaQuotes Report server features. It saves additional data from MT4 server to MySQL database to let other services consume all required data from one place, from MySQL to minimize load to MT4 server by requesting data for some kind of calculations that could be made using relational database environment. [&hellip;]","og_url":"https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/","og_site_name":"CPlugin","article_publisher":"https:\/\/www.facebook.com\/cplugin","article_modified_time":"2023-07-24T12:08:52+00:00","twitter_card":"summary_large_image","twitter_site":"@CPlugin_com","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/","url":"https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/","name":"MT4 Report Server extended replication - CPlugin","isPartOf":{"@id":"https:\/\/cplugin.com\/#website"},"datePublished":"2023-06-30T09:09:41+00:00","dateModified":"2023-07-24T12:08:52+00:00","breadcrumb":{"@id":"https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cplugin.com\/docs\/apps\/mt4-report-server-extended-replication\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cplugin.com\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/cplugin.com\/wiki\/"},{"@type":"ListItem","position":3,"name":"MT4 Report Server extended replication"}]},{"@type":"WebSite","@id":"https:\/\/cplugin.com\/#website","url":"https:\/\/cplugin.com\/","name":"CPlugin","description":"CPlugin offers software and services to Forex brokers who use MetaQuotes MetaTrader 4 and 5 which are most advanced and reliable trading platforms.","publisher":{"@id":"https:\/\/cplugin.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cplugin.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cplugin.com\/#organization","name":"CPlugin Ltd.","url":"https:\/\/cplugin.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cplugin.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.cplugin.com\/wp-content\/uploads\/2021\/07\/CPlugin-logo-1.png","contentUrl":"https:\/\/www.cplugin.com\/wp-content\/uploads\/2021\/07\/CPlugin-logo-1.png","width":1823,"height":677,"caption":"CPlugin Ltd."},"image":{"@id":"https:\/\/cplugin.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/cplugin","https:\/\/x.com\/CPlugin_com","https:\/\/www.linkedin.com\/company\/cplugin","https:\/\/www.youtube.com\/c\/CPlugin_com"]}]}},"_links":{"self":[{"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/docs\/3942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/comments?post=3942"}],"version-history":[{"count":3,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/docs\/3942\/revisions"}],"predecessor-version":[{"id":4019,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/docs\/3942\/revisions\/4019"}],"wp:attachment":[{"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/media?parent=3942"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/doc_category?post=3942"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/doc_tag?post=3942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}