Download MetaTrader 5

MetaTrader 4 Working under Antiviruses and Firewalls

19 September 2007, 13:30
MetaQuotes Software Corp.
1 904

Firewalls and Antiviruses

The most of traders use special programs to protect their PCs. Unfortunately, these programs don't only protect computers against intrusions, viruses and Trojans, but also consume a significant amount of resources. This relates to network traffic, first of all, which is wholly controlled by various intelligent antiviruses and firewalls.

The reason for writing this article was that traders complained of slowed MetaTrader 4 Client Terminal when working with Outpost Firewall. We decided to make our own research using Kaspersky Antivirus 6.0 and Outpost Firewall Pro 4.0:

Testing of Various Configurations

Since the MetaTrader 4 Client Terminal creates connections to the trade server, the protecting programs monitor network traffic trying to find some "injurious acts" in it. Depending on the amount of characteristics to be checked, network operations may be slowed seriously. The situation is dramatized by the fact that MetaTrader 4 uses standard port 443 (HTTPS, SSL), through which it exchange enciphered data via its protocol.

Having tested various configurations of Outpost Firewall and Kaspersky Antivirus in many different ways, we discovered that Outpost Firewall slowed all MetaTrader's network connections by extra 3 seconds. If the terminal completes connection to server on a "blank" (free of firewalls or antiviruses) PC within one second, the connection time increases up to four seconds at enabled Outpost Firewall. Kaspersky Antivirus does not influence the connecting time in any way.


The conclusions are not encouraging:

  • the use of Outpost Firewall configured by default obviously results in the terminal operating delays;
  • the trading speed slows disastrously since trades often need opening additional network connections.

In all appearances, Outpost Firewall tries to decode the transferred data unsuccessfully, taking them as normal HTTPS traffic. However, a delay of 3 (Three) seconds on the simplest connection means that the firewall obviously "act in excess of its rights" and harms to traders!

A Solution of the Problem

In testing, we found out that it was sufficient to add MetaTrader 4 Client Terminal to the trusted list and set up a special rule for it:

Enable all outgoing TCP connections and ignore component control.

This results in that the firewall does not control the terminal operation too strictly and there are no losses in connecting speed anymore. The terminal works quickly again!

Translated from Russian by MetaQuotes Software Corp.
Original article:

Step on New Rails: Custom Indicators in MQL5 Step on New Rails: Custom Indicators in MQL5

I will not list all of the new possibilities and features of the new terminal and language. They are numerous, and some novelties are worth the discussion in a separate article. Also there is no code here, written with object-oriented programming, it is a too serous topic to be simply mentioned in a context as additional advantages for developers. In this article we will consider the indicators, their structure, drawing, types and their programming details, as compared to MQL4. I hope that this article will be useful both for beginners and experienced developers, maybe some of them will find something new.

Here Comes the New MetaTrader 5 and MQL5 Here Comes the New MetaTrader 5 and MQL5

This is just a brief review of MetaTrader 5. I can't describe all the system's new features for such a short time period - the testing started on 2009.09.09. This is a symbolical date, and I am sure it will be a lucky number. A few days have passed since I got the beta version of the MetaTrader 5 terminal and MQL5. I haven't managed to try all its features, but I am already impressed.

Using text files for storing input parameters of Expert Advisors, indicators and scripts Using text files for storing input parameters of Expert Advisors, indicators and scripts

The article describes the application of text files for storing dynamic objects, arrays and other variables used as properties of Expert Advisors, indicators and scripts. The files serve as a convenient addition to the functionality of standard tools offered by MQL languages.

How to create an indicator of non-standard charts for MetaTrader Market How to create an indicator of non-standard charts for MetaTrader Market

Through offline charts, programming in MQL4, and reasonable willingness, you can get a variety of chart types: "Point & Figure", "Renko", "Kagi", "Range bars", equivolume charts, etc. In this article, we will show how this can be achieved without using DLL, and therefore such "two-for-one" indicators can be published and purchased from the Market.