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"); } } }
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
when i click on the compile
'{' - semicolon expected
do
{
-------------------
------------------
------------------
}
while(iVolume(Symbol(),0,0)<=1)