badshah_e_alam

Day's Buy Sell Volume label

5534 views
393

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
Release Notes: UPDATE 1:
1.added current bar volume can be On/Off by Changing input option
2.removed BUGS
Release Notes: Updated Label's
Release Notes: Now you can see volume change in percentage also, Enable in input.
//Thanks to @hjsjshs for this update idea.
Release Notes: Bug Removed, No changes Done in user Interface.
Release Notes: Added comments in the code for better understanding of the code.
Release Notes: 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.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?
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

Comments

great indicator sir. Can you do a 2nd version of instead label buy & sell volume, you do it in columns or histogram of BV & SV?
something like the volume bar but buy vol & sell volume.

anyway, great stuff.
+1 Reply
@nizar9599, Thank you for the suggestion. I will look into it.
Reply
@nizar9599, hello after your suggestion i have developed this indicator , please check
+1 Reply
nizar9599 badshah_e_alam
@badshah_e_alam,
Wow thats so cool.
Thank you & marvelous work.
Reply
@nizar9599, you are welcome :-)
Reply
I love you Man!
+1 Reply
@tvcross, Thank you :-)
Reply
needs to be able to move around
+1 Reply
badshah_e_alam GeardoLima
@GeardoLima, thank you for your feedback, Can you please advice me where should be the labels so that it is comfortable to the users, please make a demo drawing and share me the screenshot ,i will update it accordingly.
Reply
is always in the way of candles
+1 Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter