Add time condition to custom indicator alert

 

Hi,

I'm trying to add a time condition to a custom indicator (essentially to only generate the alert during certain times of the day).

I've had a read through some documentation and I understand that the time functions relate to seconds elapsed since 1/1/70. However, I can't seem to find an elegant solution to the above... if anybody has any pointers for a solution it would be very much appreciated!

 
toast:

Hi,

I'm trying to add a time condition to a custom indicator (essentially to only generate the alert during certain times of the day).

I've had a read through some documentation and I understand that the time functions relate to seconds elapsed since 1/1/70. However, I can't seem to find an elegant solution to the above... if anybody has any pointers for a solution it would be very much appreciated!

It would be easier to use Hour() and Minute() functions.
 
Perfect! Nice and simple, thank you
Reason: