OPEN-SOURCE SCRIPT

Volume Profile Heatmap

Atualizado
A variation of a Volume Profile based on code originally by LuxAlgo. (tradingview.com/script/5MggSfGG-Volume-Profile-LUX/) The traditional bar chart is replaced with full-width bars that are brighter for high volume price levels.

Like a traditional VP, its purpose is to visualize how volume corresponds to specific price levels, allowing you to get a quick idea of where the most activity is occurring, and where it hasn't been. This information may provide clues as to where price action may return, areas of support and resistance , and regions where price may move quickly. The basic concepts behind any Volume Profile (or Price by Volume Chart) should apply here as well. (investopedia article)

Inputs are set up such that you can customize the lookback period, number of rows, and width of rows for most major timeframes individually. Timeframes between those available will use the next lower timeframe settings (e.g., 2m chart will use the 1m settings.)

This indicator is experimental and is likely to receive further updates.
Notas de Lançamento
  • Increased max number of rows to 500 (I realized what I was missing, silly mistake).


NOTE: A "visible range" version (i.e., show the profile only for currently visible bars) is currently impossible due to PineScript not supporting any way to know what the leftmost bar is on a given chart. TV's built-in Visible Range VP uses some form of magic us Sorcerer's apprentices don't have access to.
Notas de Lançamento
  • Added an input to allow "sharpening" the gradient by emphasizing bright zones and de-emphasizing dim zones. Thanks @RNavega!
Notas de Lançamento
THE VISIBLE RANGE (kinda) UPDATE
Thanks to TV's new tools for determining the visibility of bars, we can now start accessing the arcane sorcery that allows us to refine data visualization to only those bars that we can see. Or as it is most commonly known as, the "Visible Range".

A new toggle has been added to the settings menu to replace the defined lookback periods with the currently visible bars instead. Unfortunately I haven't quite nailed down why their API doesn't seem to work for accessing the right-most bar index so for now we're limited to a "visible range" in the context of the current (most recent) bar, hence the "kinda" in the title. But still, I'm very excited about this update and I hope to further expand this tool in the near future as I continue to play around with these new features.
Notas de Lançamento
Figured out the "real" Visible Range; indicator now cares about where your rightmost bar is when doing calculations and drawing the heatmap.
Notas de Lançamento
  • Cleaned up settings menu and added a "number of rows" input for the Visible Range setting.
heatmapVolume ProfileVolumevpaVSA

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?


Thanks for using my indicators; I hope they make you money! Check out the website link for more, and thanks for your support!
Também em:

Aviso legal