没有合适的资源?快使用搜索试试~ 我知道了~
首页MQL4命令中文手册pdf版
MQL4命令中文手册pdf版
5星 · 超过95%的资源 需积分: 37 216 下载量 114 浏览量
更新于2023-03-16
评论 7
收藏 1.82MB PDF 举报
开发MT4交易平台智能交易系统需使用MQL4语言,本书详细介绍了MQL4的使用方法,介绍了各类语法、函数。另外,不同于以前的版本,这个版本的内容进行了更新修订,修改了许多错误之处
资源详情
资源评论
资源推荐
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 颜色常数................................................................................... 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
3
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[]最高价 .................................................................................................... 51
Low[]最低价 ..................................................................................................... 52
Open[]开盘价 ................................................................................................... 53
Point 点值 ........................................................................................................ 53
Time[]开盘时间 ................................................................................................ 53
Volume[]成交量 ................................................................................................ 54
Program Run 程序运行 .................................................................................................... 56
Program Run 程序运行 ............................................................................................. 56
Imported functions call 输入函数调用 ........................................................................ 57
4
Runtime errors 运行错误 .......................................................................................... 57
Account information 账户信息.......................................................................................... 68
AccountBalance( )账户余额 ....................................................................................... 68
AccountCredit( )账户信用点数 .................................................................................. 68
AccountCompany( )账户公司名 ................................................................................. 68
AccountCurrency( )基本货币 ..................................................................................... 68
AccountEquity( )账户资产净值 .................................................................................. 68
AccountFreeMargin( )账户免费保证金 ....................................................................... 69
AccountFreeMarginCheck()账户当前价格自由保证金 ................................................. 69
AccountFreeMarginMode( )账户免费保证金模式........................................................ 69
AccountLeverage( )账户杠杆 ..................................................................................... 69
AccountMargin( )账户保证金 .................................................................................... 69
AccountName( )账户名称.......................................................................................... 70
AccountNumber( )账户数字 ...................................................................................... 70
AccountProfit( )账户利润 .......................................................................................... 70
AccountServer( )账户连接服务器 .............................................................................. 70
AccountStopoutLevel( )账户停止水平值 ..................................................................... 70
AccountStopoutMode( )账户停止返回模式 ................................................................ 71
Array functions 数组函数 ................................................................................................. 72
ArrayBsearch()数组搜索............................................................................................ 72
ArrayCopy()数组复制 ................................................................................................ 72
ArrayCopyRates()数组复制走势 ................................................................................. 73
ArrayCopySeries()数组复制系列走势 ......................................................................... 74
ArrayDimension()返回数组维数................................................................................. 75
ArrayGetAsSeries()返回数组序列 ............................................................................... 75
ArrayInitialize()数组初始化........................................................................................ 75
ArrayIsSeries()判断数组连续 ..................................................................................... 75
ArrayMaximum()数组最大值定位 .............................................................................. 76
ArrayMinimum()数组最小值定位............................................................................... 76
ArrayRange()返回数组指定维数数量 ......................................................................... 76
ArrayResize()改变数组维数 ....................................................................................... 77
ArraySetAsSeries()设定系列数组................................................................................ 77
ArraySize()返回数组项目数 ....................................................................................... 78
ArraySort()数组排序 ................................................................................................. 78
Checkup 检查.................................................................................................................. 79
GetLastError( )返回最后错误 ..................................................................................... 79
IsConnected( )返回联机状态 ..................................................................................... 79
IsDemo( )返回模拟账户 ............................................................................................ 79
IsDllsAllowed( )返回 dll 允许调用............................................................................... 80
IsExpertEnabled( )返回智能交易开启状态 .................................................................. 80
IsLibrariesAllowed( )返回数据库函数调用 .................................................................. 80
IsOptimization( )返回策略测试中优化模式................................................................. 81
IsStopped( )返回终止业务......................................................................................... 81
IsTesting( )返回测试模式状态.................................................................................... 81
5
IsTradeAllowed( )返回允许智能交易 .......................................................................... 81
IsTradeContextBusy( )返回其他智能交易忙 ................................................................ 82
IsVisualMode( )返回智能交易“图片模式”............................................................... 82
UninitializeReason( )返回智能交易初始化原因 ........................................................... 82
Client terminal 客户端信息 .............................................................................................. 83
TerminalCompany( )返回客户端所属公司................................................................... 83
TerminalName( )返回客户端名称 .............................................................................. 83
TerminalPath( )返回客户端文件路径.......................................................................... 83
Common functions 常规命令函数..................................................................................... 84
Alert 弹出警告窗口 .................................................................................................. 84
Comment 显示信息在走势图左上角 ......................................................................... 84
GetTickCount 获取时间标记...................................................................................... 84
MarketInfo 在市场观察窗口返回不同数据保证金列表 ............................................... 85
MessageBox 创建信息窗口 ....................................................................................... 85
PlaySound 播放声音 ................................................................................................. 86
Print 窗口中显示文本 .............................................................................................. 86
SendFTP 设置 FTP..................................................................................................... 86
SendMail 设置 Email ................................................................................................. 87
Sleep 指定的时间间隔内暂停交易业务 ..................................................................... 87
Conversion functions 格式转换函数 .................................................................................. 88
CharToStr 字符转换成字符串 .................................................................................... 88
DoubleToStr 双精度浮点转换成字符串 ...................................................................... 88
NormalizeDouble 给出环绕浮点值的精确度............................................................... 88
StrToDouble 字符串型转换成双精度浮点型 ............................................................... 89
StrToInteger 字符串型转换成整型 ............................................................................. 89
StrToTime 字符串型转换成时间型 ............................................................................ 89
TimeToStr 时间类型转换为 "yyyy.mm.dd hh:mi"格式 ................................................. 89
Custom indicators 自定义指标.......................................................................................... 91
IndicatorBuffers ........................................................................................................ 91
IndicatorCounted ...................................................................................................... 92
IndicatorDigits .......................................................................................................... 92
IndicatorShortName .................................................................................................. 93
SetIndexArrow.......................................................................................................... 94
SetIndexBuffer.......................................................................................................... 94
SetIndexDrawBegin ................................................................................................... 95
SetIndexEmptyValue ................................................................................................. 95
SetIndexLabel ........................................................................................................... 96
SetIndexShift ............................................................................................................ 97
SetIndexStyle ........................................................................................................... 98
SetLevelStyle ............................................................................................................ 98
SetLevelValue ........................................................................................................... 99
Date & Time functions 日期时间函数 ...............................................................................100
Day ........................................................................................................................100
DayOfWeek .............................................................................................................100
剩余174页未读,继续阅读
qq_27736767
- 粉丝: 2
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
- MW全能培训汽轮机调节保安系统PPT教学课件.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论5