Error_Break_Script_V2 - This script is a general example of using error brake


Error_Break_Script_V2 revision
Version 1 - Error_Break_Script_V1 Removed
Fixed implementation in Version2:
//+------------------------------------------------------------------+
//| Break_On_Error |
//+------------------------------------------------------------------+
int Break_On_Error(){
int error_code = GetLastError();
String error_string = ErrorDescription(error_code);
Print("Error:", error_string," ",error_code);
Return error code;
//+------------------------------------------------------------------+
Test successful:


Attachment download
📎 error_break_script_v2.mq4 (10.56 KB)
Source: MQL5 #48803
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •