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.

快照

Another example:

快照

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.

快照

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.

快照

Scrolling back will return the following result:

快照

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

快照

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:

快照

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

快照

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

快照
candleschartequivolumeluxalgosupply_and_demandVolume

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


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.
更多:

免责声明