Download MetaTrader 5

MetaTrader 4 Working under Antiviruses and Firewalls

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

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.

Portfolio trading in MetaTrader 4 Portfolio trading in MetaTrader 4

The article reveals the portfolio trading principles and their application to Forex market. A few simple mathematical portfolio arrangement models are considered. The article contains examples of practical implementation of the portfolio trading in MetaTrader 4: portfolio indicator and Expert Advisor for semi-automated trading. The elements of trading strategies, as well as their advantages and pitfalls are described.

False trigger protection for Trading Robot False trigger protection for Trading Robot

Profitability of trading systems is defined not only by logic and precision of analyzing the financial instrument dynamics, but also by the quality of the performance algorithm of this logic. False trigger is typical for low quality performance of the main logic of a trading robot. Ways of solving the specified problem are considered in this article.