Volume Threshold Script For ThinkOrSwim

Alex

Active member
VIP
Input a volume threshold number of your choice and volume bars will paint in a different color + alert. From my observations markets tend to reverse (intraday) at or after a high volume spike / period this script allows me to quickly glance at the lower volume section of the chart and I identify just that. It's nothing fancy but I thought I would contribute and maybe somebody will find it useful in their trading. :)

volume_threshold.png

Code:
#Custom Volume Threshold
declare lower;
declare zerobase;

input Threshold = 3000;

plot Vol = volume;
plot ThresholdLine = Threshold;

ThresholdLine.setPaintingStrategy(paintingStrategy.line);
ThresholdLine.setDefaultColor(color.gray);
ThresholdLine.SetLineWeight(1);

Vol.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Vol.SetLineWeight(1);
Vol.DefineColor("Threshold", CreateColor(116,189,232));
Vol.DefineColor("Normal", CreateColor(10,93,128));
Vol.AssignValueColor(if vol > ThresholdLine then Vol.Color("Threshold") else if vol < ThresholdLine then Vol.Color("Normal") else GetColor(1));

Alert(vol > ThresholdLine, "HighVolume" , Alert.Bar, Sound.Bell);
 
Input a volume threshold number of your choice and volume bars will paint in a different color + alert. From my observations markets tend to reverse (intraday) at or after a high volume spike / period this script allows me to quickly glance at the lower volume section of the chart and I identify just that. It's nothing fancy but I thought I would contribute and maybe somebody will find it useful in their trading. :)

View attachment 20568
Code:
#Custom Volume Threshold
declare lower;
declare zerobase;

input Threshold = 3000;

plot Vol = volume;
plot ThresholdLine = Threshold;

ThresholdLine.setPaintingStrategy(paintingStrategy.line);
ThresholdLine.setDefaultColor(color.gray);
ThresholdLine.SetLineWeight(1);

Vol.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Vol.SetLineWeight(1);
Vol.DefineColor("Threshold", CreateColor(116,189,232));
Vol.DefineColor("Normal", CreateColor(10,93,128));
Vol.AssignValueColor(if vol > ThresholdLine then Vol.Color("Threshold") else if vol < ThresholdLine then Vol.Color("Normal") else GetColor(1));

Alert(vol > ThresholdLine, "HighVolume" , Alert.Bar, Sound.Bell);
From my observations markets tend to reverse (intraday) at or after a high volume spike / period this script allows me to quickly glance
That is absolutely true. TY
Next year I'm wanting to start a detailed review of all the volume techniques.
What are some of your favorite speakers who emphasis Volume.
 
That is absolutely true. TY
Next year I'm wanting to start a detailed review of all the volume techniques.
What are some of your favorite speakers who emphasis Volume.
I'm not sure if I have any but I think volume is a crucial part of any trading strategy as it's non lagging and can aid you in spotting things like exhaustion (reversals), low volume pull backs (which could indicate a continuation of the move) etc... it's not a 100% of course like any indicator but it's definitely worth keeping an eye on.
 

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