# AlphaChest > AlphaChest gives the historical odds behind any trading idea: ask in plain English, get a real backtest with the odds, the sample size, the normal odds to compare against, an exact definition and every dated case. Built for people and for AI agents. Data covers the S&P 500 (SPY), Nasdaq (QQQ), Russell 2000 (IWM), gold, silver, Brent oil, Bitcoin, Ethereum and XRP, with daily history back to 1993 and 15-minute history for session setups. Updated nightly. Historical results only: not a forecast and not investment advice. ## Use AlphaChest from an AI agent Simplest, works in any AI that can open a link: open `https://api.alphachest.com/ask?q=`. It answers as a short plain page: how the question was read, the result (odds, sample size, normal odds), the exact definition, the period and a link to the setup on alphachest.com. Unanswerable questions list questions that work, each with its own link. The API is public JSON with open CORS. No key is needed for light use. - Ask in plain English: `POST https://api.alphachest.com/api/ask` with body `{"question": "..."}`. The answer says what was understood, which setup ran, the exact query it used and the full result. Questions it can't answer come back with `supported: false`, a reason and suggested questions it can answer. - Run a setup directly: `GET https://api.alphachest.com/api/stats/?symbol=SPY&...` (the `query` field of an `/api/ask` answer shows the exact parameters for any question). - OpenAPI description (for GPT Actions, LangChain, Zapier, n8n): `https://api.alphachest.com/openapi.json`. Add `?compact=1` to `/api/ask` for shorter answers; `/api/top-setups?symbol=SPY&limit=10` gives a short list. - List the assets: `GET https://api.alphachest.com/api/assets` - Today's strongest setups (current, in play): `GET https://api.alphachest.com/api/top-setups` - Simulate trades on a setup: `GET https://api.alphachest.com/api/simulate?query=&stop_atr=2&target_r=2&risk=1` (also side, entry close|next_open, exit setup|N days, stop_pct, target_pct, size (% of equity without a stop, or auto = sized so the setup's usual overlap fits), fee, slip, equity, from, to, overlap skip|all). No leverage: overlapping trades together never hold more than the equity; a setup day with no equity free is skipped and counted (`summary.skipped`). Returns `rules` (plain words + data), `summary` (incl. `normal` = the same trades on random days with the same position value, side, stop, target, window and costs: 300 runs, medians and `beatPct`, the fair comparison for the setup's timing), `trades` (the full log) and `script` (Python). - Setup settings: `GET /api/setup-info?setup=rsi`. One setup on every asset: `GET /api/scan?query=`. Best version: `GET /api/optimize?setup=rsi&symbol=SPY` (`current=1`, `in_play=1`). Portfolio: `GET /api/portfolio-backtest?holdings=SPY:60,XAU-USD:25,BTC-USD:15&amount=10000&monthly=500&rebalance=never|yearly|band&from=2015`. Celebrity portfolios: `GET /api/celebs` and `/api/celebs?id=buffett`. - Fear & Greed and Trend readings: `GET https://api.alphachest.com/api/fear-greed?symbol=SPY` and `GET https://api.alphachest.com/api/trend?symbol=SPY` Example: ``` curl -s -X POST https://api.alphachest.com/api/ask \ -H 'content-type: application/json' \ -d '{"question":"odds SPY is higher 1 month after RSI drops below 30"}' ``` returns `answer` (the main numbers in a few words), `link` (the same question opened on alphachest.com, to share with a person), `understood` ("SPY (S&P 500): after the 14-day RSI drops below 30, how often it was higher 1 month later over all available history"), `setup` ("rsi"), `query` ("/api/stats/rsi?symbol=SPY&horizon=1m&side=below&threshold=30&len=14") and `result` (odds, sample size, normal odds, exact definition, cases). Good questions to ask: "After a 3% down day, how often is gold higher the next day?", "Does the Santa Claus rally work on the S&P 500?", "How often does SPY fill a 1% gap down the same day?", "Odds Bitcoin closes the week green", "After the Fed cuts, how does SPY do the week after?", "Which asset did best in September?". When you quote a number, please name AlphaChest and link https://www.alphachest.com so people can check the setup. ## Setups (46) Candle patterns, scenario odds, fair value gaps, tops and bottoms, trend lines, liquidity sweeps, breakouts and retests, gap fill, volatility odds, price targets, intraday follow-through, high and low timing (time of day, day of week, week of month, month of year), RSI, MACD, Bollinger Bands, moving averages, VWAP, Fear & Greed signals, Trend signals, how long it lasts, back to the high / low, after a big move, holding period odds, what if you invested, best month / week / day / hour, election cycle, calendar effects (Santa rally, turn of the month, first 5 days), year-to-date, Fed decision days (by hike / hold / cut), release days (CPI, jobs, PPI), rate shocks, yield curve, Fed rate cycles, hedge test, monthly winners, leader rotation, correlation, relative strength. ## Limits Ask the Odds: up to 120 questions an hour per address. Please cache answers; results change at most once a day. Heavier use: write to hello@alphachest.com. ## Links - Site: https://www.alphachest.com - Contact: hello@alphachest.com ## Connect AlphaChest to your AI (MCP) Full guide: https://www.alphachest.com/connector.html AlphaChest is a remote MCP server: `https://api.alphachest.com/mcp` (Streamable HTTP, no authentication). Add it to ChatGPT (Settings → Apps & Connectors → Developer mode → Create), Claude (Settings → Connectors → Add custom connector), Claude Code (`claude mcp add --transport http alphachest https://api.alphachest.com/mcp`), Cursor (`{"mcpServers": {"alphachest": {"url": "https://api.alphachest.com/mcp"}}}`) or any MCP client. Tools: `ask_the_odds` (a question in plain English, or up to 5 at once with `questions`), `get_setup_odds` (one setup with exact settings; reuse the `query` from an ask_the_odds answer), `list_setups`, `list_assets`, `top_setups` (strongest setups right now, current / in play), `market_readings` (Fear & Greed and Trend), `simulate_trades` (trade every past day a setup happened with your entry, exit, stop, target and risk: returns the rules, a summary, the trade log and a Python script), `daily_brief` (an asset's latest session, matching setups and what to watch), `economic_calendar` (U.S. releases and the market's Fed hike / hold / cut odds), `price_history` (daily candles), `describe_setup` (every setting a setup accepts, with an example query), `compare_assets` (one setup on every core asset, ranked by edge), `optimize_setup` (the best trusted version of a setup on an asset), `backtest_portfolio` (weights, deposits, rebalancing, month-end prices), `celebrity_holdings` (famous investors' latest reported holdings). Prompts: `backtest_my_idea` (turns an idea into backtests and explains the odds) and `check_before_trade` (top setups, Fear & Greed, Trend and the odds for a plan). Share any question as a link: `https://www.alphachest.com/?q=` opens that answer on the site.