Nur Nutzer, die das Produkt gekauft oder gemietet haben, können Kommentare hinterlassen
Denis Zyatkevich  

Русский текст ниже.


Input Parameters of the Expert Advisor

  • Push Notify Trade Events - select what trade events you want to be notified to the mobile terminal ("Off" - notifications disabled, "Open/Close positions" - notifying only of opening/closing positions, "All events" - notifying of all trade events);
  • Push Notify Balance - enabling and disabling notifications to the mobile terminal about the trading account balance changes ("Off" - disabled, "On" - enabled);
  • Push Notify Leverage - enabling and disabling notifications to the mobile terminal about the trading account leverage changes ("Off" - disabled, "On" - enabled);
  • Push Notify Critical Equity - critical value of Equity on the trade account (in deposit currency). When this value is reached, the notification is sent to the mobile terminal ("0" - disabled);
  • Push Notify Critical Margin - critical value of Free Margin comparing to Margin in percentage terms. When this value is reached, the notification is sent to the mobile terminal ("0" - disabled);
  • Push Repeat Interval - minimum time interval (in seconds) between sending push notifications in case the critical level of free margin of equity is reached;
  • Push Notify Interval - minimum time interval (in seconds) between notifications sent to the mobile terminal;
  • Push Length Limit - maximum length of a message sent to the mobile terminal;
  • Mail Notify Trade Events - select what trade events you want to be notified via e-mail ("Off" - notifications disabled, "Open/Close positions" - notifying only of opening/closing positions, "All events" - notifying of all trade events);
  • Mail Notify Balance - enabling and disabling notifications via e-mail about the trading account balance changes ("Off" - disabled, "On" - enabled);
  • Mail Notify Leverage - enabling and disabling notifications via e-mail about the trading account leverage changes ("Off" - disabled, "On" - enabled);
  • Mail Notify Critical Equity - critical value of Equity on the trade account (in deposit currency). When this value is reached, the notification is sent via e-mail ("0" - disabled);
  • Mail Notify Critical Margin - critical value of Free Margin comparing to Margin in percentage terms. When this value is reached, the notification is sent via e-mail ("0" - disabled);
  • Mail Repeat Interval - minimum time interval (in seconds) between sending e-mails in case the critical level of free margin of equity is reached;
  • Mail Notify Interval - minimum time interval (in seconds) between notifications sent via e-mail;
  • Sound Notify Trade Events - select what trade events you want to be notified of via sound notifications ("Off" - notifications disabled, "Open/Close positions" - notifying only of opening/closing positions, "All events" - notifying of all trade events);
  • Sound Notify Balance - enabling and disabling the sound notifications about the trading account balance changes ("Off" - disabled, "On" - enabled);
  • Sound Notify Leverage - enabling and disabling the sound notifications about the trading account leverage changes ("Off" - disabled, "On" - enabled);
  • Sound Notify Critical Equity -critical value of Equity on the trade account (in deposit currency). When this value is reached, the sound notification is played;
  • Sound Notify Critical Margin - critical value of Free Margin comparing to Margin in percentage terms. When this value is reached, the sound notification is played;
  • Sound Repeat Interval - minimum time interval (in seconds) between playing sound notifications in case the critical level of free margin of equity is reached;
  • Sound Notify Interval - minimum time interval (in seconds) between sound alarm notifications;
  • Sound File Name - name of the sound file played activated an event occurs;
  • Magic Number - orders and positions identifier ("-1" - notifications for all orders and positions);
  • Used_Time - time specified in messages sent to the mobile terminal or via email ("MT4 Server Time" - trade server time, "Local Time" - time of the PC the Expert Advisor is running at);
  • Show_Information - show or hide information about the server time, local time and the settings and conditions of triggering of notifications.


Calculating Free Margin Level

The Expert Advisor can notify of decreasing Free Margin compared to Margin. Let's examine calculation of Free Margin level in more details. In most cases (including MetaTrader 4 trading terminal), Margin value is defined considering Leverage provided by a broker. But the broker can change the leverage value at any time, and the Margin value also changes subsequently. Most often, the leverage value is not so critical for trading (unless trading is conducted in a risky manner using the maximum possible position volume). Therefore, this Expert Advisor calculates the Margin value without regard to the leverage. Free Margin level is defined as a ratio of Free Margin to Margin in percentage value.

