ClickAPIs
Examples · Near 52-week highs with volatility compressed

Examples / Research

Near 52-week highs with volatility compressed

Level 3 · ResearchPOST/v1/screen

What it answers

Stocks within 3% of their 52-week high whose Bollinger bands are close to the tightest in six months: a classic setup before a breakout.

Request

Input POST /v1/screen
{
  "universe": "us.top1000",
  "where": "dist_high(252) > -0.03 and bb_width(20) < lowest(bb_width(20), 120) * 1.1",
  "select": [
    "dist_high(252) as off_high",
    "bb_width(20) as bb_width",
    "vol(20) as vol_20d",
    "rvol(20) as rel_volume"
  ],
  "sort": "bb_width(20)",
  "order": "asc",
  "limit": 20
}
Open in playground

Response

Output 200 OK
{
  "ok": true,
  "data": {
    "rows": [
      {
        "date": "2026-11-12",
        "close": 49.085,
        "symbol": "VRNS",
        "vol_20d": 0.108614,
        "bb_width": 0.012177,
        "off_high": -0.029749,
        "rel_volume": 0.153403,
        "sort_value": 0.012177
      },
      {
        "date": "2026-11-12",
        "close": 294.63,
        "symbol": "ABBV",
        "vol_20d": 0.212811,
        "bb_width": 0.054928,
        "off_high": -0.027399,
        "rel_volume": 0.433953,
        "sort_value": 0.054928
      }
    ],
    "sort": "bb_width(20)",
    "order": "asc",
    "where": "dist_high(252) > -0.03 and bb_width(20) < lowest(bb_width(20), 120) * 1.1",
    "matched": 2,
    "scanned": 1000,
    "universe": "us.top1000",
    "not_found": 0
  },
  "meta": {
    "op": "screen",
    "units": 100,
    "cost_usd": 0.0,
    "job_id": "275aff7b-d512-46a2-97af-98fa56595bdd",
    "via": "job (POST returned 202, result fetched from GET /v1/jobs/{id})"
  }
}

How to read it

Sorted by band width, tightest first. off_high near 0 means the stock is pressing against its high. Pair it with an event-study on the same condition to see how such setups resolved historically.

Parameters and limits: Screen reference. Analytics, not advice.