Aide MetaTrader 4
Aide MetaTrader 4Client Terminal SettingsExpert Advisors

Expert Advisors

Settings of working with Expert Advisors are grouped in this tab.

options_experts

Expert Advisors in the terminal are programs written in MetaQuotes Language 4 and allowing to analyze and trade in the automatic mode (auto trading). The description of how to create and use experts is given in the "Auto Trading" section. The given section describes only settings common for all experts:

  • Allow Auto Trading – this option allows to enable or disable the performing of trade operations by Expert Advisors and scripts. If it is disabled, scripts and Expert Advisors will work, but they won't be able to trade. This limitation can be useful for testing the analytical capacity of an Expert Advisor in the real-time mode (not to be confused with testing of Expert Advisors on history data). Automated trading can also be allowed or disabled using AutoTrading button on the toolbar.
    The option enables/disables autotrading for the entire terminal. If you disable it, no Expert Advisor will be allowed to trade, even if you enable autotrading in the EA settings. If you enable it, the Expert Advisors will be allowed to trade, if autotrading is enabled in their settings.
  • Disable Auto Trading when the account has been changed – this option represents a protective mechanism disabling trading by Expert Advisors and scripts when the account is changed. It is useful, for example, when one changes demo account for a real one.
  • Disable Auto Trading when the profile has been changed – a large amount of information about the current settings of all charts in the workspace is stored in profiles. Particularly, profiles contain information about Expert Advisors attached. Expert Advisors included into the profile will start working when a new tick incomes. Having enabled this option, one can hinder the trading by the Expert Advisors launching when the profile has been changed.
  • Disable Auto Trading when the charts symbol or period has been changed – if this option is enabled, then when the period or symbol of a chart is changed the expert advisor, which is attached to it, will be automatically prohibited to perform trade operations.
  • Allow DLL imports (potentially dangerous, enable only for trusted applications)
    To enlarge their functionality, expert advisors can use DLLs (dynamic-links libraries). If it is enabled, such libraries can be used without any limitations. If this option is disabled, no expert can use external DLLs. It is recommended to disable import when working with unknown experts.
  • Allow WebRequest for listed URL
    The WebRequest() function in MQL4 is used for receiving and sending information to websites using GET and POST requests. To allow an MQL4 application to send such requests, enable this option and manually explicitly specify the URLs of trusted websites. For security reasons, the option is disabled on default.
    To delete an address from the trusted list, select it and press "Delete" button.

Attention: Values of options named "Allow Auto trading", "Allow DLL imports (potentially dangerous, enable only for trusted applications)" and "Allow WebRequest for listed URL" specified in this window are default parameters for MQL4 programs newly attached. They do not influence the operation of expert advisors, custom indicators and scripts already running.