function unexpexted

 

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));}

 

The problem is your lack of parentheses (brackets).

 
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 . . .

 
Reason: