威力外汇

 找回密码
 注册

QQ登录

只需一步,快速开始

开启左侧

[电子书下载] MQL4命令手册

[复制链接]
窜天猴 发表于 2019-10-29 23:28:51 | 显示全部楼层 |阅读模式
MQL4命令中文手册



目录
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[]最高价   ——  51
  • Low[]最低价   ——  52
  • Open[]开盘价   ——  53
  • Point点值   ——  53
  • Time[]开盘时间  ——  53
  • Volume[]成交量  ——  54
  • Program Run程序运行   ——  56
  • Program Run程序运行  ——  56
  • Imported functions call输入函数调用   ——  57
  • 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
  • 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
  • DayOfYear  —— 100
  • Hour  —— 100
  • Minute   —— 101
  • Month   —— 101
  • Seconds   —— 101
  • TimeCurrent   —— 101
  • TimeDay   —— 102
  • TimeDayOfWeek   —— 102
  • TimeDayOfYear  —— 102
  • TimeHour  —— 102
  • TimeLocal  —— 102
  • TimeMinute   —— 103
  • TimeMonth  —— 103
  • TimeSeconds   —— 103
  • TimeYear   —— 103
  • Year  —— 104
  • File functions文件函数  —— 105
  • FileClose关闭文件   —— 105
  • FileDelete删除文件  —— 105
  • FileFlush将缓存中的数据刷新到磁盘上去   —— 106
  • FileIsEnding文件结尾   —— 106
  • FileIsLineEnding   —— 107
  • FileOpen打开文件   —— 107
  • FileOpenHistory历史目录中打开文件  —— 108
  • FileReadArray将二进制文件读取到数组中   —— 108
  • FileReadDouble从文件中读取浮点型数据   —— 109
  • FileReadInteger从当前二进制文件读取整形型数据  ——  —— 109
  • FileReadNumber   —— 109
  • FileReadString从当前文件位置读取字串符  —— 110
  • FileSeek文件指针移动   —— 110
  • FileSize文件大小   —— 111
  • FileTell文件指针的当前位置  —— 111
  • FileWrite写入文件   —— 112
  • FileWriteArray一个二进制文件写入数组   —— 112
  • FileWriteDouble一个二进制文件以浮动小数点写入双重值  —— 113
  • FileWriteInteger一个二进制文件写入整数值  ——  113
  • FileWriteString当前文件位置函数写入一个二进制文件字串符  —— 114
  • Global variables全局变量   —— 115
  • GlobalVariableCheck  —— 115
  • GlobalVariableDel   —— 115
  • GlobalVariableGet   —— 115
  • GlobalVariableName  —— 116
  • GlobalVariableSet   —— 116
  • GlobalVariableSetOnCondition   —— 116
  • GlobalVariablesDeleteAll  —— 117
  • GlobalVariablesTotal  —— 117
  • Math & Trig数学和三角函数   —— 119
  • MathAbs   —— 119
  • MathArccos —— 119
  • MathArcsin  —— 119
  • MathArctan —— 120
  • MathCeil   —— 120
  • MathCos   —— 120
  • MathExp   —— 121
  • MathFloor —— 121
  • MathLog   —— 122
  • MathMax   —— 122
  • MathMin   —— 122
  • MathMod  —— 122
  • MathPow   —— 123
  • MathRand —— 123
  • MathRound  —— 123
  • MathSin  —— 124
  • MathSqrt   —— 124
  • MathSrand   —— 124
  • MathTan   —— 125
  • Object functions目标函数   —— 126
  • ObjectCreate建立目标   —— 126
  • ObjectDelete删除目标   —— 127
  • ObjectDescription目标描述   —— 127
  • ObjectFind查找目标   —— 127
  • ObjectGet目标属性  —— 128
  • ObjectGetFiboDescription斐波纳契描述   —— 128
  • ObjectGetShiftByValue  —— 128
  • ObjectGetValueByShift  —— 129
  • ObjectMove移动目标  —— 129
  • ObjectName目标名  —— 129
  • ObjectsDeleteAll删除所有目标  —— 130
  • ObjectSet改变目标属性   —— 130
  • ObjectSetFiboDescription改变目标斐波纳契指标   ——  131
  • ObjectSetText改变目标说明   —— 131
  • ObjectsTotal返回目标总量  —— 131
  • ObjectType返回目标类型  —— 132
  • String functions字符串函数   —— 133
  • StringConcatenate字符串连接   —— 133
  • StringFind字符串搜索  —— 133
  • StringGetChar字符串指定位置代码   —— 133
  • StringLen字符串长度   —— 134
  • StringSetChar   —— 134
  • StringSubstr提取子字符串  —— 134
  • StringTrimLeft  —— 135
  • StringTrimRight  —— 135
  • Technical indicators技术指标   —— 136
  • iAC比尔.威廉斯的加速器或减速箱振荡器   —— 136
  • iAD离散指标   —— 136
  • iAlligator比尔・威廉斯的鳄鱼指标  —— 136
  • iADX移动定向索引   —— 137
  • iATR平均真实范围  —— 137
  • iAO比尔.威廉斯的振荡器   —— 138
  • iBearsPower熊功率指标  —— 138
  • iBands保力加通道技术指标   —— 138
  • iBandsOnArray保力加通道指标  —— 139
  • iBullsPower牛市指标   —— 139
  • iCCI商品通道索引指标   —— 139
  • iCCIOnArray商品通道索引指标 —— 140
  • iCustom指定的客户指标  —— 140
  • iDeMarker —— 140
  • iEnvelopes包络指标 —— 141
  • iEnvelopesOnArray包络指标   —— 141
  • iForce强力索引指标   —— 142
  • iFractals分形索引指标   —— 142
  • iGator随机震荡指标   —— 142
  • iIchimoku   —— 143
  • iBWMFI比尔.威廉斯市场斐波纳契指标   —— 143
  • iMomentum动量索引指标  —— 143
  • iMomentumOnArray  —— 144
  • iMFI资金流量索引指标   —— 144
  • iMA移动平均指标   —— 144
  • iMAOnArray   —— 145
  • iOsMA移动振动平均震荡器指标  —— 145
  • iMACD移动平均数汇总/分离指标   —— 146
  • iOBV能量潮指标   —— 146
  • iSAR抛物线状止损和反转指标  —— 146
  • iRSI相对强弱索引指标  —— 147
  • iRSIOnArray —— 147
  • iRVI相对活力索引指标   —— 147
  • iStdDev标准偏差指标  —— 148
  • iStdDevOnArray   —— 148
  • iStochastic随机震荡指标  —— 148
  • iWPR威廉指标   —— 149
  • Timeseries access时间序列图表数据 —— 150
  • iBars柱的数量   —— 150
  • iBarShift开始时间的柱  —— 150
  • iClose   —— 150
  • iHigh   —— 151
  • iHighest   —— 151
  • iLow   —— 152
  • iLowest   —— 152
  • iOpen   —— 152
  • iTime   —— 153
  • iVolume   —— 153
  • Trading functions交易函数  —— 155
  • Execution errors   —— 155
  • OrderClose  —— 157
  • OrderCloseBy   —— 158
  • OrderClosePrice  —— 158
  • OrderCloseTime  —— 158
  • OrderComment   —— 159
  • OrderCommission   —— 159
  • OrderDelete   —— 159
  • OrderExpiration   —— 160
  • OrderLots  —— 160
  • OrderMagicNumber   —— 160
  • OrderModify   —— 160
  • OrderOpenPrice  —— 161
  • OrderOpenTime  —— 161
  • OrderPrint —— 162
  • OrderProfit  —— 162
  • OrderSelect  —— 162
  • OrderSend   —— 163
  • OrdersHistoryTotal   —— 164
  • OrderStopLoss   —— 164
  • OrdersTotal  —— 164
  • OrderSwap   —— 165
  • OrderSymbol   —— 165
  • OrderTakeProfit   —— 165
  • OrderTicket  —— 166
  • OrderType —— 166
  • Window functions窗口函数   —— 167
  • HideTestIndicators隐藏指标  —— 167
  • Period使用周期  —— 167
  • RefreshRates刷新预定义变量和系列数组的数据  ——  167
  • Symbol当前货币对   —— 168
  • WindowBarsPerChart可见柱总数  —— 168
  • WindowExpertName智能交易系统名称   —— 169
  • WindowFind返回名称 —— 169
  • WindowFirstVisibleBar第一个可见柱  —— 169
  • WindowHandle  —— 169
  • WindowIsVisible图表在子窗口中可见 —— 170
  • WindowOnDropped   —— 170
  • WindowPriceMax   —— 170
  • WindowPriceMin   —— 171
  • WindowPriceOnDropped   —— 171
  • WindowRedraw   —— 172
  • WindowScreenShot  —— 172
  • WindowTimeOnDropped   —— 173
  • WindowsTotal指标窗口数   —— 173
  • WindowXOnDropped   —— 173
  • WindowYOnDropped —— 174
  • Obsolete functions过时的函数   —— 175


