﻿{"id":751,"date":"2012-02-29T23:21:16","date_gmt":"2012-02-29T15:21:16","guid":{"rendered":"http:\/\/nick.workao.org\/?p=751"},"modified":"2012-02-29T23:21:19","modified_gmt":"2012-02-29T15:21:19","slug":"metatrader-automated-trading-expert-advisors-best-trading-platform-for-forex-trading","status":"publish","type":"post","link":"http:\/\/nick.txtcc.com\/index.php\/other\/751","title":{"rendered":"MetaTrader &#038; Automated Trading &#038; Expert Advisors Best Trading platform for Forex trading"},"content":{"rendered":"<div id=\"post_message_3150\">\n\n<span style=\"font-size: medium;\"><span style=\"color: blue;\">Configuration at Startup<\/span><\/span>\n\nThe client terminal can be launched with some predefined settings. For this purpose, the configuration file name will be passed to the client terminal as a parameter.\n\n<strong>For example:<\/strong>\n<div>\n<div>Code:<\/div>\n<pre>terminal.exe configstart.ini\n  terminal.exe test1.txt\n  terminal.exe \"C:Program FilesMetaTrader 4configsettings25.ini\"<\/pre>\n<\/div>\nIf the full path to the file (Drive:SubDirectoryFileName) is not given, the file will be searched for in the client terminal directory. The configuration file contains lines of the following appearance:\n[Parameter] = [Value]\n\nComments start with a semicolon (<img decoding=\"async\" title=\"Wink\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2012\/02\/152118i10.gif\" alt=\"\" border=\"0\"> and are not processed.\n\nThe configuration file parameters can be divided into several groups: common settings, proxy server settings (the &#8220;Server&#8221; tab in the terminal settings), FTP settings (the &#8220;Publisher&#8221; tab in the server settings), EA settings (the &#8220;Expert Advisors&#8221; tab in the server settings), the expert or script single-launch settings, settings of the Strategy Tester launch.\n\n<strong><span style=\"color: blue;\">Common Settings<\/span><\/strong>\n<strong><span style=\"text-decoration: underline;\">Profile <\/span><\/strong>&#8211; the subdirectory name in the \/profiles directory. The charts will be opened in the client terminal according to the given profile. If this parameter is not specified, the current profile will be opened.\n\n<strong><span style=\"text-decoration: underline;\">MarketWatch<\/span><\/strong> &#8211; file name (the symbolsets directory) that contains the symbol list to be shown in the Market Watch window. A file like this can be obtained using the window context menu command of the &#8220;Market Watch &#8211; Sets &#8211; Save As&#8230;&#8221;.\n\n<strong><span style=\"text-decoration: underline;\">Login<\/span><\/strong> &#8211; the number of the account to connect to at startup. If this parameter is not specified, the current login will be used.\n\n<strong><span style=\"text-decoration: underline;\">Password <\/span><\/strong>&#8211; the password that allows entering the system. This parameter will be ignored if the client terminal stores personal data on the disk and the account to be connected is in the list.\n\n<strong><span style=\"text-decoration: underline;\">Server<\/span><\/strong> &#8211; the name of the trade server to be connected to. The server name is the same as the name of the corresponding .srv file stored in the \/config directory. This patameter will be ignored if the information about the account to be connected was stored on the disk.\n\n<strong><span style=\"text-decoration: underline;\">AutoConfiguration<\/span><\/strong> &#8211; &#8220;true&#8221; or &#8220;false&#8221; depending on whether the autoconfiguration setting should be enabled or not. If this parameter is not specified, the value from the current server settings will be used.\n\n<strong><span style=\"text-decoration: underline;\">DataServer<\/span><\/strong> &#8211; address of the data center. This record can be ignored if the server autoconfiguration s enabled. If this parameter is not specified, the value from the current server settings will be used.\n\n<strong><span style=\"text-decoration: underline;\">EnableDDE<\/span><\/strong> &#8211; &#8220;true&#8221; or &#8220;false&#8221; depending on whether DDE server should be enabled or not. If this parameter is not specified, the value from the current server settings will be used.\n\n<strong><span style=\"text-decoration: underline;\">EnableNews <\/span><\/strong>&#8211; &#8220;true&#8221; or &#8220;false&#8221; depending on whether receiving of news should be allowed or not. If this parameter is not specified, the value from the current server settings will be used.\n\nExample:\n<div>\n<div>Code:<\/div>\n<pre>  ; common settings\n  Profile=test 3\n  MarketWatch=set2.set\n  Login=12345\n  Password=xxxxxx\n  Server=MetaQuotes-demo\n  AutoConfiguration=false\n  DataServer=192.168.0.1:443\n  EnableDDE=true\n  EnableNews=false<\/pre>\n<\/div>\n<strong><span style=\"color: blue;\">Proxy Server Settings<\/span><\/strong>\n\n<strong><span style=\"text-decoration: underline;\">ProxyEnable<\/span><\/strong> &#8211; &#8220;true&#8221; or &#8220;false&#8221; depending on whether or not a proxy server should be used for connection to the trade server.\n\n<strong><span style=\"text-decoration: underline;\">ProxyServer <\/span><\/strong>&#8211; proxy server address.\n\n<strong><span style=\"text-decoration: underline;\">ProxyType<\/span><\/strong> &#8211; proxy server type.It can be &#8220;HTTP&#8221;, &#8220;SOCKS4&#8221;, or &#8220;SOCKS5&#8221;.\n\n<strong><span style=\"text-decoration: underline;\">ProxyLogin<\/span><\/strong> &#8211; login to be authorized on proxy server.\n\n<strong><span style=\"text-decoration: underline;\">ProxyPassword<\/span><\/strong> &#8211; password to access to proxy server.\n\nIf any of the above parameters are not specified, the current settings of the client terminal are used (proxy settings in the &#8220;Server&#8221; tab of the client temrinal settings).\n\nExample:\n<div>\n<div>Code:<\/div>\n<pre> ; proxy settings\n  ProxyEnable=true\n  ProxyServer=proxy.company.com:3128\n  ProxyType=HTTP\n  ProxyLogin=user45\n  ProxyPassword=xxx<\/pre>\n<\/div>\n<strong><span style=\"color: blue;\">FTP Settings<\/span><\/strong>\nFTPEnable &#8211; enable\/disable publishing. The possible values are &#8220;true&#8221; or &#8220;false&#8221;.\n\n<strong><span style=\"text-decoration: underline;\">FTPPassiveMode<\/span><\/strong> &#8211; enable\/disable the passive mode of data transfer. The possible values are &#8220;true&#8221; or &#8220;false&#8221;.\n\n<strong><span style=\"text-decoration: underline;\">FTPAccount<\/span><\/strong> &#8211; the number of the account the state of which to be sent to the FTP.\n\n<strong><span style=\"text-decoration: underline;\">FTPServer<\/span><\/strong> &#8211; FTP server address.\n\n<strong><span style=\"text-decoration: underline;\">FTPLogin <\/span><\/strong>&#8211; the login for authorization on the FTP server.\n\n<strong><span style=\"text-decoration: underline;\">FTPPassword <\/span><\/strong>&#8211; the password to access to the FTP server.\n\n<strong><span style=\"text-decoration: underline;\">FTPPath<\/span><\/strong> &#8211; the name of the FTP server directory in which the report is placed.\n\n<strong><span style=\"text-decoration: underline;\">FTPPeriod<\/span><\/strong> &#8211; the periodicity, in minutes, of the reporting to the FTP server.\n\nIf any of the above-listed parameters are not specified, the current client terminal settings are used (the &#8220;Publisher&#8221; tab in the server settings).\n\nExample:\n<div>\n<div>Code:<\/div>\n<pre>; ftp settings\n  FTPEnable=true\n  FTPPassiveMode=false\n  FTPAccount=12345\n  FTPServer=ftp.company.com\n  FTPLogin=admin\n  FTPPassword=pAssWOrd123\n  FTPPath=\/inetpub\n  FTPPeriod=10<\/pre>\n<\/div>\n<strong><span style=\"color: blue;\">EA Settings<\/span><\/strong>\n<strong><span style=\"text-decoration: underline;\">ExpertsEnable<\/span><\/strong> &#8211; enable\/disable experts.\n\n<strong><span style=\"text-decoration: underline;\">ExpertsDllImport<\/span><\/strong> &#8211; enable\/disable DLL imports.\n\n<strong><span style=\"text-decoration: underline;\">ExpertsDllConfirm<\/span><\/strong> &#8211; enable\/disable manual confirmation of DLL-functions calling.\n\n<strong><span style=\"text-decoration: underline;\">ExpertsExpImport<\/span><\/strong> &#8211; enable\/disable import of functions from external experts or MQL4 libraries.\n\n<strong><span style=\"text-decoration: underline;\">ExpertsTrades<\/span><\/strong> &#8211; enable\/disable the experts trading.\n\n<strong><span style=\"text-decoration: underline;\">ExpertsTradesConfirm<\/span><\/strong> &#8211; enable\/disable manual confirmation of the trade operation performed by the expert.\n<div>\n<div>Quote:<\/div>\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\">\n<tbody>\n<tr>\n<td><strong><span style=\"color: red;\">Attention:<\/span><\/strong> All parameters of an experts group can take values of either &#8220;true&#8221; or &#8220;false&#8221;.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\nIf any of the above-listed parameters is not specified, the current client terminal settings will be used (the &#8220;Expert Advisors&#8221; in the server settings).\n\n<strong>Example:<\/strong>\n<div>\n<div>Code:<\/div>\n<pre> ; experts settings\n  ExpertsEnable=true\n  ExpertsDllImport=true\n  ExpertsDllConfirm=true\n  ExpertsExpImport=true\n  ExpertsTrades=true\n  ExpertsTradesConfirm=false<\/pre>\n<\/div>\n<strong><span style=\"color: blue;\">The Expert and\/or Script Single-Launch Settings<\/span><\/strong>\n<strong><span style=\"text-decoration: underline;\">Symbol <\/span><\/strong>&#8211; the symbol of the security the chart of which should be opened immediately after the terminal startup. After the client terminal has been closed, the information about this extra chart is not saved. At the terminal restart, without the configuraiton file, this chart will not be opened. If this parameter is not specified, no extra chart will be opened.\n\n<strong><span style=\"text-decoration: underline;\">Period <\/span><\/strong>&#8211; the chart timeframe (M1, M5, M15, M30, H1, H4, D1, W1, MN). If this parameter is not specified, H1 is used.\n\n<strong><span style=\"text-decoration: underline;\">Template<\/span><\/strong> &#8211; the name of the templatre file (the templates directory), which should be applied to the chart.\n\n<strong><span style=\"text-decoration: underline;\">Expert <\/span><\/strong>&#8211; the name of the expert that should be launched after the client terminal has started. The expert is launched in the chart, which has been opened according to the data specified in Symbol and Period. If the Symbol parameter has not been not specified, no extra chart opens, and the expert will be launched in the first chart of the current profile. If there are no charts in the current profile, the expert will not be launched. If this parameter has not been specified, no expert is launched.\n\n<strong><span style=\"text-decoration: underline;\">ExpertParameters<\/span><\/strong> &#8211; the name of the file containing the expert parameters (the expertspresets directory). This file can be created in the expert properties window by pressing of the &#8220;Inputs &#8211; Save&#8221; button. It is normally used to save the inputs other than the default ones. If this parameter has not been specified, the default inputs are used.\n\n<strong><span style=\"text-decoration: underline;\">Script <\/span><\/strong>&#8211; the name of the script, which must be launched after the client terminal startup. The script is launched according to the same rules that are eligible for the expert (described above).\n\n<strong><span style=\"text-decoration: underline;\">ScriptParameters<\/span><\/strong> &#8211; the name of the file containing the script parameters (the expertspresets directory). This file is made in the same way as that for the expert.\n\n<strong>Example:<\/strong>\n<div>\n<div>Code:<\/div>\n<pre> ; open chart and run expert and\/or script\n  Symbol=EURUSD\n  Period=H4\n  Template=popular.tpl\n  Expert=MACD Sample\n  ExpertParameters=macd.set\n  Script=period_converter\n  ScriptParameters=<\/pre>\n<\/div>\n<strong><span style=\"color: blue;\">Settings of the Strategy Tester Launch<\/span><\/strong>\nTestExpert &#8211; the name of the expert to be launched for testing. If this parameter has not been specified, no testing is launched.\n\n<strong><span style=\"text-decoration: underline;\">TestExpertParameters<\/span><\/strong> &#8211; the name of the file containing parameters (the tester directory). The file can be created in the Properties window of the expert under test by clicking the &#8220;Inputs &#8211; Save&#8221; button. It is normally used to save parameters other than the default ones. Other parameters of the expert under test in the &#8220;Testing&#8221; and &#8220;Optimization&#8221; tabs (as well as in the &#8220;Inputs&#8221; tab if this parameter has not been specified) are filled up with the values automatically saved in the tester[the expert name].ini file after the latest test.\n\n<strong><span style=\"text-decoration: underline;\">TestSymbol <\/span><\/strong>&#8211; the name of the symbol used for the expert testing. If this parameter has not been specified, the latest value used in the tester is used.\n\n<strong><span style=\"text-decoration: underline;\">TestPeriod <\/span><\/strong>&#8211; the chart period (M1, M5, M15, M30, H1, H4, D1, W1, MN). If this parameter has not been specified, H1 is used.\n\n<strong><span style=\"text-decoration: underline;\">TestModel<\/span><\/strong> &#8211; 0, 1, or 2, depending on the testing model (Every tick, Control points, Open prices only). If this parameter has not been specified, 0 is used (Every tick).\n\n<strong><span style=\"text-decoration: underline;\">TestOptimization <\/span><\/strong>&#8211; enable\/disable optimization. The values that can be taken are &#8220;true&#8221; or &#8220;false&#8221;. If this parameter had not been specified, the &#8220;false&#8221; value is used.\n\n<strong><span style=\"text-decoration: underline;\">TestDateEnable<\/span><\/strong> &#8211; enable\/disable the &#8220;Use date&#8221; flag. The values that can be taken are &#8220;true&#8221; or &#8220;false&#8221;. If this parameter had not been specified, the &#8220;false&#8221; value is used.\n\n<strong><span style=\"text-decoration: underline;\">TestFromDate<\/span><\/strong> &#8211; the date, from which to start testing, appeared as YYYY.MM.DD. If this parameter has not been specified, this date is 1970.01.01.\n\n<strong><span style=\"text-decoration: underline;\">TestToDate<\/span><\/strong> &#8211; the date, on which to finish testing, appeared as YYYY.MM.DD. If this parameter has not been specified, this date is 1970.01.01.\n\n<strong><span style=\"text-decoration: underline;\">TestReport <\/span><\/strong>&#8211; the name of the test report file. The file will be created in the client terminal directory. A relative path can be specified, for example: testerMovingAverageReport&#8221;. If the extension has not been specified in the file name, the &#8220;.htm&#8221; will be set automatically. If this parameter has not been specified, the test report will not be formed.\n\n<strong><span style=\"text-decoration: underline;\">TestReplaceReport<\/span><\/strong> &#8211; enable\/disable the repeated report file record. The values that can be taken are &#8220;true&#8221; or &#8220;false&#8221;. If the &#8220;false&#8221; value is specified and a report file named in the same way exists already, the number in square brackets will be added to the file name. For example, &#8220;MovingAverageReport[1].htm&#8221;. If this parameter had not been specified, the &#8220;false&#8221; value is used.\n\n<strong><span style=\"text-decoration: underline;\">TestShutdownTerminal<\/span><\/strong> &#8211; enable\/disable shutdown of the terminal after the testing has been finished. The values that can be taken are &#8220;true&#8221; or &#8220;false&#8221;. If this parameter had not been specified, the &#8220;false&#8221; value is used. If the user has pressed the &#8220;Stop&#8221; button, the value of this parameter will be flushed to &#8220;false&#8221; since the control has been given to the user.\n\n<strong>Example:<\/strong>\n<div>\n<div>Code:<\/div>\n<pre>; start strategy tester\n  TestExpert=Moving Average\n  TestExpertParameters=ma0.set\n  TestSymbol=EURUSD\n  TestPeriod=H1\n  TestModel=2\n  TestOptimization=false\n  TestDateEnable=true\n  TestFromDate=1970.01.01\n  TestToDate=2006.06.06\n  TestReport=MovingAverageReport\n  TestReplaceReport=false\n  TestShutdownTerminal=true<\/pre>\n<div id=\"post_message_3151\">\n\n<span style=\"font-size: medium;\"><span style=\"color: blue;\">History Center<\/span><\/span>\n\nTechnical analysis is the market movements research made in order to forecast future price movements. the market is often analyzed using charts. So it is very important to have available historical data for all symbols and timeframes used. Historical data are constantly formed and stored on the server. Connecting to it, the client terminal downloads all necessary data. They will be then used for drawing of charts,testing and optimization of Expert Advisors. To control historical data, the terminal has a special window named &#8220;History Center&#8221;. This window can be opened by executing the command &#8220;Tools \u2014 History Center&#8221; or by pressing F2.\n\nAfter the terminal has been shut down, all accumulated historical data will be stored in the &#8220;History Center&#8221;. Sizes of files containing historical quotes do not exceed values defined in settings. If the amount of historical data accumulated exceeeds the value set in the field of &#8221; Max. bars in history:&#8221;, the oldest bars will be deleted when storing. For each timeframe, a separate history file is formed named as SSSSSSPP.hst (where SSSSSS &#8211; symbol name, PP &#8211; timeframe in minutes) and saved in the \/HISTORY. Later on, the saved data will be used to draw charts, as well as for testing of trading strategies.\n\nIn the &#8220;History Center&#8221; window, the available data can be changed. For this, it is necessary to select the desired symbol and timeframe in the left part of the window.The corresponding data will be loaded in form of a table. To add a record about a new bar, it is necessary to press the button of the same name, fill out all necessary fields in the new window and press &#8220;OK&#8221;. After that, the new bar will appear in the history. One can modify the bar by selecting the corresponding record and pressing the &#8220;Modify&#8221; button. To delete a bar, it is necessary to select it and press the button of the same name.\n\n<strong><span style=\"color: blue;\">Load of Historical Data<\/span><\/strong>\nIt is possible to load quotes for basic currency pairs starting with year 1999 from the historical data server. To do it, it is necessary to select the desired symbol and press &#8220;Download&#8221;.\n<div>\n<div>Quote:<\/div>\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\">\n<tbody>\n<tr>\n<td><strong><span style=\"color: red;\">Attention:<\/span><\/strong> The loaded data can differ from historical data stored on the broker&#8217;s trade server.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\nUpon pressing the button, data of M1 timeframe will be loaded. Other timeframes will be automatically recalculated from \u041c1. At that, the time of the downloaded data will be automatically recalculated according to the active account time zone.\n\nWhen downloading historical data, it is recommended to control amount of bars in history and in charts.\n<div>\n<div>Quote:<\/div>\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\">\n<tbody>\n<tr>\n<td><strong><span style=\"color: red;\">Attention:<\/span><\/strong> The deeper is the history used, the more PC resources are needed.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\nQuotes are weekly updated on the server of historical data. Further, at restarts, only updated quotes will be downloaded.\n\n<strong><span style=\"color: blue;\">Exports and Imports of Historical Data<\/span><\/strong>\nHistorical data can be exported into files formatted as CSV, PRN and HTM. For this, it is necessary to select the desired symbol in the left part of the &#8220;History Center&#8221; window and press &#8220;Export&#8221;. Then it is necessary to select on of three file formats and specify the path of location on the hard disk.\n\nHistorical data as CSV, PRN, TXT, HTM and HST can also be imported into terminal.\n\nHistorical data in the file can be represented as follows (any other separator can be used instead of space):\n\nYYYY.MM.DD HH:MM O H L C V\n\nYYYY-MM-DD HH:MM O H L C V\n\nYYYY\/MM\/DD HH:MM O H L C V\n\nDD.MM.YYYY HH:MM O H L C V\n\nDD-MM-YYYY HH:MM O H L C V\n\nDD\/MM\/YYYY HH:MM O H L C V\n\nFirst of all, it is necessary to select a symbol and a timeframe, for which the import will be performed, in the left part of the &#8220;History Center&#8221; window. Then it is necessary to set up import parameters by pressing &#8220;Import&#8221;:\n\n<strong><span style=\"text-decoration: underline;\">Separator <\/span><\/strong>\u2014 data separator in the file to be imported. Comma, semicolon, space or tabulation character can be used as separators;\n\n<strong><span style=\"text-decoration: underline;\">Skip columns<\/span><\/strong> \u2014 skip columns when importing. This can be helpful when the imported file contains more data types than necessary;\n\n<strong><span style=\"text-decoration: underline;\">Skip lines <\/span><\/strong>\u2014 skip rows (lines) when importing;\n\n<strong><span style=\"text-decoration: underline;\">Time shift<\/span><\/strong> \u2014 shift data by several hours in time;\n\n<strong><span style=\"text-decoration: underline;\">Selected only<\/span><\/strong> \u2014 import only selected data. Data are selected by lines using &#8220;Ctrl&#8221; and &#8220;Shift&#8221;;\n\n<strong><span style=\"text-decoration: underline;\">Volumes <\/span><\/strong>\u2014 enable\/disable importing of volumes.\n\nAfter historical data have been imported, they can be used to show charts and test Expert Advisors.\n\n<strong><span style=\"color: blue;\">Historical File Format (HST Files)<\/span><\/strong>\nThe database header is the first\n<div>\n<div>Code:<\/div>\n<pre>struct HistoryHeader\n{\n  int               version;            \/\/ database version\n  char              copyright[64];      \/\/ copyright info\n  char              symbol[12];         \/\/ symbol name\n  int               period;             \/\/ symbol timeframe\n  int               digits;             \/\/ the amount of digits after decimal point in the symbol\n  time_t            timesign;           \/\/ timesign of the database creation\n  time_t            last_sync;          \/\/ the last synchronization time\n  int               unused[13];         \/\/ to be used in future\n};<\/pre>\n<\/div>\nthen goes the bars array (single-byte justification)\n<div>\n<div>Code:<\/div>\n<pre>#pragma pack(push,1)\n\/\/---- standard representation of the quote in the database\nstruct RateInfo\n{\n  time_t            ctm;                \/\/ current time in seconds\n  double            open;\n  double            low;\n  double            high;\n  double            close;\n  double            vol;\n};\n#pragma pack(pop)\n\n<span style=\"font-size: medium;\"><span style=\"color: blue;\">Export of Quotes<\/span><\/span>\n\n Source data serving as a basis for the entire analytical work of the terminal user are those about security price changes. This information is provided by the brokerage company. Price data allow to draw symbol charts, research in financial markets, use various trading tactics, and make trade decisions. Quotes represent files with records in format of \"SYMBOL, BID, ASK, DATE\" (security symbol, bid price, ask price, date and time) and income in the terminal automatically as soon as connection to the server has been established.\n\n The terminal allows to export the current quotes to other programs in the real-time mode through \"DDE\" (Dynamic Data Exchange) protocol. This is a protocol of operational systems of MS Windows used for dynamic data exchange among various applications. Quotes are given through DDE only at incoming of new ticks (ADVISE mode), but not immediately on request (REQUEST mode) where the latest price is shown. N\/A is shown on the first REQUEST, and after the new price has been income, quotes will appear.\n\n To activate the export of quotes from the terminal through DDE, one has to enable the \"Enable DDE server\" option in the terminal settings.<\/pre>\n<div>\n<div>Quote:<\/div>\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\">\n<tbody>\n<tr>\n<td><strong><span style=\"color: red;\">Attention:<\/span><\/strong> History Data cannot be exported through DDE protocol. The current quotes are exported only when the client terminal is online.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<pre>DDE request formats and their possible results by the example of \"DDE-sample.xls\" file:<\/pre>\n<div>\n<div>Code:<\/div>\n<pre>  BID   request:    = MT4|BID!USDCHF         result:  1.5773  \n   ASK   request:    = MT4|ASK!USDCHF         result:  1.5778  \n   HIGH  request:    = MT4|HIGH!USDCHF        result:  1.5801  \n   LOW   request:    = MT4|LOW!USDCHF         result:  1.5741  \n   TIME  request:    = MT4|TIME!USDCHF        result:  21.05.02 9:52  \n   QUOTE request:    = MT4|QUOTE!USDCHF       result:  21.05.02 9:52 1.5773 1.5778 1.5776<\/pre>\n<\/div>\n<div>Quote:<\/div>\n<pre><strong><span style=\"color: red;\">Attention:<\/span><\/strong> For data to be shown properly in MS Excel, one has to enable \"Tools \u2014 Options... \u2014 Translation \u2014 Translation formula entry\" menu option of MS Excel.\n\n<span style=\"font-size: medium;\"><span style=\"color: blue;\">Global Variables<\/span><\/span>\n\n Several experts can be launched in the client terminal at the same time. Sometimes, there is a need them to interchange with information. To provide possibility of prompt transfer of moderate amounts of information among experts, as well as organize conflict-free simultaneous working of several experts, there are global variables in the terminal. Unlike variables claimed at a global level in the expert source code and available only within the corresponding module, global variables exsist independently on experts. Their values are saved between terminal launches, unlike those of variables claimed at a global level (they are set at every expert launch and lost at expert remove). Global variables are available within four weeks since their last call from experts or manual modifying.\n\n There is a special window in terminal that manages global variables. It can be opened by execution of the \"Tools \u2014 Global Variables\" menu command or by pressing of F3. All global variables, their values and times of their last calls are listed in a table in this window. Using buttons located in the right part of the window, one can add a new global variable or delete an existing one. To change the name or value of a global variable, one has to double-click with the left mouse button on the corresponding cell of the table. The last call time will be changed automatically for this variable. \n\n<span style=\"font-size: medium;\"><span style=\"color: blue;\">Contract Specification<\/span><\/span>\n\n This message window allows to view securities contract specifications. The main parameters are grouped in table with following fields:\n\n <strong><span style=\"text-decoration: underline;\">Spread<\/span><\/strong> \u2014 difference between Bid and Ask prices in points;\n\n <strong><span style=\"text-decoration: underline;\">Digits <\/span><\/strong>\u2014 the amount of digits after decimal point in the price representation;\n\n <strong><span style=\"text-decoration: underline;\">Stops level <\/span><\/strong>\u2014 minimum distance to the current price in points at which Stop Loss and Take Profit orders can be placed;\n\n <strong><span style=\"text-decoration: underline;\">Pendings are good till cancel<\/span><\/strong> \u2014 forced closing of pending orders at the end of a session. \"Yes\" means that pending orders will not be closed forcedly;\n\n <strong><span style=\"text-decoration: underline;\">Contract size <\/span><\/strong>\u2014 one-lot price in deposit currency;\n\n <strong><span style=\"text-decoration: underline;\">Tick price <\/span><\/strong>\u2014 the size of minimal price change in quote currency;\n\n <strong><span style=\"text-decoration: underline;\">Tick size<\/span><\/strong> \u2014 minimal symbol price change interval in points;\n\n <strong><span style=\"text-decoration: underline;\">Profit calculation mode<\/span><\/strong> \u2014 accepted profit calculation technique (Forex, CFD, Futures);\n\n <strong><span style=\"text-decoration: underline;\">Swap type <\/span><\/strong>\u2014 rollover calculation type (in points, in deposit currency, or in per cents);\n\n <strong><span style=\"text-decoration: underline;\">Swap long <\/span><\/strong>\u2014 rollover size for a long position;\n\n <strong><span style=\"text-decoration: underline;\">Swap short <\/span><\/strong>\u2014 rollover size for a short position;\n\n <strong><span style=\"text-decoration: underline;\">Margin calculation mode<\/span><\/strong> \u2014 accepted free margin calculation technique (Forex, CFD, Futures)\n\n <strong><span style=\"text-decoration: underline;\">Margin hedge<\/span><\/strong> \u2014 size of margin for hedged positions.\n\n The symbol specification window can be called by pressing of \"Properties\" button in the Market Watch window or the \"Symbol properties\" of the \"Tester \u2014 Settings\" window.\n\n<span style=\"font-size: medium;\"><span style=\"color: blue;\">Languages Support<\/span><\/span>\n\n The Client Terminal interface is multilingual. It can be represented in any available language. This feature makes the program not only easy-to-use, but also allows to reduce the amount of errors that occur during trading because of lack of understanding of foreign terms and notions. The list of all available languages can be found in the \"View \u2014 Languages\" menu. One can switch one's terminal to a language by selecting of this language in the list. The language can be changed actually only after restart of the terminal. \n\n<\/pre>\n<div id=\"post_message_3156\"><span style=\"font-size: medium;\"><span style=\"color: blue;\">Datacenter.ini<\/span><\/span>\n\nAdministrators of dealing centers who would like to redirect the clients&#8217; traffic forcedly have a new opportunity now. The Data Center used by the client terminal can be strictly defined using the configuration file named datacenter.ini. This file must be placed in the \/config directory of the client terminal.\n\nIf the &#8220;Data Center auto configuration&#8221; is flagged in the server settings, there will be an attempt to open and analyze the datacenter.ini file. If a data center for the server will be found in this file, the connection will be performed exactly to it. No more than one data center can be defined for one server.\n\nThe string format of the datacenter.ini:\n\n[server name][delimiter][data center address]\n\nwhere:\n\n<strong>server name<\/strong> is the name of the corresponding .srv file;\n\n<strong>delimiter<\/strong> is a comma or any quantity of spaces;\n\n<strong>data center address<\/strong> is the IP address : port number.\n\nLines that start with a semicolon (<img decoding=\"async\" title=\"Wink\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2012\/02\/152118i10.gif\" alt=\"\" border=\"0\"> are considered to be a comment and are not processed.\n\n<strong>Exemplary datacenter.ini file: <\/strong>\n<div>\n<div>Code:<\/div>\n<pre>  ;----------------\n  ;comment\n  ;----------------\n  MetaQuotes-demo1  192.168.1.4:443\n  MetaQuotes-demo2, 192.168.1.4:444\n  ;----------------\n  MetaQuotes-demo3  192.168.1.5:445\n  MetaQuotes-demo4, 192.168.1.5:446\n\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Configuration at Startup The client terminal can be launched with some predefined settings. For this&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-751","post","type-post","status-publish","format-standard","hentry","category-other"],"_links":{"self":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=751"}],"version-history":[{"count":1,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/751\/revisions"}],"predecessor-version":[{"id":753,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/751\/revisions\/753"}],"wp:attachment":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=751"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}