Sleep custom indicator

 

How i do so that after an Array, the indicator will sleep for some time, in this case (2 candles)

My attempt, but dont work

if (CONDITIONS)
{
Buffer1[i] = Close[i] - iATR(NULL, PERIOD_CURRENT, 14,i);
if(i == 0 && Time[0] != time_alert)
{meuAlerta("Buy"); 
time_alert = Time[0];}
Sleep(2*60000);
}