PROTECTED SOURCE SCRIPT
SST Table Shekhar

SST Table Shekhar — v6.10.2
A compact, movable table that displays up to 20 symbols per group (Group A / Group B), shows current price (CMP), previous 20-day high (OLD GTT), current 20-day high (NEW GTT) and an UPDATE flag when NEW GTT < OLD GTT. Adds SMA20 on-chart, with an optional daily closing-basis alert for CMP crossing above SMA20. Designed for daily timeframe usage and efficient multi-symbol monitoring.
Key features
Two symbol groups (Group A / Group B), each up to 20 tickers — switch between groups without editing text fields.
Clean, transparent, movable table: STOCK | CMP | OLD GTT | NEW GTT | UPDATE.
Correct per-symbol OLD GTT (previous bar’s 20-day high) using a single request.security() call per symbol (optimized under TradingView limits).
SMA20 plotted on the chart (blue line).
Toggleable plots: HIGH20 / LOW20 / TARGET for the active chart symbol.
Alternate row shading and header background selector; font size selector.
Alerts:
Update GTT — when NEW 20D HIGH < OLD 20D HIGH (aggregated list).
CMP Cross Above SMA20 (closing basis) — when symbol closes above its SMA20 (uses previous close & previous SMA20 for closing-basis detection).
Alert messages list all symbols that triggered in the active group and include the group name.
Robust parser for input symbol lists — handles commas, semicolons, pipes, newlines and trims empty entries.
Inputs (exposed)
20-Day High/Low Length — period for HIGH/LOW (default 20).
Target % — percent used to compute target (optional plotted).
Group A / Group B — comma-separated lists of tickers (blank by default).
Show Which Group? — select Group A or Group B for display.
Table Corner — position (Top Left / Top Right / Bottom Left / Bottom Right).
Font Size — Small / Normal / Large.
Header Background — Transparent / Silver / Blue / Green / Yellow.
Show HIGH20/LOW20/TARGET Plots — toggle plotting of those lines for the chart symbol.
Alternate Row Shading & opacity.
Enable Update GTT Alert & Alert Only On Bar Close toggle.
Enable CMP Cross Above SMA20 Alert & Cross Only On Bar Close toggle.
Alerts / How to use
Put the script on a chart (recommended timeframe: 1D for reliable closing-basis cross signals).
Populate Group A and/or Group B with up to 20 tickers each (comma-separated). Leave blank to start fresh.
In the indicator’s Inputs, choose which group to view with Show Which Group?.
To create a TradingView alert:
Click the Alarm icon → Add alert.
Condition: choose either the alertcondition lines exposed by the script:
SST Table Shekhar v6.10.2 → Update GTT (any symbol)
SST Table Shekhar v6.10.2 → CMP Cross Above SMA20 (any symbol)
Or choose Any alert() function call if you want the script’s internal alert() messages (aggregated).
Set Options to Once per bar close if you want alerts only at bar close (recommended for daily timeframe), or Once per bar for intrabar.
Choose delivery channels: pop-up, app, email, webhook (webhook recommended for automation).
Alert messages include ticker lists (e.g. Update GTT = YES for: NSE:TCS, NSE:RELIANCE — (Group A)).
Practical examples
Use Group A for your core watchlist, Group B for a secondary watchlist; toggle groups to change the displayed list.
Keep chart on daily timeframe and enable Cross Alert Only On Bar Close for accurate closing-basis signals.
Use webhook alerts to push signals to Google Sheets, Discord/Telegram, or a trading automation system.
Performance & limits
Each symbol uses one request.security() call returning a tuple — optimized to stay below TradingView’s 40 unique-request limit.
Designed for up to 20 symbols per group (40 total), but running both groups simultaneously (40 requests) may approach limits depending on other indicators on your chart. Keep it to 20 per instance for best stability.
Works best on 1D / 4H / 1H timeframes. On very low intraday timeframes (1–5 min) you may see heavier resource usage — reduce number of symbols or plots if needed.
Known limitations
Alerts are aggregated (single alert lists all matching tickers). If you need individual per-symbol alerts you can create separate script instances or ask for per-symbol alert logic.
Only the CMP Cross Above SMA20 (closing basis) is included in this release. If you want downward crosses (CMP crosses below SMA20) or more complex rules (volume filter, RSI, etc.), I can add those.
Changelog
v6.10.2 — stable publish candidate: Group A/B, 20 symbols, robust parser, SMA20 cross alerts, optimized single-request per symbol, UI/appearance options, alert messages.
(previous dev notes kept internally)
Permissions & licensing
You may publish and redistribute this script on TradingView. If you republish code derived from this indicator, please keep author credit as Shekhar / SST Table Shekhar and note any modifications.
This script is provided as-is. Not financial advice. Use at your own risk.
Support / Contact
For feature requests, bug reports, or help configuring alerts/webhooks (Discord/GSheets/Telegram) — message me in the TradingView script comments or reply to this post.
A compact, movable table that displays up to 20 symbols per group (Group A / Group B), shows current price (CMP), previous 20-day high (OLD GTT), current 20-day high (NEW GTT) and an UPDATE flag when NEW GTT < OLD GTT. Adds SMA20 on-chart, with an optional daily closing-basis alert for CMP crossing above SMA20. Designed for daily timeframe usage and efficient multi-symbol monitoring.
Key features
Two symbol groups (Group A / Group B), each up to 20 tickers — switch between groups without editing text fields.
Clean, transparent, movable table: STOCK | CMP | OLD GTT | NEW GTT | UPDATE.
Correct per-symbol OLD GTT (previous bar’s 20-day high) using a single request.security() call per symbol (optimized under TradingView limits).
SMA20 plotted on the chart (blue line).
Toggleable plots: HIGH20 / LOW20 / TARGET for the active chart symbol.
Alternate row shading and header background selector; font size selector.
Alerts:
Update GTT — when NEW 20D HIGH < OLD 20D HIGH (aggregated list).
CMP Cross Above SMA20 (closing basis) — when symbol closes above its SMA20 (uses previous close & previous SMA20 for closing-basis detection).
Alert messages list all symbols that triggered in the active group and include the group name.
Robust parser for input symbol lists — handles commas, semicolons, pipes, newlines and trims empty entries.
Inputs (exposed)
20-Day High/Low Length — period for HIGH/LOW (default 20).
Target % — percent used to compute target (optional plotted).
Group A / Group B — comma-separated lists of tickers (blank by default).
Show Which Group? — select Group A or Group B for display.
Table Corner — position (Top Left / Top Right / Bottom Left / Bottom Right).
Font Size — Small / Normal / Large.
Header Background — Transparent / Silver / Blue / Green / Yellow.
Show HIGH20/LOW20/TARGET Plots — toggle plotting of those lines for the chart symbol.
Alternate Row Shading & opacity.
Enable Update GTT Alert & Alert Only On Bar Close toggle.
Enable CMP Cross Above SMA20 Alert & Cross Only On Bar Close toggle.
Alerts / How to use
Put the script on a chart (recommended timeframe: 1D for reliable closing-basis cross signals).
Populate Group A and/or Group B with up to 20 tickers each (comma-separated). Leave blank to start fresh.
In the indicator’s Inputs, choose which group to view with Show Which Group?.
To create a TradingView alert:
Click the Alarm icon → Add alert.
Condition: choose either the alertcondition lines exposed by the script:
SST Table Shekhar v6.10.2 → Update GTT (any symbol)
SST Table Shekhar v6.10.2 → CMP Cross Above SMA20 (any symbol)
Or choose Any alert() function call if you want the script’s internal alert() messages (aggregated).
Set Options to Once per bar close if you want alerts only at bar close (recommended for daily timeframe), or Once per bar for intrabar.
Choose delivery channels: pop-up, app, email, webhook (webhook recommended for automation).
Alert messages include ticker lists (e.g. Update GTT = YES for: NSE:TCS, NSE:RELIANCE — (Group A)).
Practical examples
Use Group A for your core watchlist, Group B for a secondary watchlist; toggle groups to change the displayed list.
Keep chart on daily timeframe and enable Cross Alert Only On Bar Close for accurate closing-basis signals.
Use webhook alerts to push signals to Google Sheets, Discord/Telegram, or a trading automation system.
Performance & limits
Each symbol uses one request.security() call returning a tuple — optimized to stay below TradingView’s 40 unique-request limit.
Designed for up to 20 symbols per group (40 total), but running both groups simultaneously (40 requests) may approach limits depending on other indicators on your chart. Keep it to 20 per instance for best stability.
Works best on 1D / 4H / 1H timeframes. On very low intraday timeframes (1–5 min) you may see heavier resource usage — reduce number of symbols or plots if needed.
Known limitations
Alerts are aggregated (single alert lists all matching tickers). If you need individual per-symbol alerts you can create separate script instances or ask for per-symbol alert logic.
Only the CMP Cross Above SMA20 (closing basis) is included in this release. If you want downward crosses (CMP crosses below SMA20) or more complex rules (volume filter, RSI, etc.), I can add those.
Changelog
v6.10.2 — stable publish candidate: Group A/B, 20 symbols, robust parser, SMA20 cross alerts, optimized single-request per symbol, UI/appearance options, alert messages.
(previous dev notes kept internally)
Permissions & licensing
You may publish and redistribute this script on TradingView. If you republish code derived from this indicator, please keep author credit as Shekhar / SST Table Shekhar and note any modifications.
This script is provided as-is. Not financial advice. Use at your own risk.
Support / Contact
For feature requests, bug reports, or help configuring alerts/webhooks (Discord/GSheets/Telegram) — message me in the TradingView script comments or reply to this post.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.