Stock Volume Indicator that shows volume selling vs buying

mchapma72

New member
Is there a script that will show the daily volume and distinguish between sellers and buyers as?

One Day the volume candle may have a long green with short red section. Next day the volume candle may be a short green with long red section.

I don't see a way to paste an image in this post. You can insert a link to insert an image but the image is on my desktop.

Thanks,
Mark
 
Is there a script that will show the daily volume and distinguish between sellers and buyers as?

One Day the volume candle may have a long green with short red section. Next day the volume candle may be a short green with long red section.

I don't see a way to paste an image in this post. You can insert a link to insert an image but the image is on my desktop.

Thanks,
Mark
The ToS data feeds do not provide buyers and sellers volume data.
A workaround used by members is to assume where there is a bullish price candle spread that there is buying volume pressure.
Read more:
https://usethinkscript.com/threads/...ssure-indicators-labels-for-thinkorswim.8466/
 

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

@mchapma72 Try this:
Not true volume. Volume Pressure:

Code:
declare lower;
declare zerobase;

def O = open;
def H = high;
def C = close;
def L = low;
def V = volume;

#Replace the two lines below to accommodate unfilled gaps
#def Selling = V * (H - C) / (H - L);
#def Buying = V * (C - L) / (H - L);

# Unfilled Gap down: Use prior close as high
def equivHi = if H < C[1] then C[1] else H;
# Unfilled Gap up: Use prior close as low
def equivLo = if L > C[1] then C[1] else L;

def Buying = Round(V * (C - equivLo) / (equivHi - equivLo), 0);
def Selling = Round(V * (equivHi - C) / (equivHi - equivLo), 0);

# Selling Volume
plot SV = Selling;
SV.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
SV.SetDefaultColor(CreateColor(255, 0, 0)); #Red
SV.SetLineWeight(1);
#SV.hide();

# Buying Volume
plot BV = Buying;
BV.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
BV.SetDefaultColor(CreateColor(0, 255, 0));
BV.SetLineWeight(5);
#BV.hide()

Good Luck and Good Trading :cool:
 
Last edited by a moderator:
@mchapma72 Try this:
Not true volume. Volume Pressure:

Code:
declare lower;
declare zerobase;

def O = open;
def H = high;
def C = close;
def L = low;
def V = volume;

#Replace the two lines below to accommodate unfilled gaps
#def Selling = V * (H - C) / (H - L);
#def Buying = V * (C - L) / (H - L);

# Unfilled Gap down: Use prior close as high
def equivHi = if H < C[1] then C[1] else H;
# Unfilled Gap up: Use prior close as low
def equivLo = if L > C[1] then C[1] else L;

def Buying = Round(V * (C - equivLo) / (equivHi - equivLo), 0);
def Selling = Round(V * (equivHi - C) / (equivHi - equivLo), 0);

# Selling Volume
plot SV = Selling;
SV.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
SV.SetDefaultColor(CreateColor(255, 0, 0)); #Red
SV.SetLineWeight(1);
#SV.hide();

# Buying Volume
plot BV = Buying;
BV.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
BV.SetDefaultColor(CreateColor(0, 255, 0));
BV.SetLineWeight(5);
#BV.hide()

Good Luck and Good Trading :cool:
Looks good. One question though. What does the first number (looks like ratio to me) represent? The number is blue. Thank you for your script and responding. Mark
 

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
394 Online
Create Post

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