There is no such indicator on Thinkorswim named Relative Volume. The closest match to that name is RelativeVolumeStDev. If that is the study you are speaking of, then I will need to update the title of this question so that everyone else looking for a similar solution can find it.
So if you are speaking of RelativeVolumeStDev. Then the following code should do the trick. I did this mostly from memory and have only tested it for errors. Let me know if this does not produce the results you expect and I will test it out and make any corrections.
IMPORTANT NOTE: Scans always use Eastern Timezone, regardless of what time zone you are located.
input length = 60;
input startTime = 930;
input endTime = 945;
def targetPeriod = SecondsFromTime(startTime) >= 0 and SecondsTillTime(endTime) > 0;
input allowNegativeValues = no;
def rawRelVol = (volume - Average(volume, length)) / StDev(volume, length);
def relVol = if allowNegativeValues then rawRelVol else Max(0, rawRelVol);
rec trackRelVol = if targetPeriod and !targetPeriod[1] then relVol else if targetPeriod and relVol > trackRelVol[1] then relVol else trackRelVol[1];
plot scan = trackRelVol > 2;