★有時候錯誤代碼所對應的中文字,並非真正這個錯誤讓MT4 EA產生錯誤的原因,需要實際去了解程式整個運作模式後,才能夠確認。
以下為程式運作上的錯誤代碼:
case 0 : error_string="no error";沒有錯誤返回;
case 1 : 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 clientterminal";客戶終端舊版本;
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 (neverreturned 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 tomarket";修改訂單太靠近市價;
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 thelimit";訂單數量超過限制;
case 149: error_string="hedging is prohibited";禁止對沖單存在;
case 150: error_string="prohibited by FIFO rules";禁止違反FIFO規定(先進先出規則);
以下為編碼上的錯誤代碼:
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 long string";字行過長;
case 4012: error_string="remainder from zero divide";餘數劃分為零;
case 4013: error_string="zero divide";零劃分;
case 4014: error_string="unknown command";不明命令;
case 4015: error_string="wrong jump (never generated error)";錯誤轉換(沒有常規錯誤);
case 4016: error_string="not initialized array";沒有初始陣列;
case 4017: error_string="dll calls are not allowed";禁止調用DLL; //出現這個異常在導入時候運行動態調用dll即可
case 4018: error_string="cannot load library";資料庫不能下載;
case 4019: error_string="cannot call function";不能調用函數;
case 4020: error_string="expert function calls are not allowed";禁止調用智慧交易函數;
case 4021: error_string="not enough memory for temp string returned fromfunction";
對於來自函數的字行沒有足夠記憶體;
case 4022: error_string="system is busy (never generated error)";系統繁忙 (沒有常規錯誤);
case 4050: error_string="invalid function parameters count";無效計數參量函數;
case 4051: error_string="invalid function parameter value";無效參量值函數;
case 4052: error_string="string function internal error";字行函數內部錯誤;
case 4053: error_string="some array error";一些陣列錯誤;
case 4054: error_string="incorrect series array using";應用不正確陣列;
case 4055: error_string="custom indicator error";自訂指標錯誤;
case 4056: error_string="arrays are incompatible";不協調陣列;
case 4057: error_string="global variables processing error";整體變數過程錯誤;
case 4058: error_string="global variable not found";整體變數未找到;
case 4059: error_string="function is not allowed in testing mode";測試模式函數禁止;
case 4060: error_string="function is not confirmed";沒有確認函數;
case 4061: error_string="send mail error";發送郵件錯誤;
case 4062: error_string="string parameter expected";字行預計參量;
case 4063: error_string="integer parameter expected";整數預計參量;
case 4064: error_string="double parameter expected";雙預計參量;
case 4065: error_string="array as parameter expected";陣列作為預計參量;
case 4066: error_string="requested history data in update state";刷新狀態請求歷史資料;
case 4067: error_string="ERR_TRADE_ERROR";交易函數錯誤;
case 4099: error_string="end of file ERR_END_OF_FILE";文件結束;
case 4100: error_string="some file error";一些檔錯誤;
case 4101: error_string="wrong file name";錯誤檔案名稱
case 4102: error_string="too many opened files";打開文件過多;
case 4103: error_string="cannot open file";不能打開檔;
case 4104: error_string="incompatible access to a file";不協調文件;
case 4105: error_string="no order selected";沒有選擇定單;
case 4106: error_string="unknown symbol";不明貨幣對;
case 4107: error_string="invalid price parameter for trade function";無效價格;
case 4108: error_string="invalid ticket";無效定單編碼;
case 4109: error_string="trade is not allowed in the expertproperties";不允許交易;
case 4110: error_string="longs are not allowed in the expertproperties";不允許長期;
case 4111: error_string="shorts are not allowed in the expertproperties";不允許短期;
case 4200: error_string="object is already exist"; 定單已經存在;
case 4201: error_string="unknown object property";不明定單屬性;
case 4202: error_string="object is not exist";定單不存在;
case 4203: error_string="unknown object type";不明定單類型;
case 4204: error_string="no object name";沒有定單名稱;
case 4205: error_string="object coordinates error";定單座標錯誤;
case 4206: error_string="no specified subwindow";沒有指定子視窗;