badshah_e_alam

Day's Buy Sell Volume label

4374 views
337

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.
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, you can donate me at PayPal on mentioned mail.

Comments

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
badshah_e_alam GeardoLima
@GeardoLima, HEY, 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
I think this code has some issues. it doesn't work consistently..some times does not show buy & sell volumes ….need to check by changing different time frames frequently..then the real issue will come
+1 Reply
badshah_e_alam SocietyPlayer
@SocietyPlayer, thank you for the feedback, When the time frame is greater than or equal to "D" it will show the current bar volume only, you may face problem in smaller time frame due to max bars bac limit set by tradingview. Let me now what problem you are facing in detail.
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
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out