Disproportionate Volume Graph

TexasRattler

New member
Hey everyone, I was wondering if there was a solution to changing the volume graph on TOS. For instance, a stock I was looking into, traded 14 million shares in a day, however on the volume graph, 14 million was barely a blip on the graph. On the 1 year 1 day chart, there is only 3 noticeable bars on the volume graph because of a single day that the stock traded 320 million shares. This makes it very difficult to actually see the kind of volume that a stock is trading. The range on my volume graph goes from 0 to 200 million. When it really should be in increments of maybe 50k or so. But I can't figure out how to change that. If anyone has any solutions or can point me in the right direction, that would be incredibly helpful. And if you have any more questions, please feel free to ask. I know I'm not explaining my issue very well.

P.S. I have contacted TOS customer support, and he also said he wasn't sure about a solution. Thank you.
 
Solution
Hey everyone, I was wondering if there was a solution to changing the volume graph on TOS. For instance, a stock I was looking into, traded 14 million shares in a day, however on the volume graph, 14 million was barely a blip on the graph. On the 1 year 1 day chart, there is only 3 noticeable bars on the volume graph because of a single day that the stock traded 320 million shares. This makes it very difficult to actually see the kind of volume that a stock is trading. The range on my volume graph goes from 0 to 200 million. When it really should be in increments of maybe 50k or so. But I can't figure out how to change that. If anyone has any solutions or can point me in the right direction, that would be incredibly helpful. And if...
Well, there are a few ways to go about it, none of which are perfect solutions. You could adjust the Y axis manually with your mouse, and then use the pan tool to bring the volume into view. That becomes fairly annoying though. You could also write your own volume study, check for an average of volume, and exclude any volume bars which are more than, say, 10 times the average volume, or something like that. This will most likely reek havoc on intraday volume with extended hours though, might be best on daily time frames.

Here is just an example to give you an idea of what I am talking about, it would need a lot of extra work to truly be a replacement for the volume subgraph.

Code:
declare lower;
input AvgLength = 50;
input IgnoreMultiple = 10;
def Vol = Volume;
def AvgVol = Average(Vol,AvgLength);
plot Histo =
    if Vol > AvgVol * IgnoreMultiple
    then Double.NaN
    else VOl
;
Histo.setpaintingStrategy(paintingStrategy.HISTOGRAM);
 

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

Hey everyone, I was wondering if there was a solution to changing the volume graph on TOS. For instance, a stock I was looking into, traded 14 million shares in a day, however on the volume graph, 14 million was barely a blip on the graph. On the 1 year 1 day chart, there is only 3 noticeable bars on the volume graph because of a single day that the stock traded 320 million shares. This makes it very difficult to actually see the kind of volume that a stock is trading. The range on my volume graph goes from 0 to 200 million. When it really should be in increments of maybe 50k or so. But I can't figure out how to change that. If anyone has any solutions or can point me in the right direction, that would be incredibly helpful. And if you have any more questions, please feel free to ask. I know I'm not explaining my issue very well.

P.S. I have contacted TOS customer support, and he also said he wasn't sure about a solution. Thank you.
maybe this will help


this is a lower chart study that shows volume data differently.

there are 2 options for choosing a max level (cutoff level) for the bars.
. enter a volume number.
. pick a % number, used to find a % of the max volume bar.

if a volume spike exceeds the cutoff level,
. the bar is light blue.
. the value can be shown under the zero line, in units of millions.


Code:
# alt_volume_histo_01

# alt volume chart
#  show volume bars only up to a certain level

declare lower;

def bn = barnumber();
def na = double.nan;
def dat = volume;
def vmax = highestall(dat);

input vol_cutoff_type = { default level , percent_of_max };

input vol_level = 1000000;
def sethi = (vmax < vol_level);
def vol_level2 = if sethi then vmax else vol_level;

input percent_of_maxvol = 60;
def per = (percent_of_maxvol / 100);

# ----------------------

def num;
def vlevel;
switch (vol_cutoff_type) {
case level:
  num = 1;
  vlevel = vol_level2;
case percent_of_max:
  vlevel = floor(per * vmax);
  num = 2;
}

def big = (dat > vlevel);

plot z = 0;
z.SetDefaultColor(Color.gray);

input show_cutoff_line = yes;
plot zhi = if show_cutoff_line then vlevel else na;
zhi.SetDefaultColor(Color.gray);

# plot a mod histo of vol
plot vmod = if big then vlevel else dat;
vmod.SetPaintingStrategy(PaintingStrategy.histogram);
vmod.DefineColor("normal", color.blue);
vmod.DefineColor("hi", color.cyan);
vmod.AssignValueColor(if ( dat > vlevel ) then vmod.color("hi") else vmod.color("normal"));

input show_big_values = yes;
plot bigval = if (show_big_values and big) then round(dat/1000000, 2) else na;
bigval.SetPaintingStrategy(PaintingStrategy.values_below);
bigval.SetDefaultColor(Color.white);

input show_labels = yes;
addlabel( show_labels and num == 1, "set level " + vol_level, color.yellow);
addlabel( show_labels and num == 1 and sethi, "cutoff level lowered to", color.cyan);
addlabel( show_labels and num == 1 and !sethi, "cutoff level " + vlevel, color.cyan);

addlabel( show_labels and num == 2, "cutoff level " + vlevel, color.cyan);
addlabel( show_labels and num == 2, "is " + percent_of_maxvol + "% of", color.yellow);

addlabel( show_labels, "max " + vmax, color.orange);


set max level for volume
otwYuSe.jpg


cutoff level lowered to the max
FsbaEMo.jpg


pick a % of max volume
QVciBzY.jpg


inputs
zYsi5Rn.jpg

hal_vol
volume trim clip
 
Last edited:
Solution
maybe this will help


this is a lower chart study that shows volume data differently.

there are 2 options for choosing a max level (cutoff level) for the bars.
. enter a volume number.
. pick a % number, used to find a % of the max volume bar.

if a volume spike exceeds the cutoff level,
. the bar is light blue.
. the value can be shown under the zero line, in units of millions.
This Solution is great, i would love to see it modify to work from avg volume up, say 5x avg vol cutoff instead of from top down, with top down approach there are extreme stocks have 300x vol and you still see nothing even you set your level as 10%, but then you click through some normal action stocks you get all your bars over that 10% level.
Is there a script for cutoff level calculated from avg vol?
 
maybe this will help


this is a lower chart study that shows volume data differently.

there are 2 options for choosing a max level (cutoff level) for the bars.
. enter a volume number.
. pick a % number, used to find a % of the max volume bar.

if a volume spike exceeds the cutoff level,
. the bar is light blue.
. the value can be shown under the zero line, in units of millions.



volume trim clip
I like this a lot, but it doesn't show the volume bar as it's being created, only after that candle has printed. How can I make it so it's showing the volume as it's being formed? Thanks!
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
372 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