TradingView
KioseffTrading
11 พฤศจิกา 2022 เวลา 4 นาฬิกา 39 นาที

Volume Profile Volume Delta OI Delta [Kioseff Trading] 

Ethereum / TetherUS PERPETUAL CONTRACTBinance

คำอธิบาย

Hello!

This script serves to distinguish volume delta for any asset and open interest delta for Binance perpetual futures.



The image above provides further explanation of functionality and color correspondence.



The image above shows the indicator calculating volume at each tick level and displaying the metric.

The label color outline (neon effect) is configurable; the image above is absent the feature.



The image above shows Open Interest (OI) Delta calculated - similar to how the script calculates volume delta - for a Binance Perpetual Future pair.

This feature only works for Binance Futures pairs; the script will not load when trying to calculate OI Delta on other assets.

Additionally, a heatmap is displayable should you configure the indicator to calculate it.



The image above shows a heatmap using volume delta calculations.



The image above shows a heatmap using OI delta calculations.

Of course, these calculations - when absent requisite data - require some assumptions to better replicate calculations with access to requisite data.

The indicator assumes a 60/40 split when a tick level is traded at and only one metric - "buy volume" or "sell volume" is recorded. This means there shouldn't be any levels recorded where "buy volume" is greater than 0 and "sell volume" equals 0 and vice versa. While this assumption was performed arbitrarily, it may help better replicate volume delta and OI delta calculations seen on other charting platforms.

This option is configurable; you can select to have the script not assume a 60/40 split and instead record volume "as is" at the corresponding tick level.

The script also divides volume and open interest if a one-minute bar violates multiple tick levels. The volume or open interest generated on the one-minute bar will be divided by the number of tick levels it exceeds. The results are, subsequently, appended to the violated tick levels.

Further, the script can be set to recalculate after a user-defined time threshold is exceeded. You can also define the percentage or tick distance between levels.

Also, it'd be great if this indicator can nicely replicate volume delta indicators on other charting platforms. If you've any ideas on how price action can be used to better assume volume at the corresponding price area please let me know!

Thank you (:


เอกสารเผยแพร่

Added color configuration options.

เอกสารเผยแพร่

Last change for night; improved efficiency.

เอกสารเผยแพร่



Added a "Classic Look" feature (selectable in user input settings). The mode displays data in a more "traditional" manner (:

เอกสารเผยแพร่



Added an option to show only the current bar's data. Useful when appending several indicators to the chart (:

เอกสารเผยแพร่

Small update to classic look & efficiency!
ความคิดเห็น
PineCoders
KioseffTrading
@PineCoders, Thank you very much Pinecoders!!
afzaalbwp
@KioseffTrading,
if array.get(m3, x) < array.get(levelsCount, 0) if array.get(m, x) >= array.get(m6, x) if array.get(m2, x) > array.get(volCountUp, 0) * 3 array.set(volCountUp, 0, array.get(volCountUp, 0) + array.get(m2, x)) colorChange(array.get(lettersBox, i), color.new(color.green, 100)) // Set buy volume color to green else array.set(volCountUp, 0, array.get(volCountUp, 0) + array.get(m2, x)) colorChange(array.get(lettersBox, i), color.new(color.red, 100)) // Set buy volume color to red else if array.get(m2, x) > array.get(volCountDn, 0) * 3 array.set(volCountDn, 0, array.get(volCountDn, 0) + array.get(m2, x)) colorChange(array.get(lettersBox, i), color.new(color.green, 100)) // Set sell volume color to green else array.set(volCountDn, 0, array.get(volCountDn, 0) + array.get(m2, x)) colorChange(array.get(lettersBox, i), color.new(color.red, 100)) // Set sell volume color to red
Trendoscope
Awesome work buddy.
KioseffTrading
@HeWhoMustNotBeNamed, Thank you very much Lord. V!!! Much appreciated (:
LonesomeTheBlue
Great one! Thank you for sharing it with the community!
KioseffTrading
@LonesomeTheBlue, The legend himself!

Thank you so much Lonesome!!! This makes my day!! (: I very much appreciate the support!
LonesomeTheBlue
@KioseffTrading, That's so kind of you, Dude. Thank you!
RedKTrader
Absolutely fantastic piece of work!
KioseffTrading
@RedKTrader, Thank you for the kind words Red!! Very much appreciated and good to see ya man! (:
เพิ่มเติม