Stock Screener & Pine Script Editor
Filtering thousands of stocks and building custom indicators with Pine Script.
Mr. Chartist Workflow
Read with a trading desk mindset.
Every TradingView article now follows a practical pattern: understand the tool, map it to a charting workflow, apply it on Indian market instruments, and turn it into a repeatable workspace habit.
9
Sections
7m
Read
bottom
Level
Open a clean chart and locate the exact TradingView area covered in "Stock Screener & Pine Script Editor".
Apply it on one liquid NSE stock, one index, and one weekly timeframe so the concept is not learned in isolation.
Save the layout, write one note about what improved your decision-making, and remove anything that adds noise.
The Bottom Menu is where TradingView stops being a charting tool and starts being a research workstation. It holds 7 screener types with hundreds of filter fields, the Pine Script v6 editor, the Strategy Tester, and the Trading Panel for simulated and live order entry.
The top menu and left toolbar deal with what you can see. The bottom menu deals with what you cannot: narrowing 2,000-plus NSE listings down to a workable list, encoding a scanning rule as code, and running that rule across a whole watchlist rather than one chart at a time.
This guide goes tab by tab, defines each metric in plain English the first time it appears, and builds a practical workflow for the Indian market — cutting the NSE universe down by market capitalisation, working within the derivatives-eligible list, and understanding which data the screener genuinely carries and which it does not.
2. Stock Screener: Cutting the NSE Universe Down to Size
Open the Stock Screener tab and the first thing to do is set the exchange. With Exchange set to NSE, the table becomes the Indian listed universe — roughly two thousand names, which is far more than anyone can look at. Every filter after this one exists to make that number smaller.
Market capitalisation is the most effective first cut. Market cap is simply share price multiplied by the number of shares outstanding — the total rupee value the market places on the company. Setting a floor at, say, ₹10,000 crore removes the illiquid end of the list, where a single order can move the price and where chart structure is often meaningless.
Liquidity deserves its own filter alongside it. Average volume over 30 days tells you how many shares change hands on a normal day. A stock whose average is 20,000 shares cannot absorb a meaningful position without slippage — the gap between the price you expected and the price you actually got, caused by there being too few resting orders at your level.
Now the fundamental fields, each of which is worth defining. P/E, the price-to-earnings ratio, is the share price divided by earnings per share; it says how many rupees the market pays for one rupee of annual profit. EPS, earnings per share, is net profit divided by shares outstanding. ROE, return on equity, is net profit as a percentage of shareholder funds — how efficiently the company turns owners' capital into profit.
EV/EBITDA is the one people skip and shouldn't. Enterprise value is market cap plus debt minus cash — what it would cost to buy the whole business including its obligations. EBITDA is earnings before interest, tax, depreciation and amortisation, a rough proxy for operating cash generation. The ratio compares the two, and unlike P/E it is not distorted by how much debt a company carries.
The technical fields carry their own vocabulary. RSI, the relative strength index, is a 0-to-100 oscillator measuring the size of recent gains against recent losses. MACD, moving average convergence divergence, tracks the gap between two exponential moving averages. ATR, average true range, measures a typical candle's full range over a lookback and is a volatility measure rather than a direction one.
A worked screen: Exchange = NSE, market cap above ₹10,000 crore, 30-day average volume above 5 lakh shares, price above the 200-day simple moving average, and price within 15% of its 52-week high. That is a description of large, liquid names holding a long-term uptrend — a starting list for chart work, not a list of trades.
Everything the screener returns is a starting point. A filter combination describes a state a stock is in today; it says nothing about what happens next, and no arrangement of filters converts a list into a decision. The chart work after the screen is where the actual analysis happens.
Fundamental Filters
- Market cap: total rupee value the market places on the company.
- P/E and P/B: what the market pays per rupee of profit, and per rupee of book value.
- EV/EBITDA: whole-business value against operating cash proxy, undistorted by debt.
- ROE and EPS growth: profit efficiency, and the direction of per-share earnings.
- Debt-to-equity and dividend yield: balance-sheet load and cash returned to holders.
Technical Filters
- Price relative to the 20, 50, 100 and 200-period moving averages.
- Average volume over 10, 30 and 90 days — the liquidity screen.
- Distance from the 52-week high and low.
- ATR: typical candle range, used to size stops in volatility terms.
- RSI and MACD, if you use oscillator conditions in your process.
Snapshot & Takeaways
3. Building the Indian Universe: Market Cap, Delivery and F&O Eligibility
Screening for the Indian market has three practical layers, and only some of them live inside TradingView. Being clear about which is which saves a lot of wasted searching through filter menus.
The first layer is capitalisation banding, and it is entirely native. NSE and index providers segment the market into large-cap, mid-cap and small-cap bands. In the screener you approximate these with market-cap floors and ceilings — for example above ₹50,000 crore for the large-cap end, ₹15,000 to ₹50,000 crore for the middle, and below that for small-caps.
Why band at all? Because the same setup means different things in different bands. A base breaking out on NSE:RELIANCE happens in a name with deep resting liquidity on both sides. The same visual pattern on a ₹800-crore small-cap can be a handful of orders. Banding first stops you comparing structures that are not comparable.
The second layer is delivery percentage, and here you need to know the limitation. Delivery percentage is the share of a day's traded volume that actually settled as delivery into demat accounts, rather than being squared off intraday. A high figure means buyers took the stock home; a low figure means the day's volume was largely intraday churn.
TradingView's stock screener does not carry a delivery-percentage field. The data is published by NSE itself in its daily security-wise delivery position, so if you want to use it you bring it in from there and apply it as a second pass on the shortlist the screener produced. Treat this as a manual step, not a filter you will find in a dropdown.
The third layer is derivatives eligibility. Only a defined list of securities has futures and options available on NSE, and that list is maintained and revised by the exchange. Whether a stock is F&O-eligible changes what you can do with it and how it tends to behave around expiry.
The workable approach is a watchlist. Take NSE's published list of derivative-eligible securities, build it as a TradingView watchlist, and run your screening within that list rather than trying to express eligibility as a filter. The Pine Screener, covered later, runs against a watchlist by design, which makes this the natural pairing.
Put together, the Indian workflow reads: set the exchange, band by market cap, filter for liquidity, apply your technical and fundamental conditions, then cross-check the survivors against the derivatives list and — if you use it — the exchange's delivery data. What comes out is a shortlist to study, and studying it is a separate job from producing it.
Snapshot & Takeaways
Critical Warning
Do not treat a screener result as a signal. A filter set describes a condition a stock is in right now — it contains no information about what follows, and stacking more filters narrows the list without adding predictive content. Every name that survives a screen still needs the chart read, the level, and the invalidation written out before it means anything.
4. All Screener Types: Beyond Stocks
TradingView runs separate screener engines per asset class, because the fields that describe a stock do not describe a bond or a token. Each engine carries the vocabulary of its own market rather than forcing everything into equity language.
The stock screener is the one Indian traders use most, and it covers NSE and BSE listings alongside global exchanges. Its fields split into the fundamental group (valuation, profitability, balance sheet) and the technical group (price relative to moving averages, volume, range measures).
The ETF screener describes funds rather than companies, so its fields are assets under management, expense ratio and tracking performance rather than P/E and ROE. The bond screener works in yield, maturity and credit rating — again, a completely different vocabulary because a bondholder is asking a different question from a shareholder.
The crypto screeners carry fields with no equity analogue at all: circulating supply, 24-hour volume across venues, and market dominance. Two separate engines exist for exchanges — one for centralised venues and one for decentralised ones, where liquidity-pool metrics replace conventional order-book data.
The Pine Screener is the odd one out and the most useful once you outgrow dropdowns. Rather than filtering a table, it runs a Pine Script you wrote against every symbol in a watchlist and returns those that satisfy the script's conditions. That is what makes it the right home for the NSE derivatives-eligible watchlist described earlier.
One habit is worth forming immediately: save filter combinations as presets. A preset called 'NSE large-cap liquid' holding your exchange, market-cap and average-volume settings means the daily routine starts from a clean base rather than from re-entering the same four filters every morning before 09:15 IST.
Stock Screener
- Find world stocks by hundreds of filters — dividends, multipliers, performance, technicals.
- Access: https://www.tradingview.com/screener/
ETF Screener
- Pinpoint exchange-traded funds matching your investment goals by AUM and performance.
- Access: https://www.tradingview.com/etf-screener/
Bond Screener
- Navigate the bond market by yield, maturity, credit rating, and more.
- Access: https://www.tradingview.com/bond-screener/
Crypto Coins Screener
- Analyze crypto coins by market caps, circulating supply, address metrics, and social virality.
- Access: https://www.tradingview.com/crypto-coins-screener/
CEX Screener
- Traverse trading pairs across 40+ centralized exchanges by volume and technicals.
- Access: https://www.tradingview.com/cex-screener/
DEX Screener
- Insights into liquidity pools, token pairs, and transaction activity on decentralized exchanges.
- Access: https://www.tradingview.com/dex-screener/
Pine Screener
- Scan assets using your own Pine Script scripts or community scripts.
- Access: https://www.tradingview.com/pine-screener/
Snapshot & Takeaways
Professional Tip
Keep two presets rather than one: a wide one that returns forty names for weekend study, and a narrow one that returns five or six for the session ahead. A single preset always ends up tuned for one job and used for the other.
5. Heatmaps: Reading the Whole Market in One Frame
A screener returns a list; a heatmap returns a picture. Every stock in a market is drawn as a rectangle, sized by market capitalisation and coloured by performance over the period you select — green for gains, red for losses, with deeper colour meaning a larger move.
The sizing is the part that makes it informative rather than decorative. Because rectangles are scaled by market cap, a small green square in a corner is a small company having a good day, while a large red block in the centre is a heavyweight dragging the index. A simple gainers list treats those two identically; the heatmap does not.
The grouping does the rest of the work. Stocks are clustered by sector and then by industry, so a block of colour is immediately readable as a sector-wide move rather than a stock-specific one. If the IT cluster is uniformly green while banking is uniformly red on the same day, that is a rotation you can see without opening a single chart.
That distinction matters for what you do next. A single green name inside an otherwise red sector is a company-specific story — results, an order win, something in its own filings. A uniformly green sector is a flow story, and the individual chart you were about to study may simply be carrying its sector rather than doing anything of its own.
For Indian markets, filter by country India and then by sector to work through the NSE landscape a segment at a time. Combined with the timeframe toggle — one day, one week, one month, year-to-date and one year — you can see whether today's colour agrees with the last month's or contradicts it.
A useful pre-session habit: look at the one-day and one-month views side by side. Where they agree, the sector has been moving in one direction consistently. Where they disagree, something changed recently, and that is worth understanding before you take a position in a name inside that block.
Snapshot & Takeaways
6. Pine Script Editor: Writing Conditions the Dropdowns Cannot
The Pine Script Editor is TradingView's coding environment for Pine Script v6, a language built specifically for market data. Unlike a general-purpose language, its data types and functions assume you are working with price series, volume and time — a variable in Pine is usually a whole series of values, one per candle, rather than a single number.
That single design decision is why Pine is learnable without a programming background. Writing `close > ta.sma(close, 200)` compares every candle's close against its own 200-period simple moving average across the entire chart at once. There is no loop to write and no array to manage; the series handling is the language's job.
The editor lives in the bottom panel and provides the usual conveniences — syntax highlighting, autocomplete across the built-in namespaces such as `ta.` for technical functions and `strategy.` for order simulation, error diagnostics before compilation, and `log.info()` for printing values while a script runs so you can see what it actually computed.
The most underrated learning route sits on your chart already. Click the `{}` icon next to any built-in indicator's name and its complete Pine source opens in the editor. Reading how the platform's own moving averages, bands and oscillators are constructed teaches more in an hour than most tutorials, because the code is short and the output is on screen beside it.
Four things can be built. An `indicator()` draws on the chart and nothing else. A `strategy()` can simulate orders and therefore activates the Strategy Tester. A library is a set of reusable functions other scripts can import. A Pine Screener script encodes conditions to be run across a watchlist rather than one symbol.
Start by modifying rather than authoring. Open a built-in indicator's source, change a lookback length, add a plot, and watch the chart respond. The gap between reading code and writing it closes fastest when the feedback is immediate and visible, which is exactly what this environment provides.
Editor Features
- Syntax highlighting for Pine keywords and namespaces.
- Autocomplete across `ta.*`, `math.*` and `strategy.*`.
- Error diagnostics before the script compiles.
- Runtime logging with `log.info()` for checking computed values.
What You Can Build
- Indicators: visual overlays only, declared with `indicator()`.
- Strategies: simulated order logic, declared with `strategy()`.
- Libraries: reusable functions other scripts import.
- Screener scripts: conditions run across a whole watchlist.
Snapshot & Takeaways
7. Pine Screener: Scanning a Watchlist With Your Own Rules
Dropdown filters describe states, not sequences. They can tell you that RSI is currently between 50 and 60, but not that a moving-average cross happened and then price held above the faster average for the next five candles. Sequences need code.
The Pine Screener closes that gap. You write an indicator that evaluates your condition to true or false on the latest candle, save it to your favourites, open the Pine Screener, point it at a watchlist, and click Scan. It runs your script against every symbol in that list and returns those where the condition is currently true.
This is where the NSE derivatives-eligible watchlist earns its keep. Build the exchange's list once, then any screening rule you write can be pointed at that universe in a click, without trying to express eligibility as a filter that does not exist.
The constraints are real and worth knowing before you design around them. Lookback is limited, `request.*` functions for pulling other symbols or timeframes are restricted, the script must be saved to favourites before it appears in the menu, and results are produced when you click Scan rather than streaming continuously.
Snapshot & Takeaways
Critical Warning
A screener script returning ten names has told you those ten currently satisfy a condition you defined. It has not told you the condition is worth acting on. That question is answered by studying the charts and, if you code, by the testing discussed in the next section — and even then only partially.
8. Strategy Tester: What the Metrics Actually Mean
Declare a script with `strategy()` instead of `indicator()` and the Strategy Tester tab comes alive. It walks through the chart's historical candles executing your rules as simulated orders, then reports what that rule set would have produced on that specific data.
The report has four sub-tabs: an overview of headline figures, a performance summary splitting long from short, a chronological list of every simulated trade with its timestamps, and an equity curve plotting the simulated account balance through time.
Now the vocabulary, because these terms are used constantly and rarely defined. Profit factor is gross gains divided by gross losses across the simulated trades — at 1.0 the two cancel exactly. Maximum drawdown is the largest peak-to-trough fall in that simulated equity curve, expressed as a percentage of the peak.
Sharpe ratio is a risk-adjusted measure: it divides the simulated return above a risk-free rate by the volatility of those returns. Two rule sets producing the same result, one smoothly and one through violent swings, will differ sharply here — the volatile one scores lower, which is the point of the measure.
Slippage and commission are inputs you must set yourself, and leaving them at zero is the most common way a test flatters a rule. Slippage is the difference between the price a rule assumed and the price the market would actually have given; commission is brokerage and charges. A frequently trading rule can look entirely different once both are entered honestly.
The framing that matters most: these are descriptions of what a rule did on one historical sample, not properties of the rule. Historical results carry no promise about future behaviour, and a report describing past candles is evidence about those candles alone. Read the metrics as diagnostics for improving the logic, never as an expectation of what the rule will produce.
Used that way, the panel is genuinely useful. A rule with a smooth equity curve and a shallow drawdown is behaving consistently across the sample; one with a jagged curve dominated by two large trades is telling you the result came from a handful of candles and would vanish if those candles were removed. That is the kind of question the tester answers well.
Snapshot & Takeaways
Critical Warning
A backtest is a simulation of the past, not a guarantee about the future. Nothing in the Strategy Tester panel is a projection, an expectation or a statement about what a rule will do next. This article is educational — it explains what the metrics measure so you can read them correctly, not so you can act on them.
9. Chart Range & Go to Date
The Chart Range selector along the bottom edge holds zoom presets — 1D, 5D, 1M, 3M, 6M, YTD, 1Y, 5Y and All — that snap the visible window to that period in one click, without dragging the time axis around.
Go to Date, on Alt+G for Windows or Option+G on Mac, opens a calendar and jumps the chart to any date in history. This is how you study a specific session rather than scrolling towards it: type the date of a Union Budget, an RBI policy announcement or a results day and land on that candle directly.
The reason to do this deliberately is that event candles distort structure. A gap created by a results announcement on NSE:INFY is not the same kind of level as a base built over thirty candles of ordinary trade, and knowing which you are looking at changes how much weight the level deserves.
Pairing it with Bar Replay is the strongest study routine available on the platform. Jump to a date, start replay from that candle, and step forward one bar at a time so the outcome is not visible while you form a read — which is the only honest way to practise on data that has already happened.
Snapshot & Takeaways
Professional Tip
Keep a short list of dates you want to study repeatedly on NIFTY 50 and BANKNIFTY. Jumping to the same sessions across different instruments shows you which reactions were market-wide and which were specific to one name.
Unlock TradingView Pro
Gain unrestricted access to multiple charts, custom timeframes, and unlimited technical indicators to perfect your edge.
Frequently Asked Questions
Common questions about this topic
Open the Screener tab in the bottom menu and set Exchange to NSE, which reduces the table to the Indian listed universe. Add a market-capitalisation floor to remove the illiquid tail, then an average-volume filter so the names that survive can absorb an order without excessive slippage. After that, layer whichever fundamental fields you use — P/E, ROE, EV/EBITDA — and technical ones such as price relative to the 200-day moving average. Save the combination as a preset so the routine starts from a base each morning.
Official TradingView Resources
Curated links from TradingView's Help Center & Blog
How do I find a mobile screener?
Unfortunately, mobile screener (on both iOS and Android apps) is not supported at the moment. However, we plan to implement it in the nearest future. ...
Earnings report date
The Report date in the Earnings card on the chart shows the expected or confirmed date when a company will publish its earnings report.Exact vs. appro...
Total Cash Dividends Paid
What are Total Cash Dividends Paid?Total Cash Dividends Paid represent the total dividends paid to common and preferred shareholders of a company for ...
Introduction to Dividend Calendar
The Dividend Calendar is designed for you to compare which stocks were the most profitable the previous quarter in relation to other stocks. If you're...
All the world’s stocks, now in one screener
Read fresh TradingView updates: All the world’s stocks, now in one screener. Discover more in our blog and stay connected with the latest platform news.
CEX Screener by TradingView: the ultimate addition to the collection
Read fresh TradingView updates: CEX Screener by TradingView: the ultimate addition to the collection. Discover more in our blog and stay connected with the latest platform news.
Chart view in Stock, ETF, and Crypto coins screeners
Read fresh TradingView updates: Chart view in Stock, ETF, and Crypto coins screeners. Discover more in our blog and stay connected with the latest platform news.
New filters and columns in the Stock Screener: Recent and Upcoming earnings dates
Read fresh TradingView updates: New filters and columns in the Stock Screener: Recent and Upcoming earnings dates. Discover more in our blog and stay connected with the latest platform news.
Related Articles
Continue your learning journey
Introduction to Pine Script
The basics of TradingView's proprietary programming language for building custom indicators.
ModuleStrategy Tester & Replay Trading
Backtesting strategies, paper trading, and connecting to live brokers.
ModuleIndicators, Metrics & Strategies
Your complete technical analysis toolkit — from moving averages to Pine Script.
ModuleCreating Alerts — Never Miss a Trade
Price alerts, indicator alerts, webhooks, and the complete alert automation system.
Written By
Rohit Singh
Mr. Chartist
With 14+ years of experience in Indian financial markets, Rohit Singh (Mr. Chartist) is a SEBI Registered Research Analyst, Amazon #1 bestselling author, and the founder of Investology — a premium trading ecosystem trusted by a 1.5 Lakh+ strong community across India.
TradingView is a registered trademark of TradingView, Inc. All screenshots, logos, and platform imagery are the property of TradingView, Inc. and are used here for educational purposes only under fair use. This content is not affiliated with, endorsed, or sponsored by TradingView.
(c) 2026 TradingView, Inc. All rights reserved. - www.tradingview.com

