Click here for more information!

    Open Demo Account

    Free unlimited demo with $100'000 of virtual cash.

    Please fill in the form using English characters only.

    By submittig your telephone number and email you agree that FX Grant can contact you to help you with your demo account and inform you about our offers.
 
 

Our benefits

  • 5 and 4 decimal quotation for Forex in one platform.
  • Attractive lot size – starts from 0,01!
  • Automation: No Dealing Desk.
  • Desktop and mobile trading platforms.
  • Flexibility: 4 types of account with 6 types of instruments.
  • Affordable: Accounts from $10.
  • Service: 24/5 Client Support.
  • One click order execution.
  • Tight spreads from 0.5 pips.
  • Flexible leverage - more trading opportunities. From 1:1 to 1:500.
  • Zero margin requirements for opening hedged position.
  • EAs and scalpers welcome.
FX Grant Trading platform User Manual Auto Trading MetaQuotes Language 4

MetaQuotes Language 4

MetaQuotes Language 4 (MQL 4) is the language for programming of trade strategies built in the client terminal. It allows to write custom expert advisors that automate trade processes and ideally suit for implementation of traders' own strategies. Moreover, traders' own custom indicators, scripts and DLL's can be created in MQL 4.

Syntax of MQL 4 is quite similar to that of C language. A large amount of functions necessary to analyze quotes, manage positions, call technical indicators, and others, are included in MQL 4. The MetaEditor, an editor for expert advisors, is used for writing the source code of programs. The MetaQuotes Language Dictionary that contains descriptions of all language constructions and functions is built in the editor.

Programs written in MQL 4 are different in tasks and properties:

  • Expert Advisor is a mechanical trading system (MTS) to be run when a new tick incomes. It can work not only in the mode alerts, but also perform trade operations independently. Terminal allows to test trading strategies on history data in order to detect the expert features under different market conditions;

  • Custom Indicator is a technical indicator written individually. Custom indicators are used only for analyzing of price changes;

  • Script is a program that is intended for a single execution of some actions. Unlike experts, scripts are launched not tick by tick, but on a command.