Code Version 3
There was an issue in the intraday RVOL calculations. NOW IT HAS BEEN FIXED :)
By the way I forgot to mention in 2nd update that if you use RVOL Smoothing, there will be a slight difference between end of day RVOL value as calculated on daily basis and intraday basis.
But in the end the values don't carry much meaning, all we want is just a GREEN COLOR and a SMOOTH CURVE, right? So I will suggest to go ahead and use the smoothing parameter.
R4Rocket