Nifty Volume

Why this Script : Nifty 50 does not provide volume and some time it is really useful to understand the volume .

This is the pine script which calculate the nifty 50 volume .

Logic :

Take each stock contribute to nifty 50 and find it's volume .
Multiply the same with contribution percentage of the same on Nifty 50
Add up all of them and find the total volume .

There is a similar script by @daytraderph which is built for Bank Nifty (custom volume ) . I took the same and built for Nfity.

Nifty has 50 stocks and you cant call security method more than 40 times from one Pine script, so this is the limitation of this script. It consider top 40 stocks and find the volume (which contribute pretty much around 95% of the volume ) and convert the same to 100 %
Versionshinweise: Updating chart
Versionshinweise: Updating chart
Versionshinweise: New weightage updated
Open-source Skript

Ganz im Sinne von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es verstehen und überprüfen können. Ein Hoch auf den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln. Sie können das Skript den Favoriten hinzufügen, um es auf dem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?


will it update automatically as the nifty 50 average weightage stocks changes?
+24 Antworten
Thank You, Getting Memory limit excided error. What is the recomended time frame to load this chart?
+5 Antworten
shijithlal tsghosh
@tsghosh, I am also getting the issue, still working on the same to solve it.
+3 Antworten
Pls add also moving Average in this scipt
working very nice...
Nice work ! I understand the limitation of 40 calls from PINE script to security. But how you are sure that this contributes 95% ? is it from any NSE data ?
but the weightages change everymonth...isnt it ? ..your values could be abit off
if you can make a script which take volume of IND50US, onanda, and config it with time of nifty 50, indian opening and closing time, will be great.
V := V + (V * 4.95 / 100)

what is the reason behind choosing the 4.95 value ?
@kp03, As of now the total volume calculated with limited scripts (because of max security call issue) will come to a number and adding 4.95 % of the same to it will give 100 %. That is the logic
Startseite Aktien-Screener Forex-Screener Krypto-Screener Wirtschaftskalender Über Chartmerkmale Preise Einen Freund empfehlen Hausregeln Hilfe Center Webseite & Brokerlösungen Widgets Charting Lösungen Lightweight Charting Library Blog & News Twitter