warnings

TomDominic

Trader
Apr 30, 2023
40
1
14
27
Kenya
how can i remove this warnings,,,,,

return value of orderclose should be checked,
also for orderdelete and orderselect.

Also,,,,this
Expression has no effect....i have three of this....please help me here
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,058
1,472
144
Odesa
www.earnforex.com
You can check those functions' return value to verify that they are successful - that will definitely remove the warnings. There is no other way to remove them. But you can still ignore those warnings as they don't impede the .ex4 generation.
 

hayseed

Master Trader
Jul 27, 2010
1,111
269
149
usa
how can i remove this warnings,,,,,
//-----

click on the first error or warning in the tool box error tab...... it will take you to the error or warning..... you can also see the line and column of the error to the far right in the errors tab.....

the expression has no effect means just that.... look at that line of code ...... fix what is wrong.....

the return value of orderclose should be checked warning usually has to do with the way the orders are selected..... mq4 has changed over the years.....

again, click on that warning...... it most likly will take you to a line like this.....

Code:
OrderSelect(i, SELECT_BY_POS);

try replacing that line with

Code:
if(!OrderSelect(i, SELECT_BY_POS))
//------

without seeing the code, not more help is available......h