Badshah.E.Alam

Day's Buy Sell Volume label


This indicator looks simple but it was bit tricky to code and to make it work on all time frames .
I have used array in this to showcase the use of array, array give you more flexibly.
It works on all time frame 1m 2m 3m 5m 10m 15m 30m 60m 120m.
When the time frame is greater than the or equal to "D" it will show the current bar volume only.


Total volume is made up of buying volume and selling volume . Buying volume is the number of shares, contracts, or lots that were associated with buying trades, and selling volume is the number that were associated with selling trades.

This indicator shows two labels green one is showing the buying volume of the current day and the red label is showing the selling volume of the current day.
I am making this code available to all.
This code is for Total volume is made up of buying volume and selling volume . Buying volume is the number of shares,
contracts, or lots that were associated with buying trades, and selling volume is the number that were associated with selling trades.
//thanks to @Doc6272 who asked to make this indicator Label
版本注释: UPDATE 1:
1.added current bar volume can be On/Off by Changing input option
2.removed BUGS
版本注释: Updated Label's
版本注释: Now you can see volume change in percentage also, Enable in input.
//Thanks to @hjsjshs for this update idea.
版本注释: Bug Removed, No changes Done in user Interface.
版本注释: Added comments in the code for better understanding of the code.
版本注释: The new version fixes the volume display, I have updated the codes with latest Pine Tables.
This is more user friendly than the previous version.
This new update is looking promising , thanks to @PineCoders for this update https://www.tradingview.com/blog/en/intr...

if you want you can switch to previous version in the settings.
版本注释: max_bars_back error resolved.

An enthusiast trader. I code my strategies in pine script.DM me or Mail Me for any Info at tabrejalam786007@gmail.com(paypal)
BTC : 1PZdTyH2faJn6XTyFK8C8uvS8zba2gCRmw
ETH : 0x0dF010AE708E424FD227f07538DeB24faa8B60e6
开源脚本

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

想在图表上使用此脚本?