Skip to content
The query reference

CleverScan syntax

Your idea, written clearly. Combine price, volume, metadata, and technical conditions with AND, OR, and NOT. Parentheses group expressions. StockCharts bracket clauses also work.

Start with AI

Open CleverScan in the scanner’s left panel. Expand Describe your scan, enter a plain-English idea, and select Generate. AI turns your words into editable rules. Select the query preview to open the large editor, review the conditions, then select Run Scan. You can also write your own rules using the reference below.

New to custom scans? Start with the guide
[close > SMA(50,close)]
and [RSI(14) < 45]
and [[exchange is NYSE] or [exchange is NASDAQ]]

Example conditions illustrate the syntax. Choose rules that fit your own research question.

Price and volume

Use open, high, low, close, volume, change, and changePercent. Compare with =, !=, >, >=, <, and <=. Arithmetic supports +, -, *, and /.

symbol IN ["AAPL", "MSFT"] AND close > 100

Indicators

History-backed functions include SMA, EMA, WMA, RSI, ATR, PctChange, PPOLine, and rolling min/max. Moving averages accept both SMA(close, 50) and SMA(50, close). Missing required history cannot produce a match.

Historical scans

Choose Scan as of before running. The result shows the actual stored trading date used; weekends and holidays use the preceding available session. Leave the date blank to use the latest available data. Share links preserve a selected date.

Prices and indicators use history through that session. Metadata without available history uses current values and is identified in the result. SCTR uses sourced StockCharts values for the exact scan date when available. Missing observations stay unavailable. TCTR (rsRank) is TradeClever’s separate relative-strength rank. All Time High uses available history, which may not cover the security’s lifetime.

Read Data & methodology for coverage, current metadata, and calculation limitations.

Save and share

Save Expression stores a named query in your account. Presets & Saved Scans restores it. Share creates a public link containing the query and selected date. Backtest evaluates historical membership and reports forward returns when later bars exist.

Understand historical scan results
Make room for better research

Your idea. Your rules.

Build a scan with AI. Explore the results. Find your next idea.

Log in to explore