• Get $40 off VIP by signing up for a free account! Sign Up

Hersheys Volume Pressure Indicator for ThinkorSwim

BenTen

Administrative
Staff member
Staff
VIP
Lifetime
This indicator helps you identify the beginning and end of a trend using volume and price.

For up bars...
If you have a large price range with low volume , that's very bullish.
If you have a small price range with low volume , that's bullish.

For down bars...
If you have a large price range with low volume , that's very bearish.
If you have a small price range with low volume , that's bearish.

You can set the moving average period, 14 is the default.

This is somewhat similar to the other buy/sell volume pressure indicator.

vuLpr3f.png


thinkScript Code

Code:
# Hersheys Volume Pressure v1
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/sagqjOJG-Hersheys-Volume-Pressure-v1/

declare lower;

input abc = 14;
def upforce = if open < close then (close - open) / volume else 0;
def downforce = if open > close then (open - close) / volume else 0;
def d = expAverage(downforce, abc);
def u = expAverage(upforce, abc);

plot line1 = d;
plot line2 = u;

line1.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
line1.assignValueColor(Color.red);
line2.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
line2.assignValueColor(Color.green);
 

Attachments

  • vuLpr3f.png
    vuLpr3f.png
    76.9 KB · Views: 331

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

I recommend everyone look at this and take it for a test.. early stages, but see some potential value in it, simple but could be very effective. I usually a scalp type trader, and looks like a good fit on the lower timeframes. haven't had a chance to look at it at higher timeframes yet, but you might see some value.

please share any interesting findings and I will do the same.
 
@Craighaber71 It's just a simple volume indicator that shows up volume pressure compared to down volume pressure.
Buyers and Sellers is not information available in the data feeds.
When we look at the movement of price in comparison to volume, it is called Volume Pressure.
The scripts discussed here are representative of the PRICE spread compared to the overall volume spread.

Volume Pressure identifies the price movement which when aggregated against volume it is used to define MOMENTUM not actual buyers and sellers.
Longer green is more volume pressure.
 
Last edited by a moderator:

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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