About Edge Stats
Edge Stats is an MCP server published by LuxAlgo in the RAG category: the open source trading statistics engine. Ask P(outcome | conditions) over your own bars: gap fills, ORB, initial balance, prior levels, seasonality, and anything you can compose. Sample sizes and 95% confidence intervals on every number. Local dashboard, CLI, and MCP server. MIT, no telemetry. By LuxAlgo. Conduid read 10 tools from its source: edge_export, edge_fields, edge_freshness, edge_live, edge_query, edge_report and 4 more. No package is published for it, so it installs from a source checkout.
The repository has 160 stars and 48 forks, is licensed MIT, and its last commit was on 24 Sep 2026. The latest release is hosted-store (3 Sep 2026): Rolling nightly artifact: derived session statistics for the hosted symbol list, rebuilt and replaced every night. It is the only release Conduid has on record for this repository. It passes all 5 static checks Conduid ran on the repository. Its topics include daytrade, statistics, trading-strategies and trading-strategy-simulation.
Install
git clone https://github.com/LuxAlgo/edge-statsTools (10)
edge_exportCSV or parquet written locally, path returned| Parameter | Type | Description |
|---|---|---|
| filename | string | Plain filename, no directories — sanitized to [a-z0-9-_.] and always written inside <dataDir>/exports/; the extension is forced to match `format`. Omit for a generated name |
| format | string | Output format (default csv) |
| query | string | Query DSL (same language as edge_query): export the feature rows behind it, with outcome_success/outcome_value appended. Requires `symbol`. Example: "orbBreak(15m, up) WHERE gapUp" |
| sessionKey | string | Query exports only: session window — default is the symbol's default |
| since | string | Query exports only: ISO date lower bound |
| symbol | string | Required with `query`; optional filter for 'bars'/'sessions' table exports ('events' is symbol-free) |
| table | string | Export a whole table instead: raw bars, derived session features, or the macro-event calendar. Mutually exclusive with `query` |
| until | string | Query exports only: ISO date upper bound |
edge_fieldsThe registry: every outcome, predicate, and field, with definitions| Parameter | Type | Description |
|---|---|---|
| kind | string | Limit to one kind; default all |
edge_freshnessConfigured symbols, last bar per symbol, calendar versionsedge_liveLive Board state: forming, active, and resolved setupsedge_queryAny composed P(outcome given conditions), in the full envelope| Parameter | Type | Description |
|---|---|---|
| ast | any | The JSON AST form (see edge_fields for names; the envelope echoes the AST it ran) |
| dsl | string | Query DSL: '<outcome> [WHERE <conditions>]'. Conditions compose with AND/OR/NOT, comparisons (=, !=, >, >=, <, <=), BETWEEN, IN. Units: 0.5% (percent), 15m/1h (duration). Example: "orbBreak(15m, up) WHERE gapUp AND NOT eventDay('CPI')" |
| force | boolean | Return the estimate even below the refuse floor (guards still flag it) |
| groupBy | string | Group by a groupable field ('dayOfWeek', 'gapBucket', 'month', …) — one envelope per group |
| sessionKey | string | Session window: 'rth', 'globex', a custom key — default is the symbol's default |
| sessionsLimit | number | How many matching session refs to return (default 25) |
| since | string | ISO date lower bound, e.g. 2019-01-01 |
| symbol * | string | Configured symbol, e.g. 'NQ' — see edge_freshness for the list |
| until | string | ISO date upper bound |
edge_reportA preset from the catalog, with parameters| Parameter | Type | Description |
|---|---|---|
| force | boolean | Return the estimate even below the refuse floor (guards still flag it) |
| groupBy | string | Override the preset's default grouping with any groupable field from edge_fields |
| params | object | Preset params by name, e.g. {"minGapPct": 0.3, "dir": "down"} — names, types, enum values, and defaults come from edge_reports_list; omitted params fall back to their defaults |
| preset * | string | Preset id from edge_reports_list, e.g. 'gap-fill' or 'orb' |
| sessionKey | string | Session window: 'rth', 'globex', a custom key — default is the symbol's default |
| sessionsLimit | number | How many matching session refs to return (default 25) |
| since | string | ISO date lower bound, e.g. 2019-01-01 |
| symbol * | string | Configured symbol, e.g. 'NQ' — see edge_freshness for the list |
| until | string | ISO date upper bound |
edge_reports_listThe catalog, with parameter specs| Parameter | Type | Description |
|---|---|---|
| category | string | Only presets in this category, e.g. 'gaps' — the result's `categories` lists what the folder currently holds |
edge_session_barsOne session's bars with the levels the engine derived for it| Parameter | Type | Description |
|---|---|---|
| contextBars | number | Pre-session context bars to include before the open (default 30, max ${SESSION_BARS_MAX_CONTEXT}, 0 for none) |
| sessionId * | string | A session id from edge_query / edge_report `sessions[].sessionId`, e.g. 'DEMO_STK|rth|2024-12-27' |
edge_sessionsThe historical sessions behind a result| Parameter | Type | Description |
|---|---|---|
| ids * | array | Session ids from a query result's `sessions[].sessionId` |
edge_tradesWhich trade tags your imported trades produced, and how to query themSecurity checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.8K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
- ✓No dynamic code executionScanned 82 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- stdio and Streamable HTTPpackages/mcp/src/index.ts:7, packages/mcp/src/http.ts:8
- Starts other programs
- 2 callspackages/core/src/live/sinks.ts:77, packages/core/src/live/sinks.ts:84
- Outbound network calls
- 3 callspackages/core/src/adapters/shared.ts:47, packages/core/src/live/sinks.ts:58, packages/web/src/lib/api.ts:92
- Writes or deletes files
- No file writes or deletes
- Lockfile
- pnpm-lock.yaml
Pattern matches on the source text of 82 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.8K words, fetched a month ago. The original in the repository is authoritative.
Read full README