badshah_e_alam

Day's Buy Sell Volume label

7864 visualizzazioni
483

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

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?
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

Commenti

is always in the way of candles
+2 Rispondi
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.
Rispondi
badshah_e_alam GeardoLima
@GeardoLima, this problem has been resolved, please refresh the indicator .
Rispondi
This code will not work one second data because of Max_bars _back limit set by tradingview, it is working perfectly in all timeframe above 1 second, Let me now if u face any irregularity or any bug.
+2 Rispondi
badshah_e_alam badshah_e_alam
@badshah_e_alam, EDIT: it is working perfectly in all timeframe above 1 second, Let me now if u face any irregularity or any bug.
Rispondi
The back testing is going smoothly

but i have a request ... can you include Live Currency Strength Meter to the Indicator and Trade option

like the edited picture i sent to your mail

i will really make a great impact
+1 Rispondi
badshah_e_alam eazysoftnig88
@eazysoftnig88,If more people ask for this addition and If this requirement/message gets more than 50 upvotes than i will update it.
+1 Rispondi
Thanks so much for the Indicator
but i am having some issue, i tried to back test the indicator and got some error, hoping you can fix the bug

"Study Error! pine cannot determine the referencing length of a series. try using max_bars_back in the study or strategy function."
+1 Rispondi