Scripts

A script is a program written in MetaQuotes Language 5 (MQL5) and is designed for the single performing of any actions. A script can perform both analytical and trading functions. Unlike Expert Advisors, scripts are executed on requests. In other words, if an Expert Advisor works almost continuously, a script stops functioning having completed its function once.

Working with scripts means:

  • Creation of a Script
    The built-in development environment MetaEditor is used for script creation and compilation. MetaEditor is a component part of the client terminal and represents a convenient tool for writing and debugging of MQL5 programs.
  • Script Setup and Start
    Prior to using scripts, one should set up them first. Operation parameters common for all scripts are set up in the client terminal settings window. Besides, each script has its own parameters. A script is started by being imposed to a chart. The script algorithm is started immediately after that.
  • Script Shutdown
    A script completes its operation as soon as it is removed from a chart.

You can download and share ready scripts in the special CodeBase section of the MQL5.Community official website.

 

Removal
Creation

MetaTrader 5 — a complex trading platform for providing brokerage services on the retail Forex market.

Copyright 2000-2012, MetaQuotes Software Corp.