文档介绍:MQL4 Reference
MQL4命令手册
(本手册采取Office2007编写)
2010年2月
目录
MQL4 Reference 1
MQL4命令手册 1
Basics底子 12
Syntax语法 12
Comments注释 12
Identifiers标识符 12
Reserved words保存字 13
Data types数据类型 13
Type casting类型转换 14
Integer constants整数常量 14
Literal constants字面常量 14
Boolean constants布尔常量 15
Floating-point number constants (double)浮点数常量(双精度) 15
String constants字符串常量 15
Color constants颜色常数 16
Datetime constants日期时间常数 16
Operations & Expressions操纵表达式 17
Expressions表达式 17
Arithmetical operations算术运算 17
Assignment operation赋值操纵 17
Operations of relation操纵干系 18
Boolean operations布尔运算 18
Bitwise operations位运算 19
Other operations其他运算 19
Precedence rules优先规矩 20
Operators操纵符 21
Compound operator复合操纵符 21
Expression operator表达式操纵符 21
Break operator终止操纵符 21
Continue operator继承操纵符 22
Return operator返回操纵符 22
Conditional operator if-else条件操纵符 23
Switch operator跳转操纵符 23
Cycle operator while循环操纵符while 24
Cycle operator for循环操纵符for 24
Functions函数 25
Function call函数调用 26
Special functions特殊函数 27
Variables变量 27
Local variables局部变量 28
Formal parameters形式变量 28
Static variables静态变量 29
Global variables全局变量 29
Defining extern variables外部界说变量 30
Initialization of variables初始化变量 30
External functions definition外部函数的界说 30
Preprocessor预处理惩罚 31
Constant declaration常量声明 31
Controlling compilation编译控制 32
Including of files包罗文件 32
Importing of functions导入成果 33
Standard constants标准常数 35
Series arrays系列数组 35
Timeframes图表周期时间 35
Trade operations生意业务操纵 36
Price constants代价常数 36
MarketInfo市场信息识别符 36
Drawing styles画线气势派头 37
Arrow codes预界说箭头 38
Wingdings宋体 39
Web colors颜色常数 39
Indicator lines指标线 40
Ichimoku Kinko Hyo 41
Moving Average methods移动平均要领 41
MessageBox信息箱 41
Object types东西类型 43
Object properties东西属性 44
Object visibility 45
Uninitialize reason codes取消初始化原因代码 45
Special constants特别常数 46
Error codes错误代码 46
Predefined variables预界说变量 50
Ask最新卖价 50
Bars柱数 50
Bid最新买价 50
Close[]收盘价 51
Digits汇率小数位 51
High[]最