Volume Confirmation Indicator Version 2


Active member
VIP Enthusiast
The idea is Buying + Selling = Volume. Thus plotting Buying/Volume and Selling/Volume tells us which side is more aggressive. If my strategy says go long then I enter the trade when the Buyers are more aggressive and volume is above average.

*This is just something early stages I am working on as far as volume confirmations, I hope to add to its value more later
**In the future I will probably consider adding multi time frame so then I have multiple confirmations from different angles.

declare lower;

input length = 12;

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

def BuyingPer = (C-L)/(H-L);
def SellingPer = (H-C)/(H-L);

plot up = BuyingPer;
def down = SellingPer;

def avgVolume = Average(volume, length = length);

def isGreen = up > down and volume > avgVolume[1];
def isLightGreen = up > down and volume < avgVolume[1];
def isOrange = up < down and volume < avgVolume[1];
def isRed = up < down and volume > avgVolume[1];

up.DefineColor("Green", Color.GREEN);
up.DefineColor("LightGreen", Color.Light_GREEN);
up.DefineColor("Orange", Color.ORANGE);
up.DefineColor("Red", Color.RED);
up.AssignValueColor(if isGreen then up.Color("Green") else if isLightGreen then up.Color("LightGreen") else if isOrange then up.Color("Orange") else if isRed then up.Color("Red") else Color.LIGHT_GRAY);

Here is Version 1

input agg = AggregationPeriod.WEEK;

input length = 12;

def O = open;

def H = high;

def C = close;

def L = low;

def V = volume;

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

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

Assert(length > 0, "'length' must be positive: " + length);

#def avgPrice = ExpAverage(close(period = agg), length = length);

def avgVolume = ExpAverage(volume, length = length);

def isGreen = Buying > Selling and volume > avgVolume[1];

def isLightGreen = Buying > Selling and volume < avgVolume[1];

def isOrange = Buying < Selling and volume < avgVolume[1];

def isRed = Buying < Selling and volume > avgVolume[1];

plot Vol = volume;



Vol.DefineColor("Green", Color.GREEN);

Vol.DefineColor("LightGreen", Color.Light_GREEN);

Vol.DefineColor("Orange", Color.ORANGE);

Vol.DefineColor("Red", Color.RED);

Vol.AssignValueColor(if isGreen then Vol.Color("Green") else if isLightGreen then Vol.Color("LightGreen") else if isOrange then Vol.Color("Orange") else if isRed then Vol.Color("Red") else Color.LIGHT_GRAY);
Last edited by a moderator:
My strategy looks at the last 90 days to establish an uptrend and then I look at the dips on the hourly with volume as confirmation. Anything less than an hour seems to give to many false signals imho but day trading is not my style, I usually swing trade

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