nirvanamac:
Hi together,
the other code doesn't show an error when compiling:
m_Allow_Trading = false; ErrorCode = GetLastError(); string ErrorDescIniLongMod = ErrorDescription(ErrorCode); string ErrorAlertIniLongMod = StringConcatenate("OP_BUY-Initial-Modifiy does not work ", ErrorCode, " ", ErrorDescIniLongMod); Print(ErrorAlertIniLongMod); Print("Handel gestoppt! - OP_BUY-Modifikation"); return(0);
I searched through some onlinemedia and/or handovers, manuals etc. but I can not find any error. Anybody there who can give me a hint?
See documentation :
The GetLastError() function return codes. Error code constants defined at stderror.mqh file. To print text messages use ErrorDescription() function defined at stdlib.mqh file.
You need to add this line above your code :
#include <stdlib.mqh>
You are so right...omg sry for being so blind^^ thank you very very much

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi together,
I copied a code and modified it at several rows. When compiling it MT4 Editor shows an error. ErrorDescription is not defined: