MetaTrader 4 Help

Events

Signals of system events can be set up in the terminal (not to be mixed up with alerts). It is a very convenient tool informing about changes in the terminal status. Signals can be set up in this tab. For this to be done, the "Enable" option must be enabled first. At that, a table containing the list of system events and corresponding actions will become active.

options_events

System events are:

  • Connect – connection to the server. Signal of successful connection to the server;
  • Disconnect – no connection to the server. Signal of interrupted connection to the server;
  • Email Notify – notifying by email. If this signal has triggered, it is recommended to check the "Terminal – Mailbox" window;
  • Timeout – a certain time range is predefined for performing trade operations. If this range has been exceeded for some reason, the operation will not be performed, and this signal will trigger;
  • OK – trade operation has been successfully performed. No errors occurred when performing this operation;
  • News – receiving of news. If this signal has triggered, it is recommended to check the "Terminal – News" window;
  • Expert Advisor – this signal triggers when an expert advisor is performing a trade operation;
  • Alert – performing the Alert() function by an expert advisor;
  • Requote – price changed during preparation of a trade operation;
  • Trailing Stop – triggering of the order of the same name.

If there is a need to disable any of the signals, it is necessary to double-click on its name or icon with the left mouse button. Another double click will activate it again. After the signal has been triggered, the file specified in the "Action" field of the corresponding event will run. A double click on the file name allows to change the file. After double-clicking a pop-up list of available files to be assigned for the event will appear. You can also choose any other file by using the "Choose other..." item in the list. Selection of any file from this list and further Enter button pressing means that it is assigned to the corresponding event. To confirm all changes made, one has to press the "OK" button.

Attention: Any file executable in the operation system can be assigned to the event.