Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Q-Tip: Relative Volume = (Today's Volume) / (Average Volume)

As a low-skilled programmer, I often rely on copying examples from other people's code to learn how to perform some functionality. That is why I want to give back to the community, by sharing snippets of code that you can use to improve your algorithms.

This "Q-Tip" shows how significant (big or small) today's volume was, when compared to the average volume. This volume information is helpful when trying to determine if price action has momentum behind it.

NOTE: Can someone help me understand why "Today's Volume" for SPY (and QQQ) was incorrectly low on 2015-05-04? This code should be running 5-minutes before close, so the volume should be near the total value (which was 70.8 million).