OPEN-SOURCE SCRIPT
nifty vwap 3.1

Monitors the "Big Players"
It tracks the 10 most important stocks (like HDFC Bank, Reliance, and ICICI Bank) because these stocks carry the most "weight" and usually decide where the Nifty index goes.
2. The VWAP Test (The Filter)
For each stock, the code checks:
Is the current price Above its average price (VWAP)?
Or is it Below its average price?
Why? If a stock is above VWAP, it is considered Strong (buyers are in control). If it is below, it is Weak (sellers are in control).
3. Calculates "Power" (Weightage)
Instead of just counting stocks, it calculates their combined percentage in the Nifty.
Example: If only 3 stocks are "Above VWAP" but they are the biggest ones (like HDFC and Reliance), the "Total Weight" might still be very high (e.g., 30%), suggesting the market has underlying strength despite fewer stocks being green.
4. Visual Table
It puts all this info into a neat Table on the top-right of your chart.
Teal Section: Shows stocks that are Strong/Bullish.
Red Section: Shows stocks that are Weak/Bearish.
Summary: It tells you exactly how many stocks are on each side and their total percentage impact.
It tracks the 10 most important stocks (like HDFC Bank, Reliance, and ICICI Bank) because these stocks carry the most "weight" and usually decide where the Nifty index goes.
2. The VWAP Test (The Filter)
For each stock, the code checks:
Is the current price Above its average price (VWAP)?
Or is it Below its average price?
Why? If a stock is above VWAP, it is considered Strong (buyers are in control). If it is below, it is Weak (sellers are in control).
3. Calculates "Power" (Weightage)
Instead of just counting stocks, it calculates their combined percentage in the Nifty.
Example: If only 3 stocks are "Above VWAP" but they are the biggest ones (like HDFC and Reliance), the "Total Weight" might still be very high (e.g., 30%), suggesting the market has underlying strength despite fewer stocks being green.
4. Visual Table
It puts all this info into a neat Table on the top-right of your chart.
Teal Section: Shows stocks that are Strong/Bullish.
Red Section: Shows stocks that are Weak/Bearish.
Summary: It tells you exactly how many stocks are on each side and their total percentage impact.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.