Quote:
Originally Posted by bearfoot090
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 (87, 28)
|
"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; i >= 0; i --)
{
OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
if(OrderMagicNumber() != Magic) continue;
if(TimeCurrent() > StrToInteger(OrderComment())) OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 0, CLR_NONE);
}