{"slug":"most-active-stocks-after-hours","qid":"ah_extreme_survival","label":"ah_extreme_survival","post_title":"most-active-stocks-after-hours","post_url":"/blog/most-active-stocks-after-hours#q-ah_extreme_survival","columns":["ticker","evenings","pct_high_above_next_session","pct_low_below_next_session"],"rows":[{"ticker":"GOOGL","evenings":138,"pct_high_above_next_session":31.9,"pct_low_below_next_session":25.4},{"ticker":"MSFT","evenings":138,"pct_high_above_next_session":30.4,"pct_low_below_next_session":31.2},{"ticker":"INTC","evenings":138,"pct_high_above_next_session":27.5,"pct_low_below_next_session":31.2},{"ticker":"AMZN","evenings":138,"pct_high_above_next_session":26.8,"pct_low_below_next_session":31.2},{"ticker":"SPY","evenings":138,"pct_high_above_next_session":26.1,"pct_low_below_next_session":36.2},{"ticker":"QQQ","evenings":138,"pct_high_above_next_session":26.1,"pct_low_below_next_session":38.4},{"ticker":"F","evenings":138,"pct_high_above_next_session":25.4,"pct_low_below_next_session":21.7},{"ticker":"META","evenings":138,"pct_high_above_next_session":22.5,"pct_low_below_next_session":29.7},{"ticker":"KO","evenings":138,"pct_high_above_next_session":22.5,"pct_low_below_next_session":26.1},{"ticker":"AMD","evenings":138,"pct_high_above_next_session":21.7,"pct_low_below_next_session":36.2},{"ticker":"TSLA","evenings":138,"pct_high_above_next_session":21,"pct_low_below_next_session":26.8},{"ticker":"NVDA","evenings":138,"pct_high_above_next_session":20.3,"pct_low_below_next_session":35.5},{"ticker":"AAPL","evenings":138,"pct_high_above_next_session":16.7,"pct_low_below_next_session":30.4}],"shape":"series","sql":"SELECT\n    ticker,\n    count()                                                AS evenings,\n    round(100 * countIf(ah_high > next_high) / count(), 1) AS pct_high_above_next_session,\n    round(100 * countIf(ah_low  < next_low)  / count(), 1) AS pct_low_below_next_session\nFROM\n(\n    SELECT\n        e.ticker                      AS ticker,\n        e.session                     AS session,\n        e.ah_high                     AS ah_high,\n        e.ah_low                      AS ah_low,\n        argMin(n.reg_high, n.session) AS next_high,\n        argMin(n.reg_low, n.session)  AS next_low\n    FROM\n    (\n        SELECT\n            ticker,\n            toDate(toTimeZone(window_start, 'America/New_York')) AS session,\n            max(high) AS ah_high,\n            min(low)  AS ah_low\n        FROM global_markets.delayed_stocks_minute_aggs\n        WHERE ticker IN ('AAPL','MSFT','NVDA','AMZN','TSLA','META','GOOGL','AMD','INTC','F','KO','SPY','QQQ')\n          AND window_start >= today() - 200\n          AND window_start <  today() - 1\n          AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60\n               + toMinute(toTimeZone(window_start, 'America/New_York'))) >= 960\n          AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60\n               + toMinute(toTimeZone(window_start, 'America/New_York'))) <  1200\n        GROUP BY ticker, session\n        HAVING sum(volume) >= 10000\n    ) AS e\n    INNER JOIN\n    (\n        SELECT\n            ticker,\n            toDate(toTimeZone(window_start, 'America/New_York')) AS session,\n            max(high) AS reg_high,\n            min(low)  AS reg_low\n        FROM global_markets.delayed_stocks_minute_aggs\n        WHERE ticker IN ('AAPL','MSFT','NVDA','AMZN','TSLA','META','GOOGL','AMD','INTC','F','KO','SPY','QQQ')\n          AND window_start >= today() - 200\n          AND window_start <  today()\n          AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60\n               + toMinute(toTimeZone(window_start, 'America/New_York'))) >= 570\n          AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60\n               + toMinute(toTimeZone(window_start, 'America/New_York'))) <  960\n        GROUP BY ticker, session\n    ) AS n ON n.ticker = e.ticker\n    WHERE n.session >  e.session\n      AND n.session <= e.session + 5\n    GROUP BY e.ticker, e.session, e.ah_high, e.ah_low\n)\nGROUP BY ticker\nORDER BY pct_high_above_next_session DESC","computed_at":"2026-10-03T15:14:27.094880+00:00","elapsed":8.282155259}