Getting errors but don't know where to correct, please help! - page 2

 

This part will be an endless loop, no ?

while(true)                                  // Cycle that opens an order    
{     
int ticket1=OrderSend(Symbol(), OP_BUY, Lot, Ask, 2, SL, TP);
int ticket2=OrderSend(Symbol(), OP_SELL, Lot, Bid, 2, SL, TP);    
Alert (GetLastError()); 
Alert(Symbol(),"  Sell = ",AccountFreeMargin()// At selling       
  -AccountFreeMarginCheck(Symbol(),OP_SELL,1)); 
   Alert(Symbol(),"  Buy = ",AccountFreeMargin() // At buying       
  -AccountFreeMarginCheck(Symbol(),OP_BUY,1));  
  return(true);
  }
 
ffoorr:

This part will be an endless loop, no ?

I don't think so.

there are no conditions for the return so all code after the return will not be executed