Systematic trading infrastructure

SharpEdge Systems

A reliable edge through structure, not speculation.

A systematic market-data and regime-analysis engine focused on clarity, discipline, and decision-quality over noise. Multi-source ingestion, backtested signals, and deterministic trade cards — with the discipline to refuse a trade when the evidence isn't there.

MIT LicensedPythonSQLite
63–82%backtested win rates
per regime bucket
≤ 2%max drawdown
across top buckets
4ingestion sources
Alpaca · FINRA · FRED · GDELT
0trades without evidence
discipline is the feature

See it in action

Every run emits a deterministic decision card — and, crucially, it will refuse to trade when the evidence isn't there. Discipline is the feature, not an afterthought.

SHARPEDGE AGENTIC AI V1 DECISION

Symbol: SPY

Decision: hold

Trade allowed: False

Risk state: PROBE

Blocking reasons: controller_hold, monitor_no_trade,
  sample_n_below_30, stale_or_missing_inputs

Risk flags: broker_integration_unavailable,
  freshness_gate_failed, low_sample, monitor_blocks_trade

Orders remain blocked unless an operator manually
confirms outside this contract.

Backtested expectancy by regime bucket

Regime × pressure × DTE buckets ranked by backtested expectancy — with a minimum sample size enforced before any bucket counts.

RegimePressurenWinExpSharpeMaxDD
high_vol / rising_voltrendNORMAL2882.1%0.00543.62-2.01%
mid_vol / rising_voltrendNORMAL4472.7%0.00313.89-1.10%
mid_vol / falling_voltrendNORMAL4963.3%0.00222.84-2.10%

Full artifacts — trade cards, expectancy matrices, gate sweeps, execution attribution — live in the repo's outputs/ directory.

SharpEdge 2.0 — new

Three new perception layers

2.0 adds context, flow, and pattern recognition on top of the core pipeline — and every one of them lands on the daily trade card.

A

Market Context

A curated library of 24 market-moving events — crashes, hiking cycles, tariff shocks, elections — plus a daily news ingest with tone scoring. History and headlines become features the pipeline reasons over, not footnotes.

B

Options Flow

The options chain is now snapshotted three times per trading day and diffed snapshot-to-snapshot, flagging unusual positioning moves. Max pain, put/call velocity, and the top flow strikes print on every card.

C

Pattern Engine

A 16-pattern candlestick detector with a plain-English teaching library — and forward expectancy measured per pattern from the symbol's own history. A hammer is "bullish" because a book says so; it's worth trading only if the data says so.

Architecture

Three pipeline layers. All processes automated via scheduled workflows with reproducible SQLite state.

01

Truth Layer

Raw market-data ingestion and normalization. Alpaca, FINRA, and FRED feeds land in one consistent store — with freshness gates and cache controls so routine runs skip network calls while state is fresh.

02

Feature Layer

Derived signals, regimes, and structural context. Liquidity and regime classification turn raw bars into the features the decision layer reasons over.

03

Decision Layer

Backtested rules, calibrated DTE selection, and trade plans. Every order is gated behind freshness, sample-size, and monitor checks before anything executes.

Built for discipline

Refuses bad trades

Blocking reasons are explicit — stale inputs, low samples, monitor holds. No silent overrides.

Reports per-regime expectancy

No single headline number. Performance is broken down by regime bucket at enforced minimum sample sizes.

Operator briefs

A thin compression layer over local artifacts: stand-down / monitor / review summaries, watchlists, and session reviews.

Reproducible state

SQLite-backed pipelines with state breadcrumbs — reruns are deterministic, not vibes.

Read the code. Run the pipeline.

SharpEdge Systems is open source under the MIT license.

Explore the repository