This function is available on the Add Study window and in the Formula Toolbox.
The Seconds Since Bar Opened function shows the number of minutes, seconds, and milliseconds after the bar opened that the selected tick occurred. Millisecond precision applies to all bars and not only the current bar.
Note that the time increment is taken from time scale chart preferences.
Example: SecSinceBarOp(@)
This function has no parameters.