Page 1 of 1

MT4 "Error getting data to server" error

Posted: Mon Mar 27, 2017 6:38 pm
by oguz
Hi friends,
In the attached ea's settings if I choose "Use AutoGMT offset" is "true" , I am getting "Error getting data to server" error.
What is the cause of this error. I am very happy to help you.
Thank you.

Re: MT4 "Error getting data to server" error

Posted: Mon Mar 27, 2017 8:22 pm
by mladen
oguz wrote:Hi friends,
In the attached ea's settings if I choose "Use AutoGMT offset" is "true" , I am getting "Error getting data to server" error.
What is the cause of this error. I am very happy to help you.
Thank you.
Data to server or data from server?

Re: MT4 "Error getting data to server" error

Posted: Mon Mar 27, 2017 9:55 pm
by oguz
Hi mladen,

It's here.

"... data to server"

Re: MT4 "Error getting data to server" error

Posted: Tue Mar 28, 2017 12:25 am
by mladen
As far as I see that is an error in the code
It should say "Data from server" but in any case the old form of internet connecting will not work in the EA any more

Re: MT4 "Error getting data to server" error

Posted: Tue Mar 28, 2017 1:44 am
by oguz
Is there a way to fix the this error in the code?

Re: MT4 "Error getting data to server" error

Posted: Tue Mar 28, 2017 2:00 am
by mladen
oguz wrote:Is there a way to fix the this error in the code?
solution 1 : Either the whole code that communicates with internet has to be converted to use unicode instead of ansi calls

solution 2 : It has to be completely rewritten to use new metatrader builds function calls

solution 3 : Since it is using those calls for time synchronizations, it has to be rewritten to use pure metatrader functions

Re: MT4 "Error getting data to server" error

Posted: Tue Mar 28, 2017 2:52 am
by oguz
Ok.
Thank you for your interest.

Re: MT4 "Error getting data to server" error

Posted: Tue Mar 28, 2017 6:47 pm
by mladen
oguz wrote:Ok.
Thank you for your interest.
I think that you don't need to use that GMT function at all