Using a Delay in an EA script.

 

I was courious if there were a line of code I could place at the bottom of an EA script to make it pause for "X" ammount of time.

For Example:

My script can open up to 5 positions based on the entry rules but...I do not want entries to be too close.

is there any way to either pause the EA, or make it check the time of the last open position and if time is less than 30 min, to not open a position?

Thank you for any assistance

 
Sleep()