Let's consider the following example. Suppose that 1 lot equals to 100 000 units of the base currency. Position at EURUSD is opened having the volume of 0.10 lots at the price of 1.3 USD per 1 EUR. For buying or selling 0.10 * 100 000 = 10 000 EUR we will need 13 000 USD. This value is considered to be the Margin for the present Expert Advisor (though in most cases a leverage is applied to that value, for example, if leverage is 1:100, then we will have 130 USD of Margin). If the deposit is equal to 1000 USD, Free Margin will be equal to 1000 - 130 = 870 USD after opening a position, while the Margin level will be calculated as 870 / 13 000 = 0.0669 or 6.69 %. If we set the Margin limit, at which notification is delivered, to 5%, the notification will be sent in case of Free Margin being equal to 0.05 * 13 000 = 650 USD or Equity comprising 650 + 130 = 780 USD.

Despite the apparent complexity of defining the Free Margin level, this method provided the most informative results in actual practice.


Sending Notifications to the Mobile Terminal

First of all, you should have mobile version of MetaTrader 4 or MetaTrader 5 terminal installed on your Android or iOS powered device to receive notifications.

You should also allow sending push notifications in MetaTrader 4 trading terminal, on which the EA is to be launched. To do this, enter Tools – Options – Notifications tab, turn "Enable Push Notifications" parameter on and specify MetaQuotes_ID that can be found on Messages tab of the mobile terminal.


Sending Notifications Via E-Mail

To receive notifications via e-mail, you should allow sending emails in the settings of MetaTrader 4 trading terminal, at which NotifyMe Free for MT4 is launched. To do this, enter Tools – Options – Email tab, turn Enable parameter on and specify your e-mail account and SMTP e-mail server parameters.

Messages sent by the Expert Advisor via e-mail have subject "Account account_number notification". 


Spund Notifications

"Sound File Name" allows you to set the name of an audio file to be activated when a notification arrives. A file in .wav format should be located in terminal_folder/sounds or its subdirectory.
Denis Zyatkevich  

Входные параметры советника

  • Push Notify Trade Events - выбор торговых событий, уведомления о которых будут отправляться на мобильный терминал ("Disabled" - выключены уведомления, "Open/Close positions" - уведомления об открытии и закрытии позиций, "All events" - уведомления обо всех торговых событиях);
  • Push Notify Balance - включение и выключение уведомлений на мобильный терминал об изменении баланса торгового счета ("Off" - выключены, "On" - включены);
  • Push Notify Leverage - включение и выключение уведомлений на мобильный терминал об изменении плеча торгового счета ("Off" - выключены, "On" - включены);
  • Push Notify Critical Equity - критическая величина собственных средств (Equity) на торговом счете (в валюте депозита), при достижении которой будет отправлено уведомление на мобильный терминал ("0" - выключены уведомления);
  • Push Notify Critical Margin - критический уровень свободных средств (Free Margin) по сравнению с залоговыми средствами (Margin) в процентах, при достижении которого будет отправлено уведомление на мобильный терминал ("0" - выключены уведомления);
  • Push Repeat Interval - минимальный промежуток времени (в секундах) между формированиями push-сообщений в случае достижения критического уровня собственными средствами или свободными средствами;
  • Push Notify Interval - минимальный промежуток времени (в секундах) между отправкой уведомлений на мобильный терминал;
  • Push Length Limit - максимальная длина сообщения, отправляемого на мобильный терминал;
  • Mail Notify Trade Events - выбор торговых событий, уведомления о которых будут отправляться по электронной почте ("Disabled" - выключены уведомления, "Open/Close positions" - уведомления об открытии и закрытии позиций, "All events" - уведомление обо всех торговых событиях);
  • Mail Notify Balance - включение и выключение уведомлений по электронной почте об изменении баланса торгового счета ("Off" - выключены, "On" - включены);
  • Mail Notify Leverage - включение и выключение уведомлений по электронной почте об изменении плеча торгового счета ("Off" - выключены, "On" - включены);
  • Mail Notify Critical Equity - критическая величина собственных средств (Equity) на торговом счете (в валюте депозита), при достижении которой будет отправлено уведомление по электронной почте ("0" - выключены уведомления);
  • Mail Notify Critical Margin - критический уровень свободных средств (Free Margin) по сравнению с залоговыми средствами (Margin) в процентах, при достижении которого будет отправлено уведомление по электронной почте ("0" - выключены уведомления);
  • Mail Repeat Interval - минимальный промежуток времени (в секундах) между формированиями писем в случае достижения критического уровня собственными средствами или свободными средствами;
  • Mail Notify Interval - минимальный промежуток времени (в секундах) между отправкой уведомлений по электронной почте;
  • Sound Notify Trade Events - выбор торговых событий, уведомления о которых будут осуществляться звуковым сигналом ("Disabled" - выключен сигнал, "Open/Close positions" - сигнал при открытии и закрытии позиций, "All events" - сигнал при наступлении любого торгового события);
  • Sound Notify Balance - включение и выключение уведомлений в виде звукового сигнала об изменении баланса торгового счета ("Off" - выключены, "On" - включены);
  • Sound Notify Leverage - включение и выключение уведомлений в виде звукового сигнала об изменении плеча торгового счета ("Off" - выключены, "On" - включены);
  • Sound Notify Critical Equity - критическая величина собственных средств (Equity) на торговом счете (в валюте депозита), при достижении которой будет подано уведомление в виде звукового сигнала ("0" - выключены уведомления);
  • Sound Notify Critical Margin - критический уровень свободных средств (Free Margin) по сравнению с залоговыми средствами (Margin) в процентах, при достижении которого будет подано уведомление в виде звукового сигнала ("0" - выключены уведомления);
  • Sound Repeat Interval - минимальный промежуток времени (в секундах) между формированиями уведомлений звуковым сигналом в случае достижения критического уровня собственными средствами или свободными средствами;
  • Sound Notify Interval - минимальный промежуток времени в секундах между уведомлениями звуковым сигналом;
  • Sound File Name - имя звукового файла, который проигрывается в качестве уведомления при наступлении события;
  • Magic Number - идентификатор ордеров и позиций, по которым будут поступать уведомления ("-1" - по всем);
  • Used Time - выбор времени, которое указывается в сообщениях, поступающих на мобильный терминал и по электронной почте ("MT4 Server Time" - время торгового сервера, "Local Time" - локальное время компьютера, на котором запущен советник);
  • Show Information - выводить на экран ("Show") или нет ("Hide") информацию о серверном и локальном времени, а также о текущих настройках и условиях срабатывания уведомлений.

Отправка уведомлений на мобильный терминал

Для получения уведомлений на мобильном терминале, имеющем операционную систему iOS или Android, необходимо, чтобы на нем была установлена мобильная версия торгового терминала MetaTrader 4 или MetaTrader 5.

Для отправки уведомлений на мобильный терминал также необходимо разрешить отправку push-уведомлений в параметрах торгового терминала MetaTrader 4, в котором будет запущен советник. Это можно сделать, зайдя в меню "Сервис" ("Tools"), подменю "Настройки" ("Options"), вкладку "Уведомления" ("Notifications")) и включив параметр "Разрешить Push-уведомления" ("Enable Push Notifications"), также следует указать MetaQuotes_ID, который можно узнать на вкладке "Сообщения" ("Messages") мобильного терминала.


Отправка уведомлений по электронной почте

Для получения уведомлений по электронной почте необходимо в параметрах торгового терминале MetaTrader 4, в котором будет запущен советник, разрешить отправку электронных писем. Это можно сделать, зайдя в меню "Сервис" ("Tools"), подменю "Настройки" ("Options"), вкладку "Email" ("Почта") и включив параметр "Разрешить" ("Enable"), также следует указать параметры учетной записи почты и почтового сервера SMTP.

Письма, отправляемые советником по электронной почте, имеют тему "Account номер_счета notification".


Уведомления с помощью звукового сигнала

При помощи входного параметра Sound_File_Name можно указать имя звукового файла, который будет проигрываться при уведомлениях. Файл должен быть в формате wav и располагаться в каталоге каталог_терминала/sounds или его подкаталоге.


Вывод информации на экран

Если во входном параметре Show_Information указано значение "Show", в левый верхний угол графика будет выводиться информация о серверном и локальном времени, настройках и условиях, для каждого типа уведомления.