Thank you, Gordon, for your help.
I tried and cannot get the error description in my Comment.
For me it looks OK . But I get 0 in the output. Can somebody please point to my mistake? Thanks.
#import "stdlib.mqh"string ErrorDescription(int error_code);
#importint init()
{
return(0);
}
int deinit()
{
return(0);
}
int start()
{
OrderSend(Symbol(),OP_BUY,0.00000001,Ask,0,0,0,NULL,0,0,Green);
// Comment("");int A = GetLastError();
Comment("Error description ",ErrorDescription(A));
return(0);
}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I tried and cannot get the error description in my Comment.
For me it looks OK . But I get 0 in the output. Can somebody please point to my mistake? Thanks.
Or alternatively include the mqh file:
#include <stdlib.mqh>