TradingView
Infinity_Trading_
3 פבר׳ 2022 02:10

Volume Pressure Bars 

Meta Platforms, Inc.NASDAQ

תיאור

Description

This indicator transforms the normal volume bars into buying and selling segments. This allows the user to easily see how much buying and selling pressure is occurring on any given timeframe. The buying and selling pressure values are calculated using the following equations:

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

Moving Average Line

Also included in this indicator is the optional moving average line. This allows the user to easily see if volume is above or below the average line. All aspects of the moving average line can be adjusted. The line can be toggled on & off, the length of the moving average can be adjusted, the mathematical smoothing function can be chosen, and the color & style of the line can be configured.

Scaling

If the volume pressure bars are displayed on the same “pane” as the price candles, then the volume bars can be scaled up or down. In the Input settings check the “Scale Bars” checkbox. Then increase the “Scaling Factor” number to make all of the volume bars smaller (to allow more room on your chart) or decrease the number to make the volume bars bigger.

IMPORTANT NOTE #1: scaling only works when the volume pressure bars are in the same pane as the price candles. If the volume pressures bars are in their own pane, then the “Scale Bars” toggle has no effect.

IMPORTANT NOTE #2: if the volume pressure bars are in the same pane as the price candles then there will be a sizable gap between the bottom of the volume bars and the time axis on the TradingView chart. This IS NOT a bug in this indicators code. The gap IS a bug in the TradingView platform that affects all volume indicators besides the default volume indicator that comes with each blank chart. To remove the gap then move the “_Vol Bars” indicator to its own pane above or below the main pain.

Volume Numbers

In Pine Script there is not a true stacked bar chart plot. What the author has to use are multiple bar charts that are in front and behind each other. This gives the impression that the bars are truly stacked because the selling pressure is always smaller than the total volume on any given bar. There is no issue to visually look at the bars and see their heights but if the user used their cursor to hover on a bar to get the actual volume pressure values it leads to issues. To address this problem the author has created a third invisible bar called “Buy Vol Label” that is the buy pressure volume value. Thus when the user hovers the cursor over a bar the first value (from left to right) is the total volume for the bar, the second value is the sell pressure, the third value is the buy pressure, and the fourth value (if toggled on) is the moving average value.
תגובות
MatthewWen
Indicators are very useful,
But if you can try to increase the alert, for example, the bullish volume is greater than the bearish volume % o
Ether2020
Thanks my friend! Very nice indicator!
Infinity_Trading_
@Ether2020!!! Thanks so much for another donation! It really means a lot to me!!!
icrypto1
Great indicator! Thank you for sharing
zschonn
@Infinity_Trading_ Remarkable work ! could you explain what is buy label ?
dcffinancials
Nothing appears when I add this indicator to my Trading View chart?
DjjCI8i2
Excellent indicator! Thank you.

Thumbs up to volume analysis tools, as they show how volume is the cause and (stock) price is merely the effect...

Feedback? In the spirit of supporting this project, consider maybe inverting the buy/sell pressure. Script refinement might be as simple as:

plot(buyingPressure + sellingPressure, style=plot.style_columns, color=color.new(#b71540, 0), title="Sell Vol Bar & Label")
plot(buyingPressure, style=plot.style_columns, color=color.new(#10ac84, 0), title="Buy Vol Bar")

You used the word ' intuitively' in a below comment. Often resistance lines are colored red, and sit above, and support lines green, and sit below.
Selling pressuring instinctively coming from above - pushing prices down. And buying pressuring feels like something coming from below, to push prices up.

Hope this simple idea helps.
Food_Plus
Thank you very much for this script... is the buying and selling pressure bar of this indicator reliable?
Infinity_Trading_
@Food_Plus, You are very welcome! “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).
icrypto1
I have one question, what is the green line "limit"?
עוד