Metatrader Programming Overview
Metatrader is one of the most popular trading platform among presently existing. Wide configuration and control possibilities for brokers and robust programming tool - integrated MQL language - for traders make the system handy and versatile in use at its maximum.
MQL integrated programming language is a C++ like language. Its concepts and syntax are familiar to a majority of programmers and this allows to conserve time resources during the learning phase. It is enough to grasp syntax and basic idea of Metatrader trading platform to start programming in MQL language.
By means of MQL language it is possible to create several program types:
Expert Advisor. The main goal for Expert Advisors is to carry trading operations in automatic mode following prescribed rules and by that freeing trader from the routine work. Expert Advisors can use in its work Custom Indicators and Libraries. Back Test Strategy Tester allows to conduct strategy profitability testing on historical data which shortens development terms dramatically.
Custom Indicator. Classical indicators posses visual constituent as well as internal buffers to be able to be used in Expert Advisors. Non standard approaches are also possible though such as object usage, audio announcement systems and others.
Script. In distinction from Custom Indicators and Expert Advisors scripts allow to execute some code once. This is useful for semiautomatic operation execution by trader. For example, open order with definite parameters or set Stop Loss Level to a new value. For each of new scripts it is possible to assign hot key, which makes script usage process fast and practical. It is worth noting also one of the advantages of scripts - instant execution. Custom Indicators and Expert Advisors execute code only on price change on current currency pair.
Library. Repeatedly used functions and code pieces can be grouped into libraries. It is possible to use libraries written in MQL or in any other language. Using interface for linking external libraries provides traders with unlimited possibilities in their ideas implementation.