Download MetaTrader 5

MetaTrader 4 Working under Antiviruses and Firewalls

19 September 2007, 13:30
MetaQuotes Software Corp.
2 376

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:

Indicator Alternative Ichimoku – Setup, Examples of Usage Indicator Alternative Ichimoku – Setup, Examples of Usage

How to set up Alternative Ichimoku correctly? Read the description of parameters setting up. The article will help you understand the methods of setting up parameters not only of the indicator Ichimoku. Certainly you will also better understand how to set up the standard Ichimoku Kinko Hyo.

How to Make the Detection and Recovery of Errors in an Expert Advisor Code Easier How to Make the Detection and Recovery of Errors in an Expert Advisor Code Easier

In Export Advisors development, the questions of code errors detection and recovery are very important. The peculiarity is that a not detected in time error may ruin a precious idea of a trading system already on the stage of its first testings. That is why any sensible EA developer takes into account such problems from the very beginning. This article dwells on some approaches, helping in this difficult matter.

Transferring an Indicator Code into an Expert Advisor Code. Indicator Structure Transferring an Indicator Code into an Expert Advisor Code. Indicator Structure

This article dwells on the ways of transferring an indicator code into an Expert Advisor Code and on writing Expert Advisors with no calling to custom indicators, and with the whole program code for the calculation of necessary indicator values inside the Expert Advisor. This article gives a general scheme of an indicator structure, emulation of indicator buffers in an Expert Advisor and substitution of the function IndicatorCounted(). The article is intended for readers, already having experience of programming in MQL4 language.

Problems of Technical Analysis Revisited Problems of Technical Analysis Revisited

At present, technical analysis along with the fundamental one is the most important method to analyze stock market. Being one of the predicting methods of stock market pricing dynamics, the technical analysis has a large amount of disadvantages that cast some doubt on its practical applicability.