Volume Accumulation Percentage Indicator for ThinkorSwim

BenTen

Administrative
Staff member
Staff
VIP
Lifetime
This indicator was converted from TradingView.

Volume Accumulation Percentage Indicator (VAPI) is a variation of the classic volume-accumulation indicators. It uses volume the same way as OBV except that it assigns volume weights based on intraday volatility.

In a positive trend, if the stock price is close to a (local) new high, the VAPI should be at its maximum as well (and vice versa for a negative trend). If the market is looking for a direction, if the price is in the bottom side of his current trading range and if, at the same moment the VAPI osc slopes up, there is accumulation on the stock and that the prices should start to climb. The SELL signal is given when the VAPI decreases (distribution). Divergences are usually very effective too.

Tuning the "length" parameter may be needed for your instrument (default is 10), do let me know if you find a different value to be optimal for majority of instruments.

E0K596o.png


thinkScript Code

Code:
# Volume Accumulation Percentage Indicator [LazyBear]
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/kVk6pN9z-Volume-Accumulation-Percentage-Indicator-LazyBear/

declare lower;

input length = 10;
def x = (2 * close - high - low) / (high - low);
def tva = sum(volume * x, length);
def tv = sum(volume, length);
def va = 100 * tva / tv;
plot ZeroLine = 0;
plot histogram = va;
plot line = va;

histogram.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
histogram.assignValueColor(if va > 0 then Color.green else Color.red);
 

Attachments

  • E0K596o.png
    E0K596o.png
    103.8 KB · Views: 148
This uses 2x the closing price. Chaikin Money Flow uses close-low, otherwise this is about the same.
 
@horserider You would have to make that decision for yourself. If OBV is working for you I don't see any reason to use this.
 
OBV, Chaikin, Twiggs, ..all types of money flow indicators are out there. What Speaks to one trader and there individual style is up to them.
What BenTen is sharing for this community is giving them a choice that they might not know of. just my 2 cents.
 
From my experience testing OBV, Chaikin, MFI. And imho the best volume flow oscillator for daily+ timeframe is FVE (finite volume element).

But what I really use is just relative volume on every bar and the price action. Volume oscillators works very similar to price oscillators and share same issues- they are great for confirmation, but by themselves produce A LOT of false signals. Cannot be used as primary signal imho
 

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