Examples / Advanced
Does 'oversold in an uptrend' work across 100 stocks?
Level 4 · AdvancedPOST/v1/event-study
What it answers
The same oversold-in-an-uptrend idea, tightened with a volume filter and pooled across ten large caps, submitted as an asynchronous job. Extend symbols up to 100 for a broader test.
Request
Input
POST /v1/event-study{ "symbols": [ "AAPL", "MSFT", "NVDA", "AMZN", "GOOGL", "META", "BRK-B", "LLY", "AVGO", "JPM" ], "condition": "rsi(14) < 30 and close > sma(200) and rvol(20) > 1.5", "horizons": [ 5, 10, 20 ], "cooldown_bars": 10, "start_date": "2010-01-01", "async": true }
Live output billed to your account
Response
Output 200 OK
{ "ok": true, "data": { "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." ], "recent": [ { "date": "2026-01-16", "close": 254.84, "ret_5d": -0.000471, "symbol": "AAPL", "ret_10d": 0.056663, "ret_20d": 0.033629 }, { "date": "2025-03-10", "close": 224.26, "ret_5d": 0.007358, "symbol": "JPM", "ret_10d": 0.068224, "ret_20d": -0.070855 }, { "date": "2025-01-21", "close": 221.04, "ret_5d": 0.070123, "symbol": "AAPL", "ret_10d": 0.045603, "ret_20d": 0.101022 }, { "date": "2024-10-31", "close": 818.26, "ret_5d": -0.038912, "symbol": "LLY", "ret_10d": -0.052428, "ret_20d": -0.039853 }, { "date": "2024-08-05", "close": 157.93, "ret_5d": 0.019122, "symbol": "GOOGL", "ret_10d": 0.046603, "ret_20d": -0.011841 }, "… 12 more items …", { "date": "2019-08-05", "close": 88.26, "ret_5d": 0.011217, "symbol": "AMZN", "ret_10d": 0.028892, "ret_20d": 0.013936 }, { "date": "2019-06-03", "close": 162.72, "ret_5d": 0.06502, "symbol": "META", "ret_10d": 0.151487, "ret_20d": 0.175762 }, { "date": "2019-05-20", "close": 22.66, "ret_5d": -0.066196, "symbol": "AVGO", "ret_10d": -0.025154, "ret_20d": 0.0203 } ], "results": [ { "p25": -0.010493, "p75": 0.050489, "best": 0.121496, "edge": 0.014374, "mean": 0.019747, "count": 41, "stdev": 0.048946, "worst": -0.093949, "median": 0.011217, "t_stat": 2.583356, "horizon": 5, "win_rate": 0.658537, "edge_t_stat": 1.879676, "baseline_mean": 0.005373, "baseline_win_rate": 0.563094 }, { "p25": -0.027971, "p75": 0.068224, "best": 0.151487, "edge": 0.004174, "mean": 0.0149, "count": 41, "stdev": 0.075818, "worst": -0.202442, "median": 0.016882, "t_stat": 1.258385, "horizon": 10, "win_rate": 0.560976, "edge_t_stat": 0.352441, "baseline_mean": 0.010726, "baseline_win_rate": 0.58431 }, { "p25": -0.036622, "p75": 0.063219, "best": 0.190037, "edge": -0.013261, "mean": 0.008372, "count": 41, "stdev": 0.091525, "worst": -0.29964, "median": 0.000114, "t_stat": 0.585718, "horizon": 20, "win_rate": 0.512195, "edge_t_stat": -0.927369, "baseline_mean": 0.021633, "baseline_win_rate": 0.615435 } ], "symbols": 10, "interval": "1day", "condition": "rsi(14) < 30 and close > sma(200) and rvol(20) > 1.5", "per_symbol": [ { "5d": { "mean": 0.027897, "count": 7, "win_rate": 0.714286 }, "10d": { "mean": 0.016227, "count": 7, "win_rate": 0.571429 }, "20d": { "mean": 0.030095, "count": 7, "win_rate": 0.571429 }, "symbol": "AAPL", "occurrences": 7 }, { "5d": { "mean": 0.015921, "count": 2, "win_rate": 1.0 }, "10d": { "mean": -0.014684, "count": 2, "win_rate": 0.5 }, "20d": { "mean": -0.040081, "count": 2, "win_rate": 0.5 }, "symbol": "MSFT", "occurrences": 2 }, { "5d": { "mean": 0.046886, "count": 3, "win_rate": 0.666667 }, "10d": { "mean": 0.060431, "count": 3, "win_rate": 1.0 }, "20d": { "mean": 0.025504, "count": 3, "win_rate": 0.666667 }, "symbol": "NVDA", "occurrences": 3 }, { "5d": { "mean": 0.040179, "count": 5, "win_rate": 0.8 }, "10d": { "mean": 0.040276, "count": 5, "win_rate": 0.8 }, "20d": { "mean": 0.026662, "count": 5, "win_rate": 0.8 }, "symbol": "AMZN", "occurrences": 5 }, { "5d": { "mean": 0.004291, "count": 5, "win_rate": 0.6 }, "10d": { "mean": -0.028085, "count": 5, "win_rate": 0.4 }, "20d": { "mean": -0.04009, "count": 5, "win_rate": 0.2 }, "symbol": "GOOGL", "occurrences": 5 }, { "5d": { "mean": 0.039339, "count": 5, "win_rate": 0.8 }, "10d": { "mean": 0.055609, "count": 5, "win_rate": 0.6 }, "20d": { "mean": 0.075034, "count": 5, "win_rate": 0.6 }, "symbol": "META", "occurrences": 5 }, { "5d": { "mean": -0.016437, "count": 1, "win_rate": 0.0 }, "10d": { "mean": -0.027971, "count": 1, "win_rate": 0.0 }, "20d": { "mean": -0.006946, "count": 1, "win_rate": 0.0 }, "symbol": "BRK-B", "occurrences": 1 }, { "5d": { "mean": 0.02124, "count": 4, "win_rate": 0.5 }, "10d": { "mean": 0.005031, "count": 4, "win_rate": 0.5 }, "20d": { "mean": 0.007402, "count": 4, "win_rate": 0.5 }, "symbol": "LLY", "occurrences": 4 }, { "5d": { "mean": 0.021824, "count": 3, "win_rate": 0.666667 }, "10d": { "mean": 0.075828, "count": 3, "win_rate": 0.666667 }, "20d": { "mean": 0.09936, "count": 3, "win_rate": 1.0 }, "symbol": "AVGO", "occurrences": 3 }, { "5d": { "mean": -0.018531, "count": 6, "win_rate": 0.5 }, "10d": { "mean": -0.03554, "count": 6, "win_rate": 0.333333 }, "20d": { "mean": -0.082089, "count": 6, "win_rate": 0.166667 }, "symbol": "JPM", "occurrences": 6 } ], "occurrences": 41, "horizon_unit": "trading days", "cooldown_bars": 10 }, "meta": { "op": "event-study", "units": 30, "cost_usd": 0.0, "job_id": "d92d61e6-d682-481f-9614-faeff82fea1c", "via": "job (POST returned 202, result fetched from GET /v1/jobs/{id})" } }
How to read it
With async: true the call returns a job id at once; poll GET /v1/jobs/{id} or pass a webhook_url. The finished job's result has the same shape as a synchronous event-study.
Parameters and limits: Event study reference. Analytics, not advice.