I published this script as an example. it calculates/show current Hour, Minute and Second by using timenow function, it also show remaining time to close of the candle. You can freely use the source code in your scripts if you need.
"A man who dares to waste one hour of time has not discovered the value of life" - Charles Darwin
ENG: This indicator includes the SMA line colored according to the price position, the RSI to identify the bearish or the bullish points, the Engulfing bars, the clock and the information panel showing the countdown to the candle closing.
SMA: default period is set to 50. It can change from the settings.
Definition of SMA line default colors: When the price...
It's a old fashion clock, don't ask me why I'have done this... but it work ^^
Just 7 segment display, is you would like to display numbers you can use this code.
Of course you can the same logique with 10 plotchar (for 0123456789) for each digit but tradingview limit at 64 the number of plots, so you will be limited at 6 digits.
The advantage of 7 segment...
Chart clock showing an overview of the day's expected and actual intraday volatility.
In white are only the expected volatility scores. The expected increase or decrease in volatility at any given hour of day compared to the average of the whole day's expected volatility. A 0.5 score two hours from now means that you can expect that hour to be 0.5% more volatile...