MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Basics  Syntax

 

Syntax of MQL4 is much a C-like syntax, apart from some features:

  • no address arithmetic;

  • no operator do ... while;

  • no operator goto ...;

  • no operation of [condition]?[expression 1]:[expression 2];

  • no compound data types (structures);

  • complex assignments are impossible; for example, val1=val2=0; arr[i++]=val; cond=(cnt=OrdersTotal)>0; etc.;

  • calculation of a logical expression is always completed, never early terminated.