Unusual Volume over past 30 days

Logan

New member
I see there are many scans for unusual volume. As I am not able to do much code writing in TOS, I am hoping to find a scan that looks back 30 days for unusual volume rather than looking just at the current bar. In other words, in the past 30 days has the stock experienced a volume change on any given day, greater than 50% of volume average.
Thank you for any assistance, much appreciated.
 
I see there are many scans for unusual volume. As I am not able to do much code writing in TOS, I am hoping to find a scan that looks back 30 days for unusual volume rather than looking just at the current bar. In other words, in the past 30 days has the stock experienced a volume change on any given day, greater than 50% of volume average.
Thank you for any assistance, much appreciated.

Logan,

I think this might be what you were looking for. The amount of increase or decrease in volume is adjustable (default = 50% change). The 50 period simple moving average of volume was used as the average and this can be changed in the inputs. I couldn't incorporate the idea of a 30 day lookback; it gave too many positive signals because it looked for unusual volume having occurred at any time in the last 30 days. Not sure how to address that properly.

Arrows on the chart show where there was unusual volume. They should be scannable by selecting the study and e.g., setting highVol to "is true" in the scanner.

Screenshot (1712).png

Code:
# HighOrLowVolume
# question from Logan on 4-9-24
# note that the fractional increase producing high volume and the fractional decrease leading to low volume are now adjustable inputs. Default moving average of volume is a 50 period simple moving average but it is adjustable.

input price = close;
input length1 = 50;
input averagetype = AverageType.SIMPLE;
input highvolChange = 0.50;
input lowvolChange = 0.50;

def AvgVol = movingaverage(averagetype, volume, length1);

plot highVol = volume > AvgVol * (1 + highvolChange);
plot lowVol = volume < AvgVol * (1 - lowvolChange);

highVol.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
highVol.SetDefaultColor(Color.BLUE);
highVol.SetLineWeight(3);

lowVol.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
lowVol.SetDefaultColor(Color.MAGENTA);
lowVol.SetLineWeight(3);
 
Last edited by a moderator:

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
368 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