MQL4编程参考中文版
MQL4命令中文手册

MQL4命令手册,威力社区 MQL4命令手册.zip (400 Bytes, 下载次数: 143)

上一篇:MQL5 参考
下一篇:MQL4初级培训教程
贫穷的环境其实哪里都会有,努力并不代表一定有回报。 但缺少那股奋发向上的精神,只会更加一无所有。 在这个10亿人均收入少于1000/月的国家,只有敢拼搏 敢付出的人 才有机会迎来希望的曙光。
回复

使用道具 举报

关闭

站长推荐上一条 /10 下一条

“总是听专家的话。他们会告诉您什么不能做以及为什么。然后去做。”——罗伯特·海因莱因

小黑屋|威力社区

GMT+8, 2024-4-26 07:46 , Processed in 0.127040 second(s), 41 queries .

Powered by Discuz! X3.4

© 2017-2020 Comsenz Inc.

本网站仅在国家法律允许时提供学习交流。本网站不代理经纪商(broker),不参与经纪商经营活动,不对经纪商提供担保或承担任何责任。

高风险提示:外汇黄金、差价合约等杠杆类交易包含重大亏损风险,阁下可能会于交易时蒙受损失超过存入的资金!!! 因此未必适合每一位投资者。 阁下必须充分理解所涉及的风险并在必要时寻求独立财务顾问建议。

任何在本网站内发表的评论、新闻、研究、分析、价格、其他资料或第三方网站的链接只能视作一般市场资讯。本网站信息不构成或导致(1) 提供或出售任何金融服务或产品的要约邀请;(2)采取任何金融产品相关行动的推荐(明示或暗示);或(3)任何投资建议或市场预测。 市场意见并非按照旨在促进投资研究独立性的法律要求而拟备,因此并非受到发放此等资料前禁止交易的约束。本网站不会为直接或间接使用或 依赖此等资料而可能引致的任何亏损或损失(包括但不限于任何盈利的损失)负责。