TradingView
Infinity_Trading_
Mar 12, 2022 9:17 PM

Volume Pace & Pressure Table 

SPDR S&P 500 ETF TRUSTArca

Description

Have you ever wanted to know if a particular tickers volume is above or below average while still in the trading day? This indicator displays an easy-to-read table that informs the user exactly what is occurring in intraday volume. And a whole lot more!

Description

This indicator displays a variable table with either two or three columns and always three rows. It packs everything a user needs to know about volume in one small table. The table shows:
  • Current trading days volume
  • Average daily volume
  • Volume Pace
  • Volume Pressure (Buying & Selling)


Volume Pace

Volume Pace is a mathematical calculation invented by the author, Infinity_Trading. The problem was to figure out a way to know if the current days volume was below average or above average while still in the trading day. Calculations like Percent Daily Volume don’t work during the intraday trading hours. For example, say SPY has a 20-day volume average of 100 million shares. If in the first hour SPY has only traded 10 million shares then dividing the current volume into the average daily volume doesn’t tell the user anything when there is still 5.5 hours of trading left in the trading day. There had to be a better way! The solution was to chop up the trading day into evenly divisible time periods (i.e. <= 30 minutes). The Volume Pace algorithm takes the average daily volume and chops it up into small time periods based upon the charts current timeframe. This is the average volume per smaller time period. Then use the current days volume and the number of time periods that have occurred in the trading day so far (at the current moment in time i.e. the current candlestick) to form a calculation that returns the volume above or below the average volume up to that point in time.

Volume Pace Equations

Intraday Vol. Pace = Today’s Current Vol. - ( ( Average Daily Vol. / Time periods in trading day ) * Time periods that have occurred so far in trading day ) Postday Vol. Pace = Today’s Trading Vol. - Average Daily Vol.

^ Vol. = Volume (because TradingViews pine tags are dumb)

Volume Pace Definitions

Volume Pace is the difference in cumulative volume between todays current volume and the average daily volume up to same time of the day

Volume Pace Usage

If the Volume Pace is a positive number then it means that up to the current trading time the volume is that amount greater than the average daily volume over that same intraday time span.

If the Volume Pace is a negative number then it means that up to the current trading time the volume is that amount smaller than the average daily volume over that same intraday time span.

If the Volume Pace is positive during the intraday then the volume is on track to be an above average volume trading day.

If the Volume Pace is negative during the intraday then the volume is on track to be a below average volume trading day.

The Percent Volume Pace is the percent increase or decrease of the current volume compared to the average volume up to the same time of day. Or the Percent Volume Pace is the Volume Pace expressed as a percentage.

After the trading day is complete the Volume Pace will be the difference between the Daily Volume and the Average Daily Volume. And the same thing applies to the Percent Volume Pace.

Volume Pressure

The author, Infinity_Trading, did not invent the calculations for Volume Pressure but the definitions and explanations of Volume Pressure are their own creations. In specific terms, Volume Pressure is a mathematical calculation that uses the direction and distances of individual candlesticks bodies and wicks to assign a numerical value to volume.

buyingPressure = vol * (close - low) / (high - low) sellingPressure = vol * (high - close) / (high - low)

^ vol = Volume (because TradingViews pine tags are dumb)

The author wants to make clear that volume “pressure” isn’t a real thing. Trades in any market require a buyer and a seller. So there is always an equal number of buyers and sellers. Thus, the idea that there are more buyers or more sellers isn’t rooted in reality. BUT the author believes that the calculation and understanding of “volume pressure” takes a very complex subject (price moment in a market) and condenses into something that intuitively makes sense to humans (pressure) and places it onto something that is already on everyone’s charts (volume bars).

The calculation for Buying Pressure is really calculating the upward distance between the low and the close of the candle. While Selling Pressure is measuring the downward distance from the high to the close. And both are using volume bars to express these measurements. So if an individual candle goes down then the red Selling Pressure will be more on the stacked bar chart than the green Buying Pressure. And vice versa for candles that went up. If a Volume Pressure bar is completely one color then it means, for a downward candle, the low and close were equivalent, and for an upward candle, the high and the close were the same. Lastly, the Buying & Selling Pressure will always add up to 100%.

Inputs and Style

In the Input section the user can set the number of days to use for all of the average calculations. All aspects of the table can be controlled. The background color, text color, border widths, and border colors. Also, the table can be moved to 9 unique locations around the chart for complete user control. Also, the user can use their cursor to hover over each cell in the table to reveal a tooltip definition of the calculation in the cell.

Special Notes

  • The volume table won’t display when the chart timeframe is weekly or monthly because the logic uses “daily” volume.
  • The Volume Pace column in the table disappears when the timeframe is greater than 30 minutes. Because for Volume Pace to work the time periods must be equally divisible into 6.5 hours (the duration of trading day).





Comments
thelearnerearner
this is by far one of the best indicators on TV, can you please add Volume Pace to extended hour charts for the 1hr and 4hr as that would make it perfect.

I know you have said you could not, but i do believe you could add it?
jrthomasbiz1545
Thanks pal , very good for intraday. Appreciate if you could develop , candle wise table . Which will be as good as Order Flow indicator. Each candle should tell % of buyer and seller. If following candle increases - its a buy or call and vice versa. Try and keep it up.
krishina
sorry, but the volume pace was not clear to me. Can you better differentiate the pace volume of the first column and the pace volume of the middle column?
dax001007
Thanks, great script.
If we add intraday and average ATR here, it would be super cool.
Mindspirit
Hello, can you add an option to disable specific columns? This would improve the quality-of-life for the indicator drastically. Thanks.
thelearnerearner
@Mindspirit, great idea!
lv8webdesign
Hey! Great indicator. How can we get the table text size to be larger? I've tried to modify the code with no luck. Thanks in advance!
theodorewakefield
Does this indicator work well with futures? I am seeing somewhat of a discrepancy between this and what relative volume is telling me on a futures index.
rizwanaslam1974
Well done, very helpfull, only thing if you make the pressure colum color change option, I mean if it 50% both yellow, if Buying is greater then highlight green while selling remain white, and if selling is greater Colour Red, and the other turns to neutral. any way it is a great help.
Infinity_Trading_
@rizwanaslam1974, Thank you so much! ... That's a great idea! I will look into your feature suggestion
More