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 only.
Total is made up of buying and selling . Buying is the number of shares, contracts, or lots that were associated with buying trades, and selling is the number that were associated with selling trades.
This indicator shows two labels green one is showing the buying of the current day and the red label is showing the selling of the current day.
I am making this code available to all.
This code is for Total is made up of buying and selling . Buying is the number of shares,
contracts, or lots that were associated with buying trades, and selling is the number that were associated with selling trades.
//thanks to @Doc6272 who asked to make this indicator Label
1.added current bar volume can be On/Off by Changing input option
//Thanks to @hjsjshs for this update idea.
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.
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.
BTC : 1PZdTyH2faJn6XTyFK8C8uvS8zba2gCRmw
ETH : 0x0dF010AE708E424FD227f07538DeB24faa8B60e6