detect_52w_high_low
Identify stocks breaking 52-week highs or lows on a given trading date. Supports cross-sectional scan or single stock check with cached or on-demand computation.
Instructions
Screen for 52-week rolling high/low breakouts (52週高値/安値 ブレイク). All plans.
Use for 52週高値, 52週安値, 年間高値, 年間安値, 52-week high/low breakout. For multi-date scans use detect_52w_high_low_range (not repeated calls here). For YTD high/low use detect_ytd_high_low instead.
Default params hit the nightly pre-computed cache (sub-second). Custom params or code filter compute on-demand (~10–30s cross-sectional on Cloud Run). date must be within the past 52 weeks. Data available ~17:15 JST on trading days.
[Supported plans] Free / Light / Standard / Premium (cache-only, no API call)
Args: date: Trading date (YYYYMMDD or YYYY-MM-DD). Within past 52 weeks. code: Optional stock code. Omit to scan all codes (cross-sectional). window_sessions: Trailing session window (default 252 = 52 weeks). min_prior_sessions: Drop codes with fewer prior sessions in window (default 60; set 1 to disable). detail: Include full per-stock data array (default False = summary counts only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| code | No | ||
| window_sessions | No | ||
| min_prior_sessions | No | ||
| detail | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||