SearchLanguage: russian | english | chinese
MetaQuotes Software Corp. - Online trading platform: Forex, Futures, CFD.
Site Search

Articles

In this section you can find articles dealing with various aspects of creating and using expert advisors and custom indicators. Before starting to write your own programs in MQL4, read these articles carefully. You are sure to find answers to your questions here.

Along with expert advisors and custom indicators, it is also possible to create and use scripts and libraries. The main difference between a script and an expert advisor is the way they are used: Expert Advisors are executed for each tick, while Scripts are executed only once, on request. For example, with a script, you can implement various sequences of actions for the client terminal, displaying additional messages or waiting for some actions from the user.

Libraries are used to create archives with custom functions. It means that a software developer can collect her/his original functions in library files and call them from any custom program. As soon as a library is created all functions described in it are compiled and saved for the future use. It is worth mentioning that functions being not called are removed from the code of expert advisors, custom indicators, and scripts during the compilation process in order to optimize it. This is the peculiarity of creating libraries in MQL 4 as compared to other programs.

Warning: All rights on these materials are reserved by MetaQuotes Software Corp. Copying or reprinting of these materials in whole or in part is prohibited.

Company | MetaTrader 4 | Technical Analysis | Expert Advisors | Support
Copyright © 2000—2008 MetaQuotes Software Corp.