How to find stocks near 52-week highs with Claude or ChatGPT
Reviewed
What counts
A 52-week high is the highest price a stock reached over about a year. Your AI agent can find closes near it on higher volume than usual.
The rule Monk.trade uses: a close at or within 2% of the highest price in 252 sessions, on volume above the prior 20-session average. Keep common stock averaging at least $20M traded a day over those prior 20 sessions.
Ask it
Using Monk.trade, which stocks closed at or within 2% of a 52-week high on above-average volume? Keep common stock averaging at least $20M traded a day.
Opens with the question filled in; nothing is sent until you press send. Not connected? Help
The query, line by line
Your app writes this MonkQL from the prompt. Each line does one thing.
from stocksScan every active US stock.
include type == "common" and sma(close * volume, 20)[1] >= 2e7Keep common stock averaging at least $20M traded a day over the prior 20 sessions.
where close >= 0.98 * highest(high, 252) and volume > sma(volume, 20)[1]Keep closes within 2% of the highest price in 252 sessions, on volume above the prior 20-session average.
show close as close_price, highest(high, 252) as year_high, 100 * (close / highest(high, 252) - 1) as from_high_pct unit percent, volume / sma(volume, 20)[1] as vol_ratioShow the close, yearly high, percentage below it and volume compared with that average.
sort vol_ratio descMost volume compared with usual first.
take 5The five largest.
Variations
New 52-week closing high
“Using Monk.trade, which stocks set a new 52-week closing high on above-average volume? Keep common stock averaging at least $20M traded a day.”
from stocks include type == "common" and sma(close * volume, 20)[1] >= 2e7 where close > highest(close, 252)[1] and volume > sma(volume, 20)[1] show close as close_price, highest(high, 252) as year_high, 100 * (close / highest(high, 252) - 1) as from_high_pct unit percent, volume / sma(volume, 20)[1] as vol_ratio sort vol_ratio desc take 5Twice the usual volume
“Using Monk.trade, which stocks closed within 2% of a 52-week high on at least twice their usual volume? Keep common stock averaging at least $20M traded a day.”
from stocks include type == "common" and sma(close * volume, 20)[1] >= 2e7 where close >= 0.98 * highest(high, 252) and volume >= 2 * sma(volume, 20)[1] show close as close_price, highest(high, 252) as year_high, 100 * (close / highest(high, 252) - 1) as from_high_pct unit percent, volume / sma(volume, 20)[1] as vol_ratio sort vol_ratio desc take 5
Example result
Example · run · data to
| Symbol | Close | 52-week high | From high | Volume |
|---|---|---|---|---|
| RRC | $56.37 | $56.47 | -0.2% | 4.1× |
| KNSA | $89.17 | $90.75 | -1.7% | 3.5× |
| GSAT | $83.87 | $84.85 | -1.2% | 3.4× |
| SGRY | $23.35 | $23.44 | -0.4% | 2.4× |
| CVLT | $172.36 | $175.03 | -1.5% | 1.9× |
30 stocks matched; 103 had too little price history to check. Run 01a17f13-f30e-7720-adff-f0f627f62d7c
Limits
- 252 trading days stand in for 52 weeks; the highest price reached can differ from the highest closing price.
- Prices and volume account for stock splits.
- The scan leaves out thinly traded stocks, and newer listings may lack enough history.
- Heavy volume near a high does not predict the next move.
Research only. Not investment advice. Read the risk notice
Not connected? Help