OPEN-SOURCE SCRIPT

EquiVolume [LuxAlgo]

EquiVolume is a charting method that aims to incorporate volume information to a candlestick chart. Volume is highlighted through the candle body width, with wider candles suggesting more significant volume.

Our script shows an EquiVolume chart for the visible chart range. Additionally regular volume can be plotted as a column plot with the column's width controlled by volume.

🔶 SETTINGS

🔹 Options

  • Chart: Shows candles with volume adjusted width.
  • Volume: Shows volume with volume adjusted width.


🔹 Intrabar Analysis

  • Enable/disable: When LTF is enabled, the script will calculate the % volume/candles in the same direction than current timeframe.
  • You can choose a LTF between 1 and 240 minutes.
  • Type %:
         - Volume: sum of volume of all LTF candles, which are in the same direction.
         - #bars: sum of all LTF candles, which are in the same direction.


🔹 Width Boxes (bars)

  • Minimum width: sets the minimum width of a box (candle/volume)
  • Maximum width: sets the maximum width of a box (candle/volume)


🔶 USAGE

This charting method makes it easier to spot large volume candles, against comparing candles to volume.

snapshot

Another example:

snapshot

Additionally, users can make the script perform an intrabar analysis on the chart candles, allowing to highlight bullish/bearish activity within a candle. The script can estimate bullish/bearish trading activity within a candle or simply use intrabar candle signs.

Example

- 15-minute candle is green
- 10 1-minute candles (LTF) IN that 15-minute candle are green -> 10/15 = 66,667%
-> The current 15-minute candle will be 66,667% filled with green color.

snapshot

Note that the script will draw everything from last visible bar at the right to left, as such you can scroll backwards, and the script will show you the data of the visible chart.

snapshot

Scrolling back will return the following result:

snapshot

🔶 REMARKS

When the LTF is too far apart from current timeframe, you should get an error. To prevent this, the LTF will automatically rise, giving no error.

snapshot

When this happens, the adjusted LTF will be displayed. Do note, due to a maximum available LTF data, sometimes boxes won't always be visible (since there is no LTF data anymore)

To solve this, just elevate your LTF:

snapshot

When the set LTF is higher than current TF, you would normally get an error as well.

This script will automatically adjust the LTF to current TF, together with a visible warning (no error though).

snapshot

Due to the inability to draw a line in the space between bars, sometimes a wick won't be placed exactly in the middle.

snapshot
candleschartequivolumeluxalgosupply_and_demandVolume

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?


Get access to our exclusive tools: luxalgo.com

Join our 150k+ community: discord.gg/lux

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
Também em:

Aviso legal