Sleep() affects whole program

 

Hi How can I make this code to not sleep all program? I want when price triggers it send only one notification and time how often notification should be send. Thanks!

if(Bid <= YesterdayHigh && Bid >= YesterdayLow){
SendNotification(Symbol() + "Current Price is Between High and Low");
Sleep(minutes);
return;
}

//---IF Price is higher than yesterdays higher

  if(Bid >= YesterdayHigh){
SendNotification(Symbol() + "Price Higher Than Yesterday High");
  Sleep(minutes);
  return;
  }
//---IF Price is lower than yesterdays lower

  if(Bid <= YesterdayLow){
SendNotification(Symbol() + "Price Lower Than Yesterday Low");
  Sleep(minutes);
  return;
  }
Reason: