Actual Relative Volume

AlexZ

New member
Does anyone have an indicator for ThinkorSwim that will display relative volume correctly? That is, rather than just comparing the current time frame's volume to the past "X" bars' volumes (which is what the default relative volume study does), the study should compare the same time slice across "X" number of historical days. For example, if looking at 5-min bars, and there were 10,000 contracts exchanged during the 5-min period from 11:50 to 11:55, but the average volume of the 11:50 to 11:55 period over the past 30 sessions is 15,000 then it should show the volume for this 5-min slice as -5,000. Would also be nice if there was a line graph overlay that showed this in terms of % (in the foregoing example it would be -33.3%...i.e., -5,000/15,000). So bar chart showing true relative volume in terms of contracts, and an overlaid line graph showing the implied % variance from average. If this doesn't exist...is anyone skilled in the TOS programming language?
 
Solution
Does anyone have an indicator for ThinkorSwim that will display relative volume correctly? That is, rather than just comparing the current time frame's volume to the past "X" bars' volumes (which is what the default relative volume study does), the study should compare the same time slice across "X" number of historical days. For example, if looking at 5-min bars, and there were 10,000 contracts exchanged during the 5-min period from 11:50 to 11:55, but the average volume of the 11:50 to 11:55 period over the past 30 sessions is 15,000 then it should show the volume for this 5-min slice as -5,000. Would also be nice if there was a line graph overlay that showed this in terms of % (in the foregoing example it would be...
Does anyone have an indicator for ThinkorSwim that will display relative volume correctly? That is, rather than just comparing the current time frame's volume to the past "X" bars' volumes (which is what the default relative volume study does), the study should compare the same time slice across "X" number of historical days. For example, if looking at 5-min bars, and there were 10,000 contracts exchanged during the 5-min period from 11:50 to 11:55, but the average volume of the 11:50 to 11:55 period over the past 30 sessions is 15,000 then it should show the volume for this 5-min slice as -5,000. Would also be nice if there was a line graph overlay that showed this in terms of % (in the foregoing example it would be -33.3%...i.e., -5,000/15,000). So bar chart showing true relative volume in terms of contracts, and an overlaid line graph showing the implied % variance from average. If this doesn't exist...is anyone skilled in the TOS programming language?

i think this thread is similar to what you are asking. time based volume, reading volume from the same time, on multiple days. the studies may have to be tweaked to get exactly what you are after.
https://usethinkscript.com/threads/time-based-volume-indicator-for-thinkorswim.124/
 
Solution
I've been recently reading on SMBCapital's blog on RVOL. In their words, "Relative Volume. This compares current volume to normal volume for the same time of day, and it’s displayed as a ratio. So for example, a stock trading 5 1/2 times its normal volume would have a Relative Volume display of 5.5."

I assume this means they take, for example, the last 30min candle and compare it to the 30min candle from the same time the previous trading day. If the stock at 9:00am has a volume of 10,000 and yesterday's volume at 9:00am was 5,000, this would be a ratio of 2. (or maybe instead of yesterday, they take the average of the last X days.)

I'm not sure the specifics of what they're doing for RVOL, but it does seem interesting.

Are there any ideas on how they (or anyone) else could calculate RVOL for intraday trading, keeping in mind that you only have so much time in the day, so RVOL would have to be on a relative short time period.

I found this code, but not sure if it's the most ideal, or is there something better.

Ruby:
input length = 14; #number of time units
input offset = 1; #offset: 1 = don't include current time unit
def ADV = Average(volume, length)[offset]; #ADV
def rVol = Round(volume / ADV, 2); #relative volume

AddLabel(yes, rVol, if rVol >= 1 then COLOR.GREEN else COLOR.CURRENT);

The previous code is fairly crude way of calculating from candle to candle. Is there a better way?

Thank you.
 
Last edited:

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
447 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top