请问MT4EA不能开单,日志显示“OrderSenderror130”是什么意思
最好能直接给我一个能用的ORDERSEND的代码,希望能根据相应条件,每个货币对都能开单而且只开一单。
举报违规检举侵权投诉|2013-08-2313:19提问者采纳
百度啊,大哥。也有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";交易文本已满;
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";无效计数参量函数;