加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

MT4错误代码汇总

(2014-11-28 09:59:47)
标签:

mt4错误代码汇总

分类: 【百万金圆】

    MT4 的错误代码是存放在MetaEditor的libraries文件夹下 stdlib.mq4或stderror.mq4文件中,但是内容都是英文,我将这部分的翻译转过来,以供参考。

1: error_string="no error"; 没有错误返回。;
2: error_string="common error"; 没有错误返回但结果不明;
3: error_string="invalid trade parameters"; 一般错误;
4: error_string="trade server is busy";无效交易参量;
5: error_string="old version of the client terminal";交易服务器繁忙;
6: error_string="no connection with trade server";客户终端旧版本;
7: error_string="not enough rights";没有连接服务器;
8: error_string="too frequent requests";没有权限;
9: error_string="malfunctional trade operation (never returned error)";请求过于频繁;
64: error_string="account disabled"; 交易运行故障;
65: error_string="invalid account";账户禁止;
128: error_string="trade timeout";无效超时;
129: error_string="invalid price"; 无效价格;
130: error_string="invalid stops";无效停止;
131: error_string="invalid trade volume";无效交易量;
132: error_string="market is closed";市场关闭;
133: error_string="trade is disabled";交易被禁止;
134: error_string="not enough money";资金不足;
135: error_string="price changed";价格改变;
136: error_string="off quotes"; 开价;
137: error_string="broker is busy (never returned error)";经纪繁忙;
138: error_string="requote";重新开价;
139: error_string="order is locked";定单被锁定;
140: error_string="long positions only allowed";只允许看涨仓位;
141: error_string="too many requests";过多请求;
145: error_string="modification denied because order too close to market";因为过于接近市场,修改否定;
146: error_string="trade context is busy";交易文本已满;
147: error_string="expirations are denied by broker";时间周期被经纪否定;
148: error_string="amount of open and pending orders has reached the limit";开单和挂单总数已被经纪限定;
149: error_string="hedging is prohibited";当对冲备拒绝时,打开相对于现有的一个单置;
150: error_string="prohibited by FIFO rules";把为反FIFO规定的单子平掉;
    以下是mql4的错误代码

4000: error_string="no error (never generated code)"; 没有错误;
4001: error_string="wrong function pointer"; 错误函数指示;
4002: error_string="array index is out of range";数组索引超出范围;
4003: error_string="no memory for function call stack"; 对于调用堆栈储存器函数没有足够内存;
4004: error_string="recursive stack overflow"; 循环堆栈储存器溢出;
4005: error_string="not enough stack for parameter";对于堆栈储存器参量没有内存;
4006: error_string="no memory for parameter string";对于字行参量没有足够内存;
4007: error_string="no memory for temp string";对于字行没有足够内存;
4008: error_string="not initialized string";没有初始字行;
4009: error_string="not initialized string in array";在数组中没有初始字串符;
4010: error_string="no memory for array\' string";对于数组没有内存;
4011: error_string="too long string"; 字行过长;
4012: error_string="remainder from zero divide"; 余数划分为零;
4013: error_string="zero divide"; 零划分;
4014: error_string="unknown command";不明命令;
4015: error_string="wrong jump (never generated error)";错误转换(没有常规错误);
4016: error_string="not initialized array";没有初始数组;
4017: error_string="dll calls are not allowed";禁止调用DLL; //出现这个异常在导入时候运行动态调用dll即可
4018: error_string="cannot load library"; 数据库不能下载;
4019: error_string="cannot call function"; 不能调用函数;
4020: error_string="expert function calls are not allowed";禁止调用智能交易函数;
4021: error_string="not enough memory for temp string returned from function"; 对于来自函数的字行没有足够内存;
4022: error_string="system is busy (never generated error)";系统繁忙 (没有常规错误);
4050: error_string="invalid function parameters count"; 无效计数参量函数;
4051: error_string="invalid function parameter value"; 无效参量值函数;
4052: error_string="string function internal error";字行函数内部错误;
4053: error_string="some array error"; 一些数组错误;
4054: error_string="incorrect series array using";应用不正确数组;
4055: error_string="custom indicator error"; 自定义指标错误;
4056: error_string="arrays are incompatible"; 不协调数组;
4057: error_string="global variables processing error";整体变量过程错误;
4058: error_string="global variable not found"; 整体变量未找到;
4059: error_string="function is not allowed in testing mode";测试模式函数禁止;
4060: error_string="function is not confirmed";没有确认函数;
4061: error_string="send mail error"; 发送邮件错误;
4062: error_string="string parameter expected"; 字行预计参量;
4063: error_string="integer parameter expected"; 整数预计参量;
4064: error_string="double parameter expected"; 双预计参量;
4065: error_string="array as parameter expected"; 数组作为预计参量;
4066: error_string="requested history data in update state"; 刷新状态请求历史数据;

4067: error_string="ERR_TRADE_ERROR";交易函数错误;

4099: error_string="end of file ERR_END_OF_FILE"; 文件结束;
4100: error_string="some file error"; 一些文件错误;
4101: error_string="wrong file name";错误文件名称
4102: error_string="too many opened files";打开文件过多;
4103: error_string="cannot open file"不能打开文件;
4104: error_string="incompatible access to a file"不协调文件;
4105: error_string="no order selected"没有选择定单;
4106: error_string="unknown symbol";不明货币对;
4107: error_string="invalid price parameter for trade function"; 无效价格;
4108: error_string="invalid ticket"; 无效定单编码;
4109: error_string="trade is not allowed in the expert properties"; 不允许交易;
4110: error_string="longs are not allowed in the expert properties"; 不允许长期;
4111: error_string="shorts are not allowed in the expert properties"; 不允许短期;
4200: error_string="object is already exist"; 定单已经存在;
4201: error_string="unknown object property"; 不明定单属性;
4202: error_string="object is not exist"; 定单不存在;
4203: error_string="unknown object type"; 不明定单类型;
4204: error_string="no object name";没有定单名称;
4205: error_string="object coordinates error"; 定单坐标错误;
4206: error_string="no specified subwindow"; 没有指定子窗口;

以下是源代码(少了4067的错误代码):

0:
1: error_string="no error";
2: error_string="common error";
3: error_string="invalid trade parameters";
4: error_string="trade server is busy";
5: error_string="old version of the client terminal";
6: error_string="no connection with trade server";
7: error_string="not enough rights";
8: error_string="too frequent requests";
9: error_string="malfunctional trade operation (never returned error)";
64: error_string="account disabled";
65: error_string="invalid account";
128: error_string="trade timeout";
129: error_string="invalid price";
130: error_string="invalid stops";
131: error_string="invalid trade volume";
132: error_string="market is closed";
133: error_string="trade is disabled";
134: error_string="not enough money";
135: error_string="price changed";
136: error_string="off quotes";
137: error_string="broker is busy (never returned error)";
138: error_string="requote";
139: error_string="order is locked";
140: error_string="long positions only allowed";
141: error_string="too many requests";
145: error_string="modification denied because order too close to market";
146: error_string="trade context is busy";
147: error_string="expirations are denied by broker";
148: error_string="amount of open and pending orders has reached the limit";
149: error_string="hedging is prohibited";
150: error_string="prohibited by FIFO rules";
//---- mql4 errors
4000: error_string="no error (never generated code)";
4001: error_string="wrong function pointer";
4002: error_string="array index is out of range";
4003: error_string="no memory for function call stack";
4004: error_string="recursive stack overflow";
4005: error_string="not enough stack for parameter";
4006: error_string="no memory for parameter string";
4007: error_string="no memory for temp string";
4008: error_string="not initialized string";
4009: error_string="not initialized string in array";
4010: error_string="no memory for array\' string";
4011: error_string="too long string";
4012: error_string="remainder from zero divide";
4013: error_string="zero divide";
4014: error_string="unknown command";
4015: error_string="wrong jump (never generated error)";
4016: error_string="not initialized array";
4017: error_string="dll calls are not allowed";
4018: error_string="cannot load library";
4019: error_string="cannot call function";
4020: error_string="expert function calls are not allowed";
4021: error_string="not enough memory for temp string returned from function";
4022: error_string="system is busy (never generated error)";
4050: error_string="invalid function parameters count";
4051: error_string="invalid function parameter value";
4052: error_string="string function internal error";
4053: error_string="some array error";
4054: error_string="incorrect series array using";
4055: error_string="custom indicator error";
4056: error_string="arrays are incompatible";
4057: error_string="global variables processing error";
4058: error_string="global variable not found";
4059: error_string="function is not allowed in testing mode";
4060: error_string="function is not confirmed";
4061: error_string="send mail error";
4062: error_string="string parameter expected";
4063: error_string="integer parameter expected";
4064: error_string="double parameter expected";
4065: error_string="array as parameter expected";
4066: error_string="requested history data in update state";
4099: error_string="end of file";
4100: error_string="some file error";
4101: error_string="wrong file name";
4102: error_string="too many opened files";
4103: error_string="cannot open file";
4104: error_string="incompatible access to a file";
4105: error_string="no order selected";
4106: error_string="unknown symbol";
4107: error_string="invalid price parameter for trade function";
4108: error_string="invalid ticket";
4109: error_string="trade is not allowed in the expert properties";
4110: error_string="longs are not allowed in the expert properties";
4111: error_string="shorts are not allowed in the expert properties";
4200: error_string="object is already exist";
4201: error_string="unknown object property";
4202: error_string="object is not exist";
4203: error_string="unknown object type";
4204: error_string="no object name";
4205: error_string="object coordinates error";
4206: error_string="no specified subwindow";
default: error_string="unknown error";

 

百万书库

百万图库 百万音乐 百万素材 书库主题 图库主题 音乐主题 素材主题
百万工具 主题模块 立地书厨 首页书橱 网上书厨 首页代码 首页模块 收藏精华
期刊杂志 百家讲坛 英语拼音 你的最爱 十大精华 视觉震撼 百家诗赋 星座易经
有声读物 百年树人 幽默大全 益智游戏 百万富翁 百战名将 百代名人 百龄眉寿
国宝档案 百年中国 书法长廊 传世名画 风光典藏 连环画集 世界名画 百期新作

 

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有