OPEN-SOURCE SCRIPT

Volume Delta Candles [LuxAlgo]

Volume Delta Candles provides insights about Intrabar trading activity in an easy-to-interpret manner. Lower timeframe or real-time data is used for displaying Volume Delta percentage against the total volume as a coloured bar part.

The script also highlights the intrabar price with the maximum trading activity, as well as complementary information.

🔶 USAGE

ảnh chụp nhanh

The tool focuses on intrabar volume to provide more information about the trading activity associated with a candle, without having to use an external volume indicator.

ảnh chụp nhanh

Each indicator components is further explained below:

🔹 Volume Delta

The volume delta is obtained by the difference between buy volume and sell volume, where buy volume is the volume associated with a bullish intrabar candle, and sell volume with a bearish intrabar candle.

Positive volume delta is displayed with a green candle area, while negative delta is displayed with a red candle area.

🔹 Bar Coloring

The script displays VD as a percentage of the whole, or from the candle half, depending on the setting 'Display'.

Bars can be coloured as follows:

  • Full (100%) when Display is set at 'Full Bar'
  • Half (50% or 100% of half a bar) when Display is set at 'Half Bar'


ảnh chụp nhanh

A negative VD (more bearish than bullish volume) will fill the bar from the top (or centre) of the bar towards the bottom, and a positive VD will fill a bar from the bottom (or centre) of the bar towards the top.

A negative VD on a green candle will show a red-coloured VD against a green-bordered candle. On the other hand, a positive VD on a red candle will show a green-coloured VD against a red-bordered candle.

ảnh chụp nhanh

Colours for VD sentiment opposite to the candle sentiment can be set differently if desired.

ảnh chụp nhanh

🔹 Highest Volume Price Level

ảnh chụp nhanh

The script displays a white (black on light mode) line highlighting the intrabar price level with the highest volume.

ảnh chụp nhanh

ảnh chụp nhanh

When 'Show Previous Max Volume Price' is checked, a white (black on light mode) dot is displayed 1 bar to the right.

🔶 DETAILS

🔹 Tick/LTF data

The above example used Lower TimeFrame (LTF) data.

The following example uses real-time tick data (Settings -> Data From)

ảnh chụp nhanh

Both options, LTF or tick data, will show a vertical dotted line where the data starts.

🔹 LTF settings

When 'Data from' LTF is chosen and 'Auto' enabled, the LTF will be the nearest possible x times smaller TF than the current TF. When 'Premium' is disabled, the minimum TF will always be 1 minute to ensure TradingView plans lower than Premium don't get an error.

Examples with current Daily TF (when Premium is enabled):

  • 500 : 3 minute LTF
  • 1500 (default): 1 minute LTF
  • 5000: 30 seconds LTF (1 minute if Premium is disabled)


🔹 Notes

  • Different LTFs give different data, which means different results; this doesn't mean it isn't correct; they are just different data sets.

    ảnh chụp nhanh

    (LTF is displayed at the top right corner)

  • To ensure maximum visibility of values, we recommend using Bars from the Bar's style menu.


🔶 SETTINGS

  • Data from: Lower TimeFrame or real-time Tick data
  • Resolution: LTF setting
  • Auto + multiple: Adjusts the initial set resolution
  • Premium: Enable when your TradingView plan is Premium or higher


🔹 Intrabar Data

  • Colours
  • Display: Full/Half bar
  • Show previous max volume price: White/black dot, showing previous highest volume price level


🔹 Table

  • Show TF: Show LTF at the top right corner
  • Colour + table text size


🔹 Details

  • Show details: label with 'Volume', 'Delta' (VD) and '%'


See USAGE for more information
buysellvolumecandleCandlestick analysisdeltaliquidityluxalgoVolume

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?


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.
Ngoài ra, trên:

Thông báo miễn trừ trách nhiệm