concept of time

 
Good evening, I would like to take a signal as soon as the stochastic crosses but I would not like the position to be taken if the signal has been present for one minute. Do you know how I can add this notion of time? 

Thank you in advance for your answers!
 
Hugo Tram:
Good evening, I would like to take a signal as soon as the stochastic crosses but I would not like the position to be taken if the signal has been present for one minute. Do you know how I can add this notion of time? 

Thank you in advance for your answers!

use M1 bars  the signal will appear on the close of a bar, when you get to the next bar 1 minute is up

of use GetTickCount() to measure the time difference you require

either way better if you you show your attempt

 
Hugo Tram:
take a signal as soon as the stochastic crosses but not if the signal has been present for one minute.
Use M1, when signal at candle0, MARK, 
wait 1 candle, if no more signal, then place order otherwise delete/clear previous remembered signal (MARK)
 
Okay, thank you very much for your answers, but how do you write the M1 candle count in mql4 language?