If statement question

 

is there a way to pause a few seconds before an event is fired after an if statement?

 
Sleep() or one of the alternatives.
 
gordon:
Sleep() or one of the alternatives.

ok Gordon thanks i'll look into that.
 
gordon:
Sleep() or one of the alternatives.


Says it can't be called from custom indicators:

The Sleep() function cannot be called from custom indicators since they calculate in the interface thread and may not decelerate it.

 

I think this might work.. now just need to figure it out for my code.

To Sleep, or Not to Sleep?

Reason: