{ semicolon expected (do while)

 


when i click on the compile 

'{' - semicolon expected



do

{

-------------------

------------------

------------------

}

  while(iVolume(Symbol(),0,0)<=1)

  {
   for(int=0,1=1,i++)
   {
    if(A>=C && B<E)
    {
     int tiketbuy=OrderSend(Symbol(),OP_BUY,lot,Ask,5,Ask-(stoploss*Point),Ask+(takeprofit*Point),"Rise Group",1111,0,clrGreen)
     OrderClose(tiketsell,0.01,Bid,3,clrRed)
    }
    else if(A<=D && B>F)
    {
     int tiketsell=OrderSend(Symbol(),OP_SELL,lot,Bid,5,Bid+(stoploss*Point),Bid-(takeprofit*Point),"Rise Group",2222,0,clrBlue)
     OrderClose(tiketbuy,0.01,Ask,3,clrYellow)
    }
    else
    {
     Print("NO")
    }
   }
  }
}
 
Semicolons are missing everywhere. Looks like it was copied from a web site with bad code translation.
 
Please edit your post and
use the code button (Alt+S) when pasting code

 

{ } unbalanced

 
mo ra:


when i click on the compile 

'{' - semicolon expected



do

{

-------------------

------------------

------------------

}

  while(iVolume(Symbol(),0,0)<=1)

  {
   for(int=0,1=1,i++)
   {
    if(A>=C && B<E)
    {
     int tiketbuy=OrderSend(Symbol(),OP_BUY,lot,Ask,5,Ask-(stoploss*Point),Ask+(takeprofit*Point),"Rise Group",1111,0,clrGreen)
     OrderClose(tiketsell,0.01,Bid,3,clrRed)
    }
    else if(A<=D && B>F)
    {
     int tiketsell=OrderSend(Symbol(),OP_SELL,lot,Bid,5,Bid+(stoploss*Point),Bid-(takeprofit*Point),"Rise Group",2222,0,clrBlue)
     OrderClose(tiketbuy,0.01,Ask,3,clrYellow)
    }
    else
    {
     Print("NO")
    }
   }
  }
}


Five "{" and six "}" and no semicolon at the end of the line...

while(iVolume(Symbol(),0,0)<=1)
{
   for(int=0,1=1,i++)
   {
    if(A>=C && B<E)
    {
     int tiketbuy=OrderSend(Symbol(),OP_BUY,lot,Ask,5,Ask-(stoploss*Point),Ask+(takeprofit*Point),"Rise Group",1111,0,clrGreen);
     OrderClose(tiketsell,0.01,Bid,3,clrRed);
    }
    else if(A<=D && B>F)
    {
     int tiketsell=OrderSend(Symbol(),OP_SELL,lot,Bid,5,Bid+(stoploss*Point),Bid-(takeprofit*Point),"Rise Group",2222,0,clrBlue);
     OrderClose(tiketbuy,0.01,Ask,3,clrYellow);
    }
    else
    {
     Print("NO");
    }
   }
 
}