Returns the unix timestamp of the candlestick closing.
What is the unix time stamp?
The unix time stamp is a way to track time as a running total of seconds. This count starts at the Unix Epoch on January 1st, 1970 at UTC. Therefore, the unix time stamp is merely the number of seconds between a particular date and the Unix Epoch. It should also be pointed out that this point in time technically does not change no matter where you are located on the globe.
Syntax:
1 |
Timestamp |
Example:
checking time elapsed in seconds between current bar and the first bar of the week:
1 2 3 4 5 |
if dayofweek<dayofweek[1] then firstbarTime = timestamp endif return timestamp-firstbarTime as "elapsed seconds" |