1 MQL4 Reference MQL4 命令手册 (本手册采用 Office2007 编写) 2010 年 2 月 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 颜色常数 ....