MetaTrader 4帮助
MetaTrader 4帮助Client Terminal SettingsFTP

FTP

Terminal allows to publish reports about the account status in internet automatically. To do so, one has to set up internet connection parameters through FTP (File Transfer Protocol). This can be done in the "FTP" tab:

FTP

The following parameters are available on this tab:

  • FTP server – FTP server address the report to be sent to. Example: ftp.your_domain_name.com;
  • FTP path – name of the FTP server directory where the report will be placed. The path (starting with the root directory) for sending reports must be given in this field. Example: /report_shots;
  • FTP login – login for authorization at the FTP server;
  • FTP password – password for access to the FTP server;
  • Passive mode – switch between active and passive mode of data transfer.
    In active mode, a free port (from dynamic range of 1024 to 65535) is allotted in the client terminal to which the server will connect in order to set connection for transferring of data. The FTP server connects to the client's port with the given number using TCP port 20 from its part to transfer data. In passive mode, the server informs the client about the TCP port number (from the dynamic range of 1024 to 65535) to which the client can connect to set up data transfer.
     
    The main difference between active and passive FTP mode is the part that opens connection for data transferring. In active mode, it is the client who has to accept connection from the FTP server. In passive mode, the client initiates connection, and the server accepts it.
  • Enable automatic publishing of reports via FTP – enable support reports publishing. If disabled, other fields are inaccessible;
  • Account – the account number the report for which should be published;
  • Refresh every – periodicity of sending reports to the web server (in minutes).

Attention: Reports of only active accounts can be published. If the account number given in this field does not match with the current one, the reports will not be published.

The "Test" button sends report about the current account status using the specified settings that allows to check their workability. If it has been tested successfully, the "OK" button must be pressed to activate these settings. If the test did not succeed, it is recommended to check all settings again and retest.

The client terminal publishes common reports on default. In order to publish a detailed report, you should rename the "StatementDetailed.htm" file located in the /TEMPLATES directory into "Statement.htm".