MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

BvsB Indicator
BvsB
Author: VladMsk
Drawing Indicator's Emissions in MQL5 Drawing Indicator's Emissions in MQL5 Subscribe to signal
SWXAU
52.13%, 4 681.58 USD
RSI on Realtime DealsRSI on Realtime Deals Try product
RSI on Realtime Deals
Author: song_song
Screenshot
EURUSD, M5
Real

Compound Operator

A compound operator (a block) consists of one or more operators of any type, enclosed in braces {}. The closing brace must not be followed by a semicolon (;).

Example:

if(x==0)
  {
   Print("invalid position x = ",x);
   return;
  }

See also

Initialization of Variables, Visibility Scope and Lifetime of Variables, Creating and Deleting Objects


Updated: 2010.08.05