Error_Break_Script_V2 - This script is a general example of using error brake in any strategy - Break on Code Error Sample Strategy - script for MetaTrader 4


Error_Break_Script_V2 修订
版本 1 - Error_Break_Script_V1 已删除
Version2 中的修复实现:
//+------------------------------------------------------------------+
//| Break_On_Error |
//+------------------------------------------------------------------+
int Break_On_Error(){
int error_code = GetLastError();
字符串 error_string = ErrorDescription(error_code);
Print("错误:", error_string," ",error_code);
返回错误代码;
//+------------------------------------------------------------------+
测试成功:


附件下载
📎 error_break_script_v2.mq4 (10.56 KB)
Source: MQL5 #48803
💡 精彩内容推荐
✍️ 楼主最新发布
- •
- •
- •
- •
- •
- •
🔗 您可能感兴趣
- •
- •
- •
- •
- •
- •
🔐
请登录后参与评论
注册满12小时后评论,即可解锁附件下载
立即登录
