Download MetaTrader 5
To add comments, please log in or register
Make screenshots in MetaTrader and manage them in the gallery!
fx_maddin
110
fx_maddin 2014.02.20 08:46 

Hi,

I have an EA and installed MetaTrader 4 Client Terminal build 610, it seems everything is fine, EA is working as expected, but there is a warning in the toolbox, which I cannot understand:

sign mismatch

I use a function taken from https://www.mql5.com/en/articles/1412 and the warning is in this line:

if(GetTickCount() - StartWaitingTime > MaxWaiting_sec * 1000) 

I have no idea, how to deal with this warning...

Could anyone help me?

Thanks in advance.

Simon Gniadkowski
Moderator
17963
Simon Gniadkowski 2014.02.20 08:54  
fx_maddin:

Hi,

I have an EA and installed MetaTrader 4 Client Terminal build 610, it seems everything is fine, EA is working as expected, but there is a warning in the toolbox, which I cannot understand:

I use a function taken from https://www.mql5.com/en/articles/1412 and the warning is in this line:

Your link is broken, please fix it.
whroeder1
13656
whroeder1 2014.02.20 14:59  
fx_maddin:, which I cannot understand:
sign mismatch

I have no idea, how to deal with this warning...

if(GetTickCount() - StartWaitingTime > MaxWaiting_sec * 1000) 

https://docs.mql4.com/common/GetTickCount returns a uint. You defined StartWaitingTime as an int
/
To add comments, please log in or register