toast:
It would be easier to use Hour() and Minute() functions.
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!
Perfect! Nice and simple, thank you

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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!