bottomphishing
New member
Finviz calculates the Relative Volume as follows: Ratio between current volume and 3-month average value, intraday adjusted. (Relative Volume = Current Volume / 3-month Average Volume)
I'm having trouble with this study as I'm not getting the correct number, possibly I'm getting a % vs dollar value or vise versa.
For ticker SKIN finviz is showing 2.09 and my TOS rvol is 1.02
Maybe 60 does not equal 3 months time? Any guidance will be greatly appreciated!
Code:
input length = 60;
input offset = 1;
def ADV = Average(volume, length)[offset];
def rVol = volume /ADV;
# remove "#" infront of Addlabels to select prefer choice
AddLabel(yes, round(rVol,2));
#AddLabel(yes, asPercent(rVol));
AssignPriceColor(if rVol >= 1 then color.dark_red else if rVol <=.5 then Color.black else color.Gray);
e color.WHITE);
I'm having trouble with this study as I'm not getting the correct number, possibly I'm getting a % vs dollar value or vise versa.
For ticker SKIN finviz is showing 2.09 and my TOS rvol is 1.02
Maybe 60 does not equal 3 months time? Any guidance will be greatly appreciated!
Code:
input length = 60;
input offset = 1;
def ADV = Average(volume, length)[offset];
def rVol = volume /ADV;
# remove "#" infront of Addlabels to select prefer choice
AddLabel(yes, round(rVol,2));
#AddLabel(yes, asPercent(rVol));
AssignPriceColor(if rVol >= 1 then color.dark_red else if rVol <=.5 then Color.black else color.Gray);
e color.WHITE);