# Can We Look At Buy / Sell Volume Pressure Like This?

#### tatl

##### Member
hi hi

these formulas don't describe buying and selling volume:

def buying = V*(C-L)/(H-L);
def selling = V*(H-C)/(H-L);

they simply describe:
" volume multiplied by the portion of the price candle below the close "
and
" volume multiplied by the portion of the price candle above the close "

three problems:
• volume may not be distributed evenly in the trades that occurred above and below the close
• not all volume below the close is buying volume (trades taken at the ask)
• not all volume above the close is selling volume (trades taken at the bid)
the way to actually ascertain if a "tick" or trade was "buying" volume is to check if it caused the Last price to go Up.
the way to check if a "tick" or trade was "selling" volume is to check if it caused the Last price to go Down.
some "ticks" or trades keep Last price the same. these are Neutral volume.

so a real indicator that does this would look at each tick and check if it caused the Last price to increase (buying volume), decrease (selling volume), or stayed the same (neutral volume)

I don't code thinkscript that well, i just know how to think about math. it's easy to get confused about what math does. would love for someone to code a buying/selling/neutral volume indicator accurately.

thanks for the reply! to be clear the indicator i'm talking about would definitely include volume in the formula!

buying volume = " the combined volume of all the trades(ticks) that increased the last price"
selling volume = " the combined volumes of all the trades(ticks) that reduced the last price"
neutral volume = "the combined volumes of all the trades(ticks) that left Last price the same"

it doesnt seem possible to get the trade price and volume for the previous tick.

i know its possible to get a value from a bar ago, for example close[1]. but i think i've learned it's impossible to get the price or volume from the previous tick or "trade".

however, perhaps it's possible to save the price value of the current tick, and then compare it to the next one that occurs?

and to save the volume for the current tick?

if you could save the current price and then compare it to the next tick's price, you could see if the next tick is buying or selling volume based on if its price is higher or lower. then you could add its volume to a cumulative "buyvol" or "sellvol" and derive true buying and selling volume.

Solution
Is there a way to actually ascertain if a "tick" or trade was "buying" volume is to check if it caused the Last price to go Up.
the way to check if a "tick" or trade was "selling" volume is to check if it caused the Last price to go Down.
some "ticks" or trades keep Last price the same. these are Neutral volume.

The ToS platform provides the Open, Close, High and Low of one bar in time. There is no provision for Tick unless you are on a Tick Chart.

Even if you were on a Tick Chart, the ToS platform does not provide Buying Volume or Selling Volume.

As imperfect as it is, we only have the Volume Pressure code that you detailed at the beginning of your post.

Try pairing:

the Volume Pressure...
Is there a way to actually ascertain if a "tick" or trade was "buying" volume is to check if it caused the Last price to go Up.
the way to check if a "tick" or trade was "selling" volume is to check if it caused the Last price to go Down.
some "ticks" or trades keep Last price the same. these are Neutral volume.

The ToS platform provides the Open, Close, High and Low of one bar in time. There is no provision for Tick unless you are on a Tick Chart.

Even if you were on a Tick Chart, the ToS platform does not provide Buying Volume or Selling Volume.

As imperfect as it is, we only have the Volume Pressure code that you detailed at the beginning of your post.

Try pairing:

the Volume Pressure
https://usethinkscript.com/threads/...ssure-indicators-labels-for-thinkorswim.8466/

with Support & Resistance
https://usethinkscript.com/threads/trend-pivot-points-indicator-by-mobius-for-thinkorswim.1631/

and a Trend Indicator
https://usethinkscript.com/threads/a-serving-of-trend-and-momentum-indicators-for-thinkorswim.4880/

To narrow down your results.

### Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
282 Online

## 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.