OPEN-SOURCE SCRIPT
Index MTF Candle Direction Table

Index MTF Candle Direction Table
This indicator displays the candle direction of 13 major NSE and BSE indices across three fixed timeframes — 3 minutes, 5 minutes, and 10 minutes — in a compact table on the chart.
How it works
For each index, request.security fetches the open and close on the 3m, 5m, and 10m timeframes. Each cell is then colored based on the direction of that candle: green if close is above open, red if close is below open, and gray if they are equal. The table updates on every bar.
Indices tracked
Nifty 50, Bank Nifty, Sensex, CNX IT, CNX Finance, Nifty Mid Select, CNX Auto, CNX Pharma, CNX Metal, CNX PSU Bank, CNX FMCG, CNX Realty, Nifty Private Bank.
Cell indicators
Settings
Designed for NSE/BSE charts. Works on any base timeframe; the table always shows 3m, 5m, and 10m data regardless of the chart timeframe.
This indicator displays the candle direction of 13 major NSE and BSE indices across three fixed timeframes — 3 minutes, 5 minutes, and 10 minutes — in a compact table on the chart.
How it works
For each index, request.security fetches the open and close on the 3m, 5m, and 10m timeframes. Each cell is then colored based on the direction of that candle: green if close is above open, red if close is below open, and gray if they are equal. The table updates on every bar.
Indices tracked
Nifty 50, Bank Nifty, Sensex, CNX IT, CNX Finance, Nifty Mid Select, CNX Auto, CNX Pharma, CNX Metal, CNX PSU Bank, CNX FMCG, CNX Realty, Nifty Private Bank.
Cell indicators
- Green / + — bullish candle (close above open) on that timeframe
- Red / - — bearish candle (close below open) on that timeframe
- Gray / o — neutral candle (close equals open) on that timeframe
Settings
- Table Position — choose which corner of the chart the table appears in (top right, top left, bottom right, bottom left)
Designed for NSE/BSE charts. Works on any base timeframe; the table always shows 3m, 5m, and 10m data regardless of the chart timeframe.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.