To use chat, please login.
Back to contacts

"unknown command" in MT4

Jul 28, 2010 at 01:35
2,712 Views
19 Replies
Member Since Mar 24, 2010   84 posts
Jul 28, 2010 at 01:35
I came across this error in many brokers.
My journal has the following lines (they repeat a few times):
2010.07.26 21:57:55 '999402299': login
2010.07.26 21:01:10 '999400435': login
2010.07.26 21:01:09 '999400435': unknown command 82
2010.07.26 20:20:09 '999400435': login
2010.07.26 20:20:08 '999400435': unknown command 2E
2010.07.26 19:38:14 '999400435': login
2010.07.26 19:37:02 '999400435': login
2010.07.26 19:35:24 '999400435': connect failed [No connection]
2010.07.26 19:23:31 '999400435': login
2010.07.26 19:23:29 '999400435': login
2010.07.26 19:23:22 '999400435': login
2010.07.26 19:23:11 '999400435': login

Does anybody know how to solve this problem? Thanks!😄
Elkart
forex_trader_7
Member Since Aug 01, 2009   941 posts
Jul 28, 2010 at 03:19 (edited Jul 28, 2010 at 03:22)
Best I can find is this, no one seems to know really.

https://forum.mql4.com/23787


'I 'found' a solution a few weeks ago - a solution only in the sense that I don't have this problem any more. I started trading off a server in the UK with <5ms latency to my broker and >99.99% uptime and the problem disappeared completely. When I connect from my current location (that has about ~300 latency and many internet drops) I have this error message quite frequently. So my conclusion is that this error is associated with a bad internet connection to the broker's server. I recommend u find a better and faster (latency wise) internet connection or move your trading to a server / VPS near your broker. Good luck!'

I see you're having log in problems as well...
Member Since Mar 24, 2010   84 posts
Jul 28, 2010 at 03:37
Maybe my VPS has some problems. All the MT4 in this VPS have the errors but none in other VPSes.
I will restart my VPS and test again.

Thanks for your reply!
Elkart
forex_trader_7
Member Since Aug 01, 2009   941 posts
Jul 28, 2010 at 03:42
No problem, I learned something as well. Hope I never get this issue, but if I do.....
Member Since Sep 10, 2010   55 posts
Sep 25, 2010 at 21:31
the first thing to do is to figure out which ;line of your code is causing this prob;lem/error/.

my preferred way to do this is to p;lace print statements at various p;laces in your code unti;l u r ab;le to pinpoint which function ca;l;l in your code is the cu;lprit/.

after u figure out which function ca;l;l is responsib;le 4 the error, it is simp;le enuff to tinker with that function;'s parameters unti;l u figure it out/.

i, persona;l;ly, wou;ld not be satisfied unti;l i found the exact reason why this error was happening/.oo

i wou;ld never continue operating, hoping that an error had been reso;lved/.

happy coding/.

zero/.

Elkart
forex_trader_7
Member Since Aug 01, 2009   941 posts
Sep 25, 2010 at 22:15
6 years of MT and that's your advice? Never seen this error have you?
Member Since Aug 20, 2009   266 posts
Sep 26, 2010 at 04:58 (edited Sep 26, 2010 at 04:59)
Sorry MaryJane, while your post is good valid information, in this case it is technically incorrect.

I too have never seen this error, but the first thing that strikes me as odd is the fact that the error is located in the journal. Your EA's cannot write anything to the journal ever. They write to your experts tab. The journal tells you about terminal operations, so it will tell you whether or not an EA is loaded, if an email leaves the terminal, whether you are connected to the broker and the results of trade instructions sent.

The fact that this is in the journal tells me that the error is most likely with the MT4 terminal itself, which as Elkart pointed out may well be due to the internet connection.

And whats with all the semi colons????
Wealth Creation Through Technology
Member Since Sep 10, 2010   55 posts
Sep 27, 2010 at 04:26
he;l;lo kenny,

quite perhaps u r correct about the journa;l issue and the print stuff goes into the experts tab, yes?

either way, i be;lieve that the first thing to do is to narrow it down as to which function ca;l;l is making the prob;lem and then u can work it out from there/.

i spi;lo;led coffee on the netbk, need an externa;l kybd/.

good evening,

zero/.
Member Since Sep 10, 2010   55 posts
Sep 27, 2010 at 04:28 (edited Sep 27, 2010 at 04:30)
Elkart posted:
    6 years of MT and that's your advice? Never seen this error have you?

i cant reca;l;l ever seeing that error/.

had i ever seen that error, i wou;ld have dea;lt with it/.

and swift;ly/.

and not on;ly do i have c;lose to six years of mt4 experience, but i have been joyous;ly writing code for about 27 years/.

;locating the offending function ca;l;l or code is usua;l;ly the first thing that i ;like 2 do/.

u have a nice day, sir/.

zero/.

Elkart
forex_trader_7
Member Since Aug 01, 2009   941 posts
Sep 27, 2010 at 07:54 (edited Sep 27, 2010 at 08:15)
It's a platform issue. You can't deal with it. See the login bits? Code never got to run, platform was unable to log in. It's probably machine specific. The first thing to do is to try a second machine on the same broker.

It's all in the details Zero, not the math. You go right ahead and look for that error in the code.
Member Since Sep 10, 2010   55 posts
Sep 27, 2010 at 21:23 (edited Sep 27, 2010 at 21:24)
if i say up, he says down/.

if i say down, he says up/.o

e;kartl is my best groupie/.o

z/.
Elkart
forex_trader_7
Member Since Aug 01, 2009   941 posts
Sep 28, 2010 at 03:36
Groupie?

No - more like a spectator watching a slave getting eaten by a lion while I sip on my pina colada.
Member Since Sep 10, 2010   55 posts
Sep 28, 2010 at 04:20
what is this, the debate c;lub?

omg/.

Elkart
forex_trader_7
Member Since Aug 01, 2009   941 posts
Sep 28, 2010 at 09:57 (edited Sep 28, 2010 at 09:58)
This is the 'no wonder you couldn't do the API if you can't even understand this problem' club.
Member Since Sep 10, 2010   55 posts
Sep 28, 2010 at 17:18 (edited Sep 28, 2010 at 17:20)
Elkart posted:
It's a platform issue. You can't deal with it. See the login bits? Code never got to run, platform was unable to

log in. It's probably machine specific. The first thing to do is to try a second machine on the same broker.

It's all in the details Zero, not the math. You go right ahead and look for that error in the code.

mr grimfd,

all of this is becoming just a tad tedious.

question 4 u sir, do u personally write code? 4 how long have u been writing code? ever written machine code?

ever disassembled any code? ever written machine level servo controller code? ever plugged 16 modems into a 286

and controlled them with machine code and c from dos? ever written ip capture code that gathers ip addresses of

the users from this forum?

i have done all of the above.

i enjoy programming.

i am not the best, there are some very clever coders out there, but i am competent to write code.

and i am very detail oriented, i obsess over details.

i have and will respond to your programming related questions in this and other forums.

if u dont like my response, keep in mind that i am not only speaking to you but also to others that are reading

the thread.

if u do not like me or if u do not find my answers to be helpful, then plz feel free to get over it.

good day sir,

zero/.
<a href=' target=_new><img src=''/></a>

Elkart
forex_trader_7
Member Since Aug 01, 2009   941 posts
Sep 28, 2010 at 17:50 (edited Sep 28, 2010 at 18:01)
So why couldn't you stay logged into the API when amateurs are? Most for years.

It's for the same reason that you're trying to chase 100% a day with predictive calls. Your personality just doesn't allow you to get it. The narcissism is in the way.

As for the code, I don't write, my partners do, but I am damn good at finding mistakes and problems. They write, I make sure it works. And they are adult enough to know that code and logic needs to be checked by another pair of eyes.

Sometimes I'm right, sometimes they're right, and always, no matter who's right, the job gets done. Whatever the API's problems are, it won't make a ounce of difference, the over riding factor is not what the API is, it's what we need. Not something you'd be familiar with. We'll just write around whatever the issues are, they don't really matter.

Lucky you have Metatrader to keep you logged in. Damn good at your job aren't you?

How does a network engineer, engineer with a coffee keyboard? You can't, because everything you put down won't work, so either you delete a lot (which no sane person will do), or you can't afford a new key board, or you're not a network engineer. I mean how much is a keyboard now days? $20? $10? You can't buy one?

So what is it Zero? Insanity, poverty or lies?

Member Since Sep 10, 2010   55 posts
Sep 28, 2010 at 19:04 (edited Sep 28, 2010 at 19:06)
Elkart posted:
Lucky you have Metatrader to keep you logged in. Damn good at your job aren't you?

i agree, metatrader is a very fine piece of software/. it just runs/. and runs/. and runs/. i have the abi;lity to write fair;ly high ;leve;l trading code with it and i a;lso wrote a custom d;l;l 4 it which means that i can do abso;lute;ly anything with it, my d;l;l is written in straight C/.

yes, there are a few peop;le that have managed 2 get their oanda api software running in a somewhat stab;le fashion, but they did so using a ;lot of band aids and tape/.o metatrader has none of the connectivity issues that oanda api users have, and the oanda users have severa;l different versions of their api, this was in my opinion a mistake on the part of oanda, they shou;ld have picked one ;language perhaps java or C or even perhaps visua;l basic and then focus on po;lishing that, but what they have now is severa;l different versions to keep running and i be;lieve that was a mistake on their part/.o

z/.

Member Since Sep 10, 2010   55 posts
Sep 28, 2010 at 19:07

Elkart posted:
So what is it Zero? Insanity, poverty or lies?

a heavy dose of insanity with a ton of poverty, but you may not ca;l;l me a ;liar/.

i am a very honest and ethica;l man/.

in one of his books, bi;l;l gates said something about that he fe;lt that he ;learns the most from his most difficu;lt customers/.

i understand what he meant/.

z/.
Member Since Sep 10, 2010   55 posts
Sep 28, 2010 at 19:22

Elkart posted:
How does a network engineer, engineer with a coffee keyboard? You can't, because everything you put down won't work, so either you delete a lot (which no sane person will do), or you can't afford a new key board, or you're not a network engineer. I mean how much is a keyboard now days? $20? $10? You can't buy one?

yes, it is true, i have not had the funds to buy a keyboard/.

and i know where to buy a kybd for under five bucks/.

i turned down programming work ;last week and i a;lso did the same thing just yesterday/.

i wont do anything that takes me off of this project/.

and, for the record, i am a software engineer, not a network engineer/.

there is a difference/.

thank u,

z/.
Member Since Sep 10, 2010   55 posts
Sep 28, 2010 at 19:27

Elkart posted:
As for the code, I don't write, my partners do, but I am damn good at finding mistakes and problems. They write, I make sure it works. And they are adult enough to know that code and logic needs to be checked by another pair of eyes.

Sometimes I'm right, sometimes they're right, and always, no matter who's right, the job gets done. Whatever the API's problems are, it won't make a ounce of difference, the over riding factor is not what the API is, it's what we need. Not something you'd be familiar with. We'll just write around whatever the issues are, they don't really matter.

i wish the best to you and your partners/.

good day sir,

zero/.
<a href=' target=_new><img src=''/></a>
Sign In / Sign Up to comment
You must be connected to Myfxbook in order to leave a comment
*Commercial use and spam will not be tolerated, and may result in account termination.
Tip: Posting an image/youtube url will automatically embed it in your post!
Tip: Type the @ sign to auto complete a username participating in this discussion.