Examples / Research
Oversold in an uptrend: the index ETFs
Level 3 · ResearchPOST/v1/event-study
What it answers
Pools SPY, QQQ and IWM and asks: when RSI dipped below 30 while price held above the 200-day average, what happened over the next 5, 20 and 60 days?
Request
Input
POST /v1/event-study{ "symbols": [ "SPY", "QQQ", "IWM" ], "condition": "rsi(14) < 30 and close > sma(200)", "horizons": [ 5, 20, 60 ], "cooldown_bars": 10 }
Live output billed to your account
Response
Output 200 OK
{ "ok": true, "data": { "condition": "rsi(14) < 30 and close > sma(200)", "cooldown_bars": 10, "symbols": 3, "occurrences": 36, "horizon_unit": "trading days", "results": [ { "count": 36, "mean": 0.018255, "median": 0.017747, "win_rate": 0.805556, "stdev": 0.028613, "t_stat": 3.828117, "p25": 0.004427, "p75": 0.038621, "best": 0.078125, "worst": -0.053489, "horizon": 5, "baseline_mean": 0.002325, "baseline_win_rate": 0.571345, "edge": 0.01593, "edge_t_stat": 3.337698 }, { "count": 36, "mean": 0.013817, "median": 0.02531, "win_rate": 0.722222, "stdev": 0.082945, "t_stat": 0.999466, "p25": -0.00796, "p75": 0.052539, "best": 0.133314, "worst": -0.302432, "horizon": 20, "baseline_mean": 0.009156, "baseline_win_rate": 0.627889, "edge": 0.004661, "edge_t_stat": 0.337017 }, { "count": 35, "mean": 0.052644, "median": 0.073201, "win_rate": 0.8, "stdev": 0.087593, "t_stat": 3.555627, "p25": 0.00664, "p75": 0.108036, "best": 0.216015, "worst": -0.181732, "horizon": 60, "baseline_mean": 0.02763, "baseline_win_rate": 0.68345, "edge": 0.025014, "edge_t_stat": 1.687834 } ], "per_symbol": [ { "symbol": "SPY", "occurrences": 16, "5d": { "mean": 0.01614, "win_rate": 0.75, "count": 16 }, "20d": { "mean": 0.008581, "win_rate": 0.6875, "count": 16 }, "60d": { "mean": 0.051432, "win_rate": 0.875, "count": 16 } }, { "symbol": "QQQ", "occurrences": 11, "5d": { "mean": 0.030117, "win_rate": 1.0, "count": 11 }, "20d": { "mean": 0.039014, "win_rate": 0.818182, "count": 11 }, "60d": { "mean": 0.084777, "win_rate": 0.818182, "count": 11 } }, { "symbol": "IWM", "occurrences": 9, "5d": { "mean": 0.007519, "win_rate": 0.666667, "count": 9 }, "20d": { "mean": -0.007671, "win_rate": 0.666667, "count": 9 }, "60d": { "mean": 0.010888, "win_rate": 0.625, "count": 8 } } ], "recent": [ { "symbol": "IWM", "date": "2026-09-30", "close": 277.89, "ret_5d": -0.000684, "ret_20d": 0.012235, "ret_60d": null }, { "symbol": "QQQ", "date": "2024-04-19", "close": 409.7, "ret_5d": 0.039443, "ret_20d": 0.089505, "ret_60d": 0.16373 }, { "symbol": "SPY", "date": "2023-10-03", "close": 407.6, "ret_5d": 0.030716, "ret_20d": -0.008047, "ret_60d": 0.13528 }, { "symbol": "SPY", "date": "2022-01-24", "close": 413.86, "ret_5d": 0.022906, "ret_20d": -0.023341, "ret_60d": 0.014232 }, { "symbol": "QQQ", "date": "2021-10-04", "close": 342.59, "ret_5d": 0.016346, "ret_20d": 0.098719, "ret_60d": 0.140226 }, "… 12 more items …", { "symbol": "SPY", "date": "2016-11-03", "close": 178.74, "ret_5d": 0.038995, "ret_20d": 0.052255, "ret_60d": 0.096677 }, { "symbol": "IWM", "date": "2016-11-02", "close": 102.24, "ret_5d": 0.060348, "ret_20d": 0.133314, "ret_60d": 0.17498 }, { "symbol": "QQQ", "date": "2014-10-15", "close": 84.41, "ret_5d": 0.04336, "ret_20d": 0.109229, "ret_60d": 0.103542 } ], "notes": [ "Forward returns are close-to-close from the signal bar and overlap when occurrences are closer together than the horizon; t-stats are therefore optimistic." ], "interval": "1day" }, "meta": { "op": "event-study", "units": 9, "cost_usd": 0.0, "billing": "internal", "free_call": false, "free_calls_left": 0, "balance_usd": 5.0, "ms": 87, "interval": "1day", "data_as_of": "2026-11-12", "partial_last_bar": false } }
How to read it
cooldown_bars stops one dip from being counted ten times. per_symbol shows whether the result holds for each ETF or is driven by one. Forward returns overlap when events are close together, so read the t-stats as optimistic.
Parameters and limits: Event study reference. Analytics, not advice.