# SML Edge Court

> Robustness verdicts for trading strategies. Edge Court runs a Pine Script strategy on real multi-year market data (or audits an exported trade list) and returns a signed verdict: ROBUST_EDGE, FRAGILE_EDGE, CURVE_FIT, NO_EDGE or INSUFFICIENT_DATA. Built by Script Master Labs LLC (SDVOSB). No financial advice.

Edge Court exists because a strategy's best few weeks routinely show an 80% win rate and a 2.7 profit factor while the same rules lose money over six years. Edge Court puts the best snapshot next to the full history, then tests whether the edge survives time, regimes, parameter changes, resampling and costs.

## Use it
- Web app (free daily quota): https://edge-court.onrender.com/
- MCP endpoint (streamable HTTP, no account): https://edge-court.onrender.com/mcp
- Paid HTTP API (x402 v2, USDC on Base, payTo 0x5BBd32e0478e49A7540EF2D760E0B0F9AA6328b2):
  - POST https://edge-court.onrender.com/v1/audit/pine — $0.25 per audit
  - POST https://edge-court.onrender.com/v1/audit/trades — $0.05 per audit
- OpenAPI: https://edge-court.onrender.com/openapi.json · x402 manifest: https://edge-court.onrender.com/.well-known/x402

## Pricing
| Audit | Input | Price (USDC, Base) |
|---|---|---|
| Pine strategy audit | Pine v5/v6 strategy() source + Binance symbol/interval or your OHLC CSV | 0.25 |
| Trade-list audit | TradingView List of trades, NinjaTrader Trade Performance, generic CSV, JSON | 0.05 |
| Preview, verify, methodology, status | — | free |

## What every audit contains
- Snapshot vs full history: best rolling window next to the complete record, plus the share of windows that showed PF >= 2.
- Significance: per-trade Sharpe, t-test p-value, Probabilistic Sharpe Ratio, Deflated Sharpe (trials-aware), minimum track record length.
- Stability: per-year table, 5 chronological folds, profit concentration, time spent below zero.
- Regimes: BULL/BEAR/RANGE x LOW/MID/HIGH volatility breakdown (no lookahead).
- Pine only: ±10–20% parameter sweep with spike detection, and anchored walk-forward out-of-sample results.
- Monte Carlo: 5000-iteration iid and stationary block bootstrap of the real trades.
- Cost stress and breakeven extra cost per trade.
- Ed25519-signed receipt (public key: https://edge-court.onrender.com/.well-known/edge-court-keys.json), shareable card, provenance hashes for code, trades and price data.

## Data
Market data: Binance spot klines from data-api.binance.vision, closed bars only, SHA-256 hashed. Futures/equities: upload your own OHLC (e.g. TradingView Export chart data). Bar cap 30000.

## Methodology
https://edge-court.onrender.com/methodology (calibrated:false — thresholds are stated, not fitted)

## Source
https://edge-court.onrender.com/source.tar.gz (AGPL-3.0; Pine execution by PineTS)
