Download MetaTrader 5
To add comments, please log in or register
MQL5 Reference is available in 8 languages. Learn MQL5 in the language that suits you best!
wahyudi09
17
wahyudi09 2014.11.21 19:30 

does any one can solve my problem here ,, i got warning

2;116;C:;'(' - function definition unexpected
2;75;C:;'tipe' - variable not defined
2;116;C:\- function definition unexpected  why i got that problems

double j(string m,int n, int tipe)
double t=0;
for(int i=0; i<OrdersTotal(); i++)
{
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES))
if(OrderSymbol()!=Symbol() || OrderComment()!=Magic )||OrderType()!=tipe continue;
//if(IsDemo())
{if(n==0)t++;if(n==1)t=OrderLots()*2;
if(n==2)t=OrderMagicNumber();
if(n==3)t=OrderStopLoss();
}
}return(t);
}

double ju(){return(j(k,0,0)+j(k,0,1)+j(k,0,2)+j(k,0,3)+j(k,0,4)+j(k,0,5));}
double jum(){return(j(kk,0,0)+j(kk,0,1)+j(kk,0,2)+j(kk,0,3)+j(kk,0,4)+j(kk,0,5));}

honest_knave
954
honest_knave 2014.11.21 20:06  

The problem is your lack of parentheses (brackets).

Simon Gniadkowski
Moderator
17963
Simon Gniadkowski 2014.11.22 11:57  
euricks008:

does any one can solve my problem here ,, i got warning

SNIP


Please edit your post above and re-insert your code using the SRC button . . . please use the SRC button to post code: How to use the SRC button.

To edit your post . . .

whroeder1
13602
whroeder1 2014.11.22 17:53  
/
To add comments, please log in or register