My first post to the forum.
I can't seem to find where I got the original script just a few days ago but I'm sure it was from this forum, (I think?) Anyhow, it's a simple relative volume that you can install in a scan column or in a watchlist for that matter.
You can also sort with it, the original script was unable to do this.
The colors didn't seem to work at first, besides I wasn't a fan of the background color in my watchlist so I converted it to only turn the text green when the rVol is > 1. My first attempt at thinkscript but it seems to work.
Additionally I also had issue trying to change font colors (original script was back ground only). It would skip the rounding and give me 4 or more decimals. So yeah, it was a good learning experience
Bottom line, first attempt at a script mod and it seems to work well now.
# rVOL script for TOS
def rVol = volume / Average(volume, 20)[1];
plot Data = round(rVol, 2);
#Script for color
AddLabel(yes, round(rVol,2),if rVol > 1 then color.green else color.white);