Code:
if(whatever_Condition == TRUE) {
  TimeWait = 1000; 
  for(i = NumOpenShort; i < numShortLevels; i++)
     enterShort(0,priceClose() - i*25*PIP);
}