int lastError = GetLastError(); switch(lastError){ case 136: Print("Order off quotes"); break; case 146: Print("Trade context busy"); break; default: Print("...defaul statement..."); break; }
forexCoder:
ok, can it not be modified within the metaquotes language directly?
You can expand the metaeditor-inculded file stderror.mqh that includes all errors with functions that return strings when called by error code.
I don't have and frankly I don't really need it at all :)
forexCoder:
You can expand the metaeditor-inculded file stderror.mqh that includes all errors with functions that return strings when called by error code.
I don't have and frankly I don't really need it at all :)
I tried this and renamed the error but it still appears in my expert log as the orgional name??? Any ideas.
any help with this question.
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, can anyone tell me how can i change the error discription of a particular error code. eg. (Error 130== "invalid stops")
Can i make error 130 say "invalid/no stoploss present" ??
thanks in advance.