Here are some examples from the Manual you can adapt

//Delay every 30 seconds
for(OrderDelay = 0; OrderDelay< 10*30; OrderDelay += 30)
{
//////
}


/////////

// Use an entry limit and an entry delay for not entering trades at the same time
// Call this function before entering a trade
/////////
void setDelay(var Seconds)
{
static int PrevBar = 0;
static var Delay = 0;

if(Bar != PrevBar) { // reset delay at any new bar
Delay = 0;
PrevBar = Bar;
}
Delay += Seconds; // increase delay within the bar
OrderDelay = Delay;
Entry = -0.2*PIP * sqrt(Delay); // entry limit for additional profit


Thanks so much,

OptimusPrime