Thread: Ask!
View Single Post
  #1068 (permalink)  
Old 04-28-2008, 03:05 PM
Michel Michel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 525
Michel is on a distinguished road
Quote:
Originally Posted by bearfoot090 View Post
It come to error like this.I try to put
entern int StringToInteger;
but still the error appear.
what should i do?
sorry for keep asking you but I really donno what I`m doing actually.So I would really appreciate your help .

PHP Code:
'StringToInteger' - function is not defined    F:Program FilesMetaTrader FXOpenexpertsEMA_10.mq4 (8728
"entern int StringToInteger;" has no meaning. but it's again my mistake, so again sorry... the function is StrToInteger()
So the code to close the orders sould be something like this :
PHP Code:
for(int i OrdersTotal() - 1>= 0--)
{
   
OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
   if(
OrderMagicNumber() != Magic) continue;
   if(
TimeCurrent() > StrToInteger(OrderComment())) OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 0CLR_NONE);  


Last edited by Michel; 04-28-2008 at 03:10 PM.
Reply With Quote