How to introduce only one order

 

Hy

I would like to know how can we ask to introduce only one order in the EA ?

 
bool orderSent = false;

int start()
{
   if (!orderSent) 
   {
     int ticket = OrderSend(...);
     if (ticket != -1) orderSent = true;
   }
}

Reason: