MT4错误代码最完整汇总.docx
《MT4错误代码最完整汇总.docx》由会员分享,可在线阅读,更多相关《MT4错误代码最完整汇总.docx(9页珍藏版)》请在冰豆网上搜索。
MT4错误代码最完整汇总
请问MT4EA不能开单,日志显示“OrderSenderror130”是什么意思
最好能直接给我一个能用的ORDERSEND的代码,希望能根据相应条件,每个货币对都能开单而且只开一单。
举报违规检举侵权投诉|2013-08-2313:
19提问者采纳
XX啊,大哥。
也有MT4错误代码表的。
ERR_INVALID_STOPS,检查你的止损价位,是不是太近、甚至设反了。
======================================================================
MT4错误代码最完整汇总(2011-05-1609:
44:
02)转载▼标签:
杂谈分类:
外汇
MT4的错误代码是存放在MetaEditor的libraries文件夹下stdlib.mq4或stderror.mq4文件中
但是内容都是英文,我将这部分的翻译转过来,以供参考
case1:
error_string="noerror";没有错误返回。
;
case2:
error_string="commonerror";没有错误返回但结果不明;
case3:
error_string="invalidtradeparameters";一般错误;
case4:
error_string="tradeserverisbusy";无效交易参量;
case5:
error_string="oldversionoftheclientterminal";交易服务器繁忙;
case6:
error_string="noconnectionwithtradeserver";客户终端旧版本;
case7:
error_string="notenoughrights";没有连接服务器;
case8:
error_string="toofrequentrequests";没有权限;
case9:
error_string="malfunctionaltradeoperation(neverreturnederror)";请求过于频繁;
case64:
error_string="accountdisabled";交易运行故障;
case65:
error_string="invalidaccount";账户禁止;
case128:
error_string="tradetimeout";无效超时;
case129:
error_string="invalidprice";无效价格;
case130:
error_string="invalidstops";无效停止;
case131:
error_string="invalidtradevolume";无效交易量;
case132:
error_string="marketisclosed";市场关闭;
case133:
error_string="tradeisdisabled";交易被禁止;
case134:
error_string="notenoughmoney";资金不足;
case135:
error_string="pricechanged";价格改变;
case136:
error_string="offquotes";开价;
case137:
error_string="brokerisbusy(neverreturnederror)";经纪繁忙;
case138:
error_string="requote";重新开价;
case139:
error_string="orderislocked";定单被锁定;
case140:
error_string="longpositionsonlyallowed";只允许看涨仓位;
case141:
error_string="toomanyrequests";过多请求;
case145:
error_string="modificationdeniedbecauseordertooclosetomarket";因为过于接近市场,修改否定;
case146:
error_string="tradecontextisbusy";交易文本已满;
case147:
error_string="expirationsaredeniedbybroker";时间周期被经纪否定;
case148:
error_string="amountofopenandpendingordershasreachedthelimit";开单和挂单总数已被经纪限定;
case149:
error_string="hedgingisprohibited";当对冲备拒绝时,打开相对于现有的一个单置;
case150:
error_string="prohibitedbyFIFOrules";把为反FIFO规定的单子平掉;
以下是mql4的错误代码
case4000:
error_string="noerror(nevergeneratedcode)";没有错误;
case4001:
error_string="wrongfunctionpointer";错误函数指示;
case4002:
error_string="arrayindexisoutofrange";数组索引超出范围;
case4003:
error_string="nomemoryforfunctioncallstack";对于调用堆栈储存器函数没有足够内存;
case4004:
error_string="recursivestackoverflow";循环堆栈储存器溢出;
case4005:
error_string="notenoughstackforparameter";对于堆栈储存器参量没有内存;
case4006:
error_string="nomemoryforparameterstring";对于字行参量没有足够内存;
case4007:
error_string="nomemoryfortempstring";对于字行没有足够内存;
case4008:
error_string="notinitializedstring";没有初始字行;
case4009:
error_string="notinitializedstringinarray";在数组中没有初始字串符;
case4010:
error_string="nomemoryforarray\'string";对于数组没有内存;
case4011:
error_string="toolongstring";字行过长;
case4012:
error_string="remainderfromzerodivide";余数划分为零;
case4013:
error_string="zerodivide";零划分;
case4014:
error_string="unknowncommand";不明命令;
case4015:
error_string="wrongjump(nevergeneratederror)";错误转换(没有常规错误);
case4016:
error_string="notinitializedarray";没有初始数组;
case4017:
error_string="dllcallsarenotallowed";禁止调用DLL;//出现这个异常在导入时候运行动态调用dll即可
case4018:
error_string="cannotloadlibrary";数据库不能下载;
case4019:
error_string="cannotcallfunction";不能调用函数;
case4020:
error_string="expertfunctioncallsarenotallowed";禁止调用智能交易函数;
case4021:
error_string="notenoughmemoryfortempstringreturnedfromfunction";对于来自函数的字行没有足够内存;
case4022:
error_string="systemisbusy(nevergeneratederror)";系统繁忙(没有常规错误);
case4050:
error_string="invalidfunctionparameterscount";无效计数参量函数;
case4051:
error_string="invalidfunctionparametervalue";无效参量值函数;
case4052:
error_string="stringfunctioninternalerror";字行函数内部错误;
case4053:
error_string="somearrayerror";一些数组错误;
case4054:
error_string="incorrectseriesarrayusing";应用不正确数组;
case4055:
error_string="customindicatorerror";自定义指标错误;
case4056:
error_string="arraysareincompatible";不协调数组;
case4057:
error_string="globalvariablesprocessingerror";整体变量过程错误;
case4058:
error_string="globalvariablenotfound";整体变量未找到;
case4059:
error_string="functionisnotallowedintestingmode";测试模式函数禁止;
case4060:
error_string="functionisnotconfirmed";没有确认函数;
case4061:
error_string="sendmailerror";发送邮件错误;
case4062:
error_string="stringparameterexpected";字行预计参量;
case4063:
error_string="integerparameterexpected";整数预计参量;
case4064:
error_string="doubleparameterexpected";双预计参量;
case4065:
error_string="arrayasparameterexpected";数组作为预计参量;
case4066:
error_string="requestedhistorydatainupdatestate";刷新状态请求历史数据;
case4067:
error_string="ERR_TRADE_ERROR";交易函数错误;
case4099:
error_string="endoffileERR_END_OF_FILE";文件结束;
case4100:
error_string="somefileerror";一些文件错误;
case4101:
error_string="wrongfilename";错误文件名称
case4102:
error_string="toomanyopenedfiles";打开文件过多;
case4103:
error_string="cannotopenfile"不能打开文件;
case4104:
error_string="incompatibleaccesstoafile"不协调文件;
case4105:
error_string="noorderselected"没有选择定单;
case4106:
error_string="unknownsymbol";不明货币对;
case4107:
error_string="invalidpriceparameterfortradefunction";无效价格;
case4108:
error_string="invalidticket";无效定单编码;
case4109:
error_string="tradeisnotallowedintheexpertproperties";不允许交易;
case4110:
error_string="longsarenotallowedintheexpertproperties";不允许长期;
case4111:
error_string="shortsarenotallowedintheexpertproperties";不允许短期;
case4200:
error_string="objectisalreadyexist";定单已经存在;
case4201:
error_string="unknownobjectproperty";不明定单属性;
case4202:
error_string="objectisnotexist";定单不存在;
case4203:
error_string="unknownobjecttype";不明定单类型;
case4204:
error_string="noobjectname";没有定单名称;
case4205:
error_string="objectcoordinateserror";定单坐标错误;
case4206:
error_string="nospecifiedsubwindow";没有指定子窗口;
MT4的错误代码是存放在MetaEditor的libraries文件夹下stdlib.mq4或stderror.mq4文件中
但是内容都是英文,我将这部分的翻译转过来,以供参考
case1:
error_string="noerror";没有错误返回。
;
case2:
error_string="commonerror";没有错误返回但结果不明;
case3:
error_string="invalidtradeparameters";一般错误;
case4:
error_string="tradeserverisbusy";无效交易参量;
case5:
error_string="oldversionoftheclientterminal";交易服务器繁忙;
case6:
error_string="noconnectionwithtradeserver";客户终端旧版本;
case7:
error_string="notenoughrights";没有连接服务器;
case8:
error_string="toofrequentrequests";没有权限;
case9:
error_string="malfunctionaltradeoperation(neverreturnederror)";请求过于频繁;
case64:
error_string="accountdisabled";交易运行故障;
case65:
error_string="invalidaccount";账户禁止;
case128:
error_string="tradetimeout";无效超时;
case129:
error_string="invalidprice";无效价格;
case130:
error_string="invalidstops";无效停止;
case131:
error_string="invalidtradevolume";无效交易量;
case132:
error_string="marketisclosed";市场关闭;
case133:
error_string="tradeisdisabled";交易被禁止;
case134:
error_string="notenoughmoney";资金不足;
case135:
error_string="pricechanged";价格改变;
case136:
error_string="offquotes";开价;
case137:
error_string="brokerisbusy(neverreturnederror)";经纪繁忙;
case138:
error_string="requote";重新开价;
case139:
error_string="orderislocked";定单被锁定;
case140:
error_string="longpositionsonlyallowed";只允许看涨仓位;
case141:
error_string="toomanyrequests";过多请求;
case145:
error_string="modificationdeniedbecauseordertooclosetomarket";因为过于接近市场,修改否定;
case146:
error_string="tradecontextisbusy";交易文本已满;
case147:
error_string="expirationsaredeniedbybroker";时间周期被经纪否定;
case148:
error_string="amountofopenandpendingordershasreachedthelimit";开单和挂单总数已被经纪限定;
case149:
error_string="hedgingisprohibited";当对冲备拒绝时,打开相对于现有的一个单置;
case150:
error_string="prohibitedbyFIFOrules";把为反FIFO规定的单子平掉;
以下是mql4的错误代码
case4000:
error_string="noerror(nevergeneratedcode)";没有错误;
case4001:
error_string="wrongfunctionpointer";错误函数指示;
case4002:
error_string="arrayindexisoutofrange";数组索引超出范围;
case4003:
error_string="nomemoryforfunctioncallstack";对于调用堆栈储存器函数没有足够内存;
case4004:
error_string="recursivestackoverflow";循环堆栈储存器溢出;
case4005:
error_string="notenoughstackforparameter";对于堆栈储存器参量没有内存;
case4006:
error_string="nomemoryforparameterstring";对于字行参量没有足够内存;
case4007:
error_string="nomemoryfortempstring";对于字行没有足够内存;
case4008:
error_string="notinitializedstring";没有初始字行;
case4009:
error_string="notinitializedstringinarray";在数组中没有初始字串符;
case4010:
error_string="nomemoryforarray\'string";对于数组没有内存;
case4011:
error_string="toolongstring";字行过长;
case4012:
error_string="remainderfromzerodivide";余数划分为零;
case4013:
error_string="zerodivide";零划分;
case4014:
error_string="unknowncommand";不明命令;
case4015:
error_string="wrongjump(nevergeneratederror)";错误转换(没有常规错误);
case4016:
error_string="notinitializedarray";没有初始数组;
case4017:
error_string="dllcallsarenotallowed";禁止调用DLL;//出现这个异常在导入时候运行动态调用dll即可
case4018:
error_string="cannotloadlibrary";数据库不能下载;
case4019:
error_string="cannotcallfunction";不能调用函数;
case4020:
error_string="expertfunctioncallsarenotallowed";禁止调用智能交易函数;
case4021:
error_string="notenoughmemoryfortempstringreturnedfromfunction";对于来自函数的字行没有足够内存;
case4022:
error_string="systemisbusy(nevergeneratederror)";系统繁忙(没有常规错误);
case4050:
error_string="invalidfunctionparameterscount";无效计数参量函数;
case4051:
error_string="invalidfunctionparametervalue";无效参量值函数;
case4052:
error_string="stringfunctioninternalerror";字行函数内部错误;
case4053:
error_string="somearrayerror";一些数组错误;
case4054:
error_string="incor