OPEN-SOURCE SCRIPT

Weighted Volume Profile | Flux Charts

Mis à jour
💎 GENERAL OVERVIEW
Introducing our new Weighted Volume Profile Indicator! This indicator renders a volume profile based on the volume of latest candlesticks. It can be adjusted to give more weight to recent or past candlesticks, or can be used as a normal volume profile. For more information, please read the full write-up.

snapshot

Features of the new Weighted Volume Profile indicator :
  1. Renders Volume Profile Of Current Ticker
  2. Adjustable Weighthing Towards Past or Recent
  3. Customizable Row Count & Maximum Distance
  4. Left or Right Alignment
  5. More Styling Options


🚩UNIQUENESS
This indicator differs from a normal volume profile indicator by it's ability to weight volumes based on their distance to the current time. Giving weight to volumes may offer new trading opportunities to traders as they can now see the most recent Point Of Control (POC) or a more powerful but past POC based on their choice. The indicator also has a variety of useful styling settings such as aligning the volume profile to the right or the left of the chart, POC Line styling and color settings for bullish & bearish volumes.
snapshot

📌 HOW DOES IT WORK ?
A volume profile provides an in-depth look at trading activity over a period of time by plotting a histogram on the price axis. This indicator can also give weight to volumes based on their distance to the current time, essentially determining their importance for the profile. Here is how it works step-by-step :
1. Determine how much candlesticks the volume profile will cover (Analyze Bars setting)
2. Make a range from the highest point of chart to the lowest point of chart, then divide it into rows (Row Count setting)
3. For each candlestick, add it's volume to the corresponding row in the range. Note that the volume can be added into several rows if it overlaps with them.
4. If the candlestick is a bullish candlestick, we add it's volume into the bullish volume of the row, if it's a bearish candlestick, we add it to the bearish volume of the row.

With the weighted volume mode, which is activated if "Volume Weighthing" setting is set to "Recent" or "Past", all volumes get a penalty based on their distance to the latest candletstick. For example, if the setting is set to "Recent", the latest candlestick contributes it's volume by 100% to the corresponding row, but the candlestick which is 50 candlesticks far from the current candlestick only contributes it's volume by ~17% to the row. The same applies to the "Past" setting, but in the reversed order, where past candlesticks have more priority than the current ones.

Volume contribution percent for "Recent" setting : ((100 * 0.85) / (i + 1)) + (100 * (1.0 - 0.85))
Volume contribution percent for "Past" setting : ((100 * 0.85) * ((i + 1) / N)) + (100 * (1.0 - 0.85))

Where i = candlestick index from right to left, N = total number of candlesticks analyzed by the volume profile.

snapshot

The Point Of Control (POC) line is drawn from the row with the most total volume, and is generally considered as a strong level because a lot of trading volume happened on that particular row. Traders may use this line as a support & resistance level.
snapshot

Traders can use this indicator to have an insight of areas which price moves quickly without much volume, or see areas that holds the price still for much longer and plan their trades accordingly.

⚙️SETTINGS

1. General Configuration

Analyze Bars -> Total amount of bars that will be analyzed by the indicator from right to left.
Row Count -> The amount of rows that will the vertical range of chart will be divided into.
Volume Weighting -> The volume weighting mode as explained in the write-up.
snapshot
snapshot

2. Style
Align To -> The alignment of the volume profile.
snapshot
snapshot
Notes de version
  • Various fixes
fluxchartsPOCTrend AnalysisVolatilityvolumeprofileanalysisvolumeprofileindicatorVolumeweightedvolume

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?


Get Access to Flux Charts indicators: fluxcharts.com/?via=tv

Free trade signals for stocks, crypto, forex, and futures: discord.gg/fluxcharts
Aussi sur:

Clause de non-responsabilité