deviation_ranking
Rank stocks by percentage distance from their 200-day moving average. Use direction 'under' to list depressed symbols or 'over' for extended ones, revealing mean-reversion candidates.
Instructions
Symbols furthest from their own 200-day moving average, ranked.
direction="under" lists the most depressed names (price far below its long-term average — the mean-reversion long candidates); direction="over" lists the most extended ones. Deviation is (close - MA200) / MA200, so -0.30 means the price is 30% below its own 200-day average.
Symbols whose 200-day window contains a single-day move above 25% are excluded: in practice that is an unadjusted stock split rather than a real move, and it would otherwise dominate the ranking.
Args: direction: "under" or "over". limit: Max rows, up to 100. Free accounts always receive 2 regardless — check is_billed in the response before reporting the list as complete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| direction | No | under |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |