screen_stocks
Screen stocks using Finviz filter codes to find investment candidates. Returns a filtered list with selected metric columns for valuation, financial, or technical analysis.
Instructions
Screen stocks using Finviz filter codes. Primary tool for finding investment candidates. Uses Finviz current snapshot data (~15-20 min delayed). Returns a filtered list with the metric columns selected by the 'table' parameter. Use list_filter_options to discover all valid filter codes.
Args: filters: Comma-separated Finviz filter codes. VALUE INVESTING EXAMPLES: "cap_largeover,fa_pe_u20,fa_roe_o15" → Large cap, P/E < 20, ROE > 15% "fa_pb_u2,fa_curratio_o1.5,fa_debteq_u0.5" → P/B < 2, current ratio > 1.5, debt/equity < 0.5 "fa_div_o3,fa_payoutratio_u60,fa_roe_o15" → Dividend > 3%, payout < 60%, ROE > 15% "fa_pfcf_u15,fa_opermargin_o15,fa_epsyoy1_o10" → P/FCF < 15, op margin > 15%, EPS growth > 10%
USE TOOL: list_filter_options TO SEE ALL FILTERS
COMMON FILTER PREFIXES:
cap_ : Market cap (nano/micro/small/mid/large/mega)
fa_pe : P/E ratio (u = under, o = over)
fa_fpe : Forward P/E
fa_peg : PEG ratio
fa_ps : Price/Sales
fa_pb : Price/Book
fa_pc : Price/Cash
fa_pfcf : Price/Free Cash Flow
fa_roe : Return on equity
fa_roa : Return on assets
fa_roi : Return on investment
fa_curratio : Current ratio
fa_quickratio: Quick ratio
fa_debteq : Debt/Equity
fa_ltdebteq : Long-term Debt/Equity
fa_grossmargin : Gross margin
fa_opermargin : Operating margin
fa_netmargin : Net profit margin
fa_div : Dividend yield
fa_epsyoy5 : EPS growth past 5 years
fa_salesqoq : Sales growth QoQ
sec_ : Sector (technology, healthcare, etc.)
ind_ : Industry
sh_avgvol: Average volume
ta_sma200: Price vs 200-day SMA
table: Data view that controls which columns are returned.
Each view returns different metrics per stock:
"Overview" — Company, Sector, Industry, Market Cap, P/E,
Price, Change, Volume
"Valuation" — Market Cap, P/E, Fwd P/E, PEG, P/S, P/B,
P/C, P/FCF, EPS This Y, EPS Next Y, EPS Past 5Y,
EPS Next 5Y, Sales Past 5Y, Price, Change, Volume
"Financial" — Market Cap, Dividend, ROA, ROE, ROI,
Curr R (Current Ratio), Quick R, LTDebt/Eq, Debt/Eq,
Gross M, Oper M, Profit M, Earnings, Price, Change, Volume
"Ownership" — Market Cap, Outstanding, Float, Insider Own,
Insider Trans, Inst Own, Inst Trans, Float Short,
Short Ratio, Avg Volume, Price, Change, Volume
"Performance" — Perf Week, Perf Month, Perf Quart,
Perf Half, Perf Year, Perf YTD, Volatility W,
Volatility M, Recom, Avg Volume, Rel Volume,
Price, Change, Volume
"Technical" — Beta, ATR, SMA20, SMA50, SMA200,
52W High, 52W Low, RSI, Price, Change, Volume
Use "Valuation" for value metrics, "Financial" for margins/ROE.
order: Sort column. Prefix with '-' for descending.
e.g. "-marketcap", "pe", "-dividendyield"
signal: Optional Finviz signal preset, e.g. "ta_topgainers".
max_results: Max stocks to return (default 30).Returns: Formatted screening results with key metrics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | -marketcap | |
| table | No | Valuation | |
| signal | No | ||
| filters | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |