MT4错误代码最完整汇
MT4 的错误代码是存放在MetaEditor的libraries文件夹下 stdlib.mq4或stderror.mq4文件中
但是内容都是英文,我将这部分的翻译转过来,以供参考
case 1: error_string="no error"; 没有错误返回;
case 2: error_string="common error"; 没有错误返回但结果不明;
case 3: error_string="invalid trade parameters"; 一般错误;
case 4: error_string="trade server is busy";无效交易参量;
case 5: error_string="old version of the client terminal";交易服务器繁忙;
case 6: error_string="no connection with trade server";客户终端旧版本;
case 7: error_string="not enough rights";没有连接服务器;
case 8: error_string="too frequent requests";没有权限;
case 9: error_string="malfunctional trade operation (never returned error)";请求过于频繁;
case 64: error_string="account disabled"; 交易运行故障;
case 65: error_string="invalid account";账户禁止;
case 128: error_string="trade timeout";无效超时;
case 129: error_string="invalid price"; 无效价格;
case 130: error_string="invalid stops";无效停止;
case 131: error_string="invalid trade volume";无效交易量;
case 132: error_string="market is closed";市场关闭;
case 133: error_string="trade is disabled";交易被禁止;
case 134: error_string="not enough money";资金不足;
case 135: error_string="price changed";价格改变;
case 136: error_string="off quotes"; 开价;
case 137: error_string="broker is busy (never returned error)";经纪繁忙;
case 138: error_string="requote";重新开价;
case 139: error_string="order is locked";定单被锁定;
case 140: error_string="long positions only allowed";只允许看涨仓位;
case 141: error_string="too many requests";过多请求;
case 145: error_string="modification denied because order too close to market";因为过于接近市场,修改否定;
case 146: error_string="trade context is busy";交易文本已满;
case 147: error_string="expirations are denied by broker";时间周期被经纪否定;
case 148: error_string="amount of open and pending orders has reached the limit";开单和挂单总数已被经纪限定;
case 149: error_string="hedging is prohibited";当对冲备拒绝时,打开相对于现有的一个单置;
case 150: error_string="prohibited by FIFO rules";把为反FIFO规定的单子平掉;
以下是mql4的错误代码
case 4000: error_string="no error (never generated code)"; 没有错误;
case 4001: error_string="wrong function pointer"; 错误函数指示;
case 4002: error_string="array index is out of range";数组索引超出范围;
case 4003: error_string="no memory for function call stack"; 对于调用堆栈储存器函数没有足够内存;
case 4004: error_string="recursive stack overflow"; 循环堆栈储存器溢出;
case 4005: error_string="not enough stack for parameter";对于堆栈储存器参量没有内存;
case 4006: error_string="no memory for parameter string";对于字行参量没有足够内存;
case 4007: error_string="no memory for temp string";对于字行没有足够内存;
case 4008: error_string="not initialized string";没有初始字行;
case 4009: error_string="not initialized string in array";在数组中没有初始字串符;
case 4010: error_string="no memory for array\' string";对于数组没有内存;
case 4011: error_string="too