Skip to content

Add preset index lists for quick symbol selection#10

Open
tanishq-rocks wants to merge 1 commit into
ArunKBhaskar:mainfrom
tanishq-rocks:feature/preset-index-list
Open

Add preset index lists for quick symbol selection#10
tanishq-rocks wants to merge 1 commit into
ArunKBhaskar:mainfrom
tanishq-rocks:feature/preset-index-list

Conversation

@tanishq-rocks

Copy link
Copy Markdown

Summary

Adds a Preset Index List dropdown to all scanner/screener indicators, letting users scan a full Nifty index instead of manually pasting symbols into the Notes field.

  • New Preset Index List input (group: Preset Index Lists) with 22 options: None (use Notes), Nifty 50, Next 50, 100, 200, 500, LargeMidcap 250, Midcap 50/100/150, Smallcap 50/100/250, Microcap 250, Bank, Private Bank, PSU Bank, Auto, Finance, FMCG, Metal, Pharma, Realty.
  • Since request.security() allows at most 40 calls per script, each index is pre-split into 40-symbol Pages (Page 1 (1-40), Page 2 (41-80), ...), selected via a matching <List Name> — Page dropdown.
  • effective_symbols now resolves via a switch on the selected list/page, falling back to the existing manually-pasted i_symbols Notes input when None (use Notes) is selected — so existing behavior/configs are preserved by default.
  • Applied consistently across all 14 scanner/screener scripts.

Why

Manually pasting up to 40 EXCHANGE:SYMBOL pairs into the Notes field for every scan was tedious and error-prone. This adds ready-made Nifty index/sector symbol lists so users can scan a whole index in one click, while still supporting custom symbol lists as before.

Files changed

  • ICT Displacement Candles/[Scanner] ICT Displacement Candles.txt
  • ICT Equal Highs and Lows/ICT Equal Highs and Lows with Screener.txt
  • ICT Fair Value Gap (FVG)/Scanner - ICT Fair Value Gap (FVG) Scanner.txt
  • ICT Liquidity Sweep Pattern/Scanner - ICT Liquidity Sweep Pattern Scanner.txt
  • ICT Liquidity Void/[Scanner] ICT Liquidity Void Fill Scanner.txt
  • ICT Liquidity Void/ICT Liquidity Void Screener.txt
  • ICT Market Structure Shift (MSS)/ICT Market Structure Shift (MSS) Screener.txt
  • ICT Mitigation Block/[Scanner] ICT Mitigation Block Scanner.txt
  • Momentum Setup - RSI Direction Confirmation Scanner/... Bajaj Momentum Investing Setup with Scanner.txt
  • .../[Scanner] Momentum Setup - RSI Directional Momentum.txt
  • Option Buying Scalping Setup/... Option Buying Scalping Setup with Scanner.txt
  • Option Buying Scalping Setup/... Vijay Thakare Option Buying Scalping Setup.txt (minor unrelated one-line fix)
  • Sideways Market Skipper/... Sideways Market Skipper Scanner.txt
  • ICT Retracement to Order Block/... ICT Retracement to Order Block with Screener.txt
  • .../... Market Profile by RicardoSantos).txt

Testing done

  • Already tested manually in TradingView — confirmed working.
  • Load each updated script in TradingView Pine Editor and confirm it compiles without errors.
  • For each script, select None (use Notes) and verify it still scans the pasted Notes symbols as before.
  • Select a preset index (e.g. Nifty 50) and each of its Page options, and confirm the screener table populates with the expected symbols.
  • Spot-check symbol counts per page (≤40) to confirm no request.security() call-limit errors.
demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant