NL/Screen snapshot · October 29, 2026 close · 100 large US stocks Code on GitHub
Static demo Output of the Rails app for five example screens, on real daily prices (Yahoo chart API). The live app streams results as they're found; run it with bin/dev.

Here's what I understood

within 5% of the 52-week high, price above the 50-day average, volume above its 20-day average
Show spec (the contract shared with EquityScout)
{
  "version": 1,
  "observation": "within 5% of the 52-week high, price above the 50-day average, volume above its 20-day average",
  "universe": {},
  "conditions": [
    {
      "field": "drawdown_52w",
      "op": ">=",
      "value": -0.05
    },
    {
      "field": "close",
      "op": ">",
      "ref": "sma50"
    },
    {
      "field": "volume_ratio_20d",
      "op": ">",
      "value": 1
    }
  ],
  "rank": [
    {
      "field": "drawdown_52w",
      "direction": "desc",
      "weight": 1
    },
    {
      "field": "pct_vs_sma50",
      "direction": "desc",
      "weight": 1
    },
    {
      "field": "volume_ratio_20d",
      "direction": "desc",
      "weight": 1
    }
  ],
  "top_n": 5,
  "unmapped": [],
  "notes": ""
}
Parsed by rules v2; raw proposal before validation
{
  "conditions": [
    {
      "field": "drawdown_52w",
      "op": ">=",
      "value": -0.05
    },
    {
      "field": "close",
      "op": ">",
      "ref": "sma50"
    },
    {
      "field": "volume_ratio_20d",
      "op": ">",
      "value": 1
    }
  ],
  "unmapped": [],
  "rank": [],
  "universe": {},
  "top_n": null
}
Matches 14
Scanned 100 / 100
Status Done

Funnel

Step In Passed Failed No data
100 stocks with prices 100 100 0 0
Within 5% of 52-week high 100 32 68 0
Price above its 50-day average 32 32 0 0
Volume above its 20-day average 32 14 18 0

Ranked results

Ranked by From 52-week high (highest first), Price vs 50-day average (highest first), and Volume vs 20-day average (highest first). Score = weighted mean of percentile ranks among the matches (0 to 1); ties go to the more liquid name. Top 5 highlighted.

# Ticker Score From 52-week high Price 50-day average Volume vs 20-day average Price vs 50-day average Why it matched
1 LLY 0.89 0% $1373.7 $1193.68 1.92 15.08% Within 5% of 52-week high: 0% · Price above its 50-day average: $1373.7 vs $1193.68 · Volume above its 20-day average: 1.92
2 GILD 0.80 0% $165.61 $150.33 1.45 10.17% Within 5% of 52-week high: 0% · Price above its 50-day average: $165.61 vs $150.33 · Volume above its 20-day average: 1.45
3 MO 0.80 0% $76.75 $70.24 1.67 9.27% Within 5% of 52-week high: 0% · Price above its 50-day average: $76.75 vs $70.24 · Volume above its 20-day average: 1.67
4 MA 0.75 0% $635.7 $585.45 1.47 8.58% Within 5% of 52-week high: 0% · Price above its 50-day average: $635.7 vs $585.45 · Volume above its 20-day average: 1.47
5 AMGN 0.61 0% $460.73 $419.32 1.14 9.88% Within 5% of 52-week high: 0% · Price above its 50-day average: $460.73 vs $419.32 · Volume above its 20-day average: 1.14
6 LMT 0.57 -4.89% $643.59 $542.79 1.37 18.57% Within 5% of 52-week high: -4.89% · Price above its 50-day average: $643.59 vs $542.79 · Volume above its 20-day average: 1.37
7 MSFT 0.57 -2.45% $530.14 $512.1 1.94 3.52% Within 5% of 52-week high: -2.45% · Price above its 50-day average: $530.14 vs $512.1 · Volume above its 20-day average: 1.94
8 V 0.55 -0.92% $410.54 $380.35 1.28 7.94% Within 5% of 52-week high: -0.92% · Price above its 50-day average: $410.54 vs $380.35 · Volume above its 20-day average: 1.28
9 AAPL 0.44 0% $348.91 $332.37 1.08 4.98% Within 5% of 52-week high: 0% · Price above its 50-day average: $348.91 vs $332.37 · Volume above its 20-day average: 1.08
10 CB 0.43 -0.46% $362.28 $342.9 1.15 5.65% Within 5% of 52-week high: -0.46% · Price above its 50-day average: $362.28 vs $342.9 · Volume above its 20-day average: 1.15
11 SBUX 0.40 -2.8% $105.51 $99.26 1.17 6.29% Within 5% of 52-week high: -2.8% · Price above its 50-day average: $105.51 vs $99.26 · Volume above its 20-day average: 1.17
12 REGN 0.31 -3.9% $818.77 $791.28 1.21 3.47% Within 5% of 52-week high: -3.9% · Price above its 50-day average: $818.77 vs $791.28 · Volume above its 20-day average: 1.21
13 VRTX 0.29 -3.22% $540 $522.84 1.21 3.28% Within 5% of 52-week high: -3.22% · Price above its 50-day average: $540 vs $522.84 · Volume above its 20-day average: 1.21
14 MDLZ 0.10 -4.08% $62.53 $61.78 1.05 1.22% Within 5% of 52-week high: -4.08% · Price above its 50-day average: $62.53 vs $61.78 · Volume above its 20-day average: 1.05

← All example screens