MQL4命令中文详解手册

上传人:206****923 文档编号:88626745 上传时间:2019-05-05 格式:DOCX 页数:243 大小:190.28KB
返回 下载 相关 举报
MQL4命令中文详解手册_第1页
第1页 / 共243页
MQL4命令中文详解手册_第2页
第2页 / 共243页
MQL4命令中文详解手册_第3页
第3页 / 共243页
MQL4命令中文详解手册_第4页
第4页 / 共243页
MQL4命令中文详解手册_第5页
第5页 / 共243页
点击查看更多>>
资源描述

《MQL4命令中文详解手册》由会员分享,可在线阅读,更多相关《MQL4命令中文详解手册(243页珍藏版)》请在金锄头文库上搜索。

1、MQL4 ReferenceMQL4命令手册(本手册采用Office2007编写)2010年2月目录MQL4 Reference1MQL4命令手册1Basics基础12Syntax语法12Comments注释12Identifiers标识符12Reserved words保留字13Data types数据类型13Type casting类型转换14Integer constants整数常量14Literal constants字面常量14Boolean constants布尔常量15Floating-point number constants (double)浮点数常量(双精度)15Stri

2、ng constants字符串常量15Color constants颜色常数16Datetime constants日期时间常数16Operations & Expressions操作表达式17Expressions表达式17Arithmetical operations算术运算17Assignment operation赋值操作17Operations of relation操作关系18Boolean operations布尔运算18Bitwise operations位运算19Other operations其他运算19Precedence rules优先规则20Operators操作符2

3、1Compound operator复合操作符21Expression operator表达式操作符21Break operator终止操作符21Continue operator继续操作符22Return operator返回操作符22Conditional operator if-else条件操作符23Switch operator跳转操作符23Cycle operator while循环操作符while24Cycle operator for循环操作符for24Functions函数25Function call函数调用26Special functions特殊函数27Variables

4、变量27Local variables局部变量28Formal parameters形式变量28Static variables静态变量29Global variables全局变量29Defining extern variables外部定义变量30Initialization of variables初始化变量30External functions definition外部函数的定义30Preprocessor预处理31Constant declaration常量声明31Controlling compilation编译控制32Including of files包含文件32Importi

5、ng of functions导入功能33Standard constants标准常数35Series arrays系列数组35Timeframes图表周期时间35Trade operations交易操作36Price constants价格常数36MarketInfo市场信息识别符36Drawing styles画线风格37Arrow codes预定义箭头38Wingdings宋体39Web colors颜色常数39Indicator lines指标线40Ichimoku Kinko Hyo41Moving Average methods移动平均方法41MessageBox信息箱41Obje

6、ct types对象类型43Object properties对象属性44Object visibility45Uninitialize reason codes撤销初始化原因代码45Special constants特别常数46Error codes错误代码46Predefined variables预定义变量50Ask最新卖价50Bars柱数50Bid最新买价50Close收盘价51Digits汇率小数位51High最高价51Low最低价52Open开盘价53Point点值53Time开盘时间53Volume成交量54Program Run程序运行56Program Run程序运行56Im

7、ported functions call输入函数调用57Runtime errors运行错误57Account information账户信息68AccountBalance( )账户余额68AccountCredit( )账户信用点数68AccountCompany( )账户公司名68AccountCurrency( )基本货币68AccountEquity( )账户资产净值68AccountFreeMargin( )账户免费保证金69AccountFreeMarginCheck()账户当前价格自由保证金69AccountFreeMarginMode( )账户免费保证金模式69Accoun

8、tLeverage( )账户杠杆69AccountMargin( )账户保证金69AccountName( )账户名称70AccountNumber( )账户数字70AccountProfit( )账户利润70AccountServer( )账户连接服务器70AccountStopoutLevel( )账户停止水平值70AccountStopoutMode( )账户停止返回模式71Array functions数组函数72ArrayBsearch()数组搜索72ArrayCopy()数组复制72ArrayCopyRates()数组复制走势73ArrayCopySeries()数组复制系列走势7

9、4ArrayDimension()返回数组维数75ArrayGetAsSeries()返回数组序列75ArrayInitialize()数组初始化75ArrayIsSeries()判断数组连续75ArrayMaximum()数组最大值定位76ArrayMinimum()数组最小值定位76ArrayRange()返回数组指定维数数量76ArrayResize()改变数组维数77ArraySetAsSeries()设定系列数组77ArraySize()返回数组项目数78ArraySort()数组排序78Checkup检查79GetLastError( )返回最后错误79IsConnected( )

10、返回联机状态79IsDemo( )返回模拟账户79IsDllsAllowed( )返回dll允许调用80IsExpertEnabled( )返回智能交易开启状态80IsLibrariesAllowed( )返回数据库函数调用80IsOptimization( )返回策略测试中优化模式81IsStopped( )返回终止业务81IsTesting( )返回测试模式状态81IsTradeAllowed( )返回允许智能交易81IsTradeContextBusy( )返回其他智能交易忙82IsVisualMode( )返回智能交易“图片模式”82UninitializeReason( )返回智能交

11、易初始化原因82Client terminal客户端信息83TerminalCompany( )返回客户端所属公司83TerminalName( )返回客户端名称83TerminalPath( )返回客户端文件路径83Common functions常规命令函数84Alert弹出警告窗口84Comment显示信息在走势图左上角84GetTickCount获取时间标记84MarketInfo在市场观察窗口返回不同数据保证金列表85MessageBox创建信息窗口85PlaySound播放声音86Print窗口中显示文本86SendFTP设置FTP86SendMail设置Email87Sleep指

12、定的时间间隔内暂停交易业务87Conversion functions格式转换函数88CharToStr字符转换成字符串88DoubleToStr双精度浮点转换成字符串88NormalizeDouble给出环绕浮点值的精确度88StrToDouble字符串型转换成双精度浮点型89StrToInteger字符串型转换成整型89StrToTime字符串型转换成时间型89TimeToStr时间类型转换为 yyyy.mm.dd hh:mi格式89Custom indicators自定义指标91IndicatorBuffers91IndicatorCounted92IndicatorDigits92In

13、dicatorShortName93SetIndexArrow94SetIndexBuffer94SetIndexDrawBegin95SetIndexEmptyValue95SetIndexLabel96SetIndexShift97SetIndexStyle98SetLevelStyle98SetLevelValue99Date & Time functions日期时间函数100Day100DayOfWeek100DayOfYear100Hour100Minute101Month101Seconds101TimeCurrent101TimeDay102TimeDayOfWeek102Tim

14、eDayOfYear102TimeHour102TimeLocal102TimeMinute103TimeMonth103TimeSeconds103TimeYear103Year104File functions文件函数105FileClose关闭文件105FileDelete删除文件105FileFlush将缓存中的数据刷新到磁盘上去106FileIsEnding文件结尾106FileIsLineEnding107FileOpen打开文件107FileOpenHistory历史目录中打开文件108FileReadArray将二进制文件读取到数组中108FileReadDouble从文件中读取浮点型数据109FileReadInteger从当前二进制文件读取整形型数据109FileReadNumber109FileReadString从当前文件位置读取字串符110FileSeek文件指针移动110FileSize文件大小111FileTe

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 其它中学文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号