Quant7Alpha
End-to-End Trade Flow · Eleven Deterministic Stages

Entry to Execution & Exit.

Every trade passes through eleven deterministic stages before it closes: four quantitative engines, risk gates, four adaptive exit legs, and continuous live regime monitoring. Every rejection point is mathematically explicit—silent failures are impossible by design.

The four levels

S1 whitepaper · figure 2 · §2b.1
LEVEL 1LEVEL 2LEVEL 3LEVEL 4ORDER FLOW+ market dataexchange taker flowclosed bars onlyTRNDBRKMRSWPfour independent hypothesesf-ENGINE PARAMETER LAYERthe join: engine × configurationi_<ASSET>_<TF>_<stem>16 configurations = 4 assets × 4 timeframesCONFLUENCE GATEcf ≥ i_<ASSET>_<TF>_cm+ regime and trend filterswhetherRISK GOVERNORconfidence → leveragefloor at own min · cap at 100guard set by leveragehow largeTRADE.
Hover or tab through any stage for what it does. The signal shows one illustrative pass. Some loops take the trade; some end at the governor, where a stop that does not fit inside the liquidation guard is refused.
Figure 2 of the S1 whitepaper (§2b.1): order flow and market data feed four independent engines. The f-engine layer joins each engine to the sixteen configurations. The confluence gate decides whether; the risk governor decides how large. Illustrative: not a backtest, not a forecast.
Hedge-Fund Styled Decision & Parameter Trail (§2b.1)

Watch One Trade, End to End

Deconstructing the exact causal chain: from closed-bar order flow intake, through four orthogonal hypothesis engines and the mathematical risk governor, to four-leg exit ladder execution with permanent breakeven de-risking and unbounded runner upside.

Interactive Quant Execution Simulator · 60 FPS Engine
Strategy S1 · gTrade Arbitrum L2
Roster: BTC (200x) · ETH (150x) · SOL (100x) · XRP (75x)24/7 Continuous Execution · Fail-Closed

Realized bars and causal indicator traces rendered directly from production Python engine telemetry. All risk invariants, liquidation guard ceilings, and breakeven ratchets are hardcoded in code.

Causal Execution StationsLevel 1 → Level 6 Trail
Enforced by: q7_algo/s1/Loss Law: Fail-Closed
Level 6: In-Flight Management

The 4-Leg Exit Ladder & Permanent Breakeven De-risking

Monotonic Risk Reduction Rules
Step 01 · Pre-TP1 Defense
3-Step Profit Ratchet

Excursion milestone t1 tightens initial stop (k0 · ATR). Milestone t2 locks in fractional profit. Operates strictly before TP1; never loosens.

Step 02 · De-Risk Milestone
TP1 (1.0R–1.5R) & BE Lock

Closes 25–30% position weight, banks immediate cash, and engages Breakeven Lock at Entry + Round-Trip Fees. Downside risk drops to 0.00% permanently.

Step 03 · Core Harvesting
TP2 & TP3 Milestones

TP2 = (k2/k1)*TP1 and TP3 = (k3/k1)*TP1 secure 70%–80% of total trade gains. Dynamic multipliers (Lévy area, vol ratio) adapt target spacing to path geometry.

Step 04 · Asymmetric Windfall
Leg 4 Unbounded Runner

Zero profit ceiling. Rides macro fat-tailed trend runs to capture 5R, 8R, and 12R windfalls. Protected exclusively by adaptive Keltner trailing stop.

Institutional Discipline

Seven Principles of an Elite Hedge Fund

The mathematical and architectural laws that govern every live trading algorithm on Quant7Alpha.

Principle I
Deterministic Causality

Closed bars only. Standardized price change & clock windows. Guaranteed zero future data leak across all parameter stems.

Principle II
Orthogonal Engine Multiplicity

Four independent market hypotheses (TRND, BRK, MR, SWP). An engine's thesis must be proven before any order can be proposed.

Principle III
Physics-Informed Density (ζ-Field)

Multi-modal price kinematics: normalized velocity, jerk, and curvature. Evaluated across 9 to 65 bar rolling windows.

Principle IV
Strict Confluence Gating

Composite score cf must clear configuration minimum cm, anchored by the continuous 60-minute HTF EMA21/55 directional trend filter.

Principle V
Mathematical Risk Governance

ELU bounded leverage ramp (50x–200x), continuous dynamic sizing b(cf) = 2.0%–5.5%, and hard Liquidation Guard (stop > guard = refusal, never cut).

Principle VI
Monotonic In-Flight Defense

3-step profit ratchet, instant breakeven de-risking at TP1, and adaptive Keltner trailing stop that can only tighten, never loosen.

Principle VII
Layered Bayesian & CPCV Calibration

16–18 causal stages via Optuna TPE, scored on day-clustered lower confidence bounds (LCB), replayed across 15 purged & embargoed test pairs.

November 2026 Institutional Audit

The Four Net P&L Boosting Enhancements

+$609,669.69 Verified Estate Gain
Pillar 1: Confluence-Scaled Dynamic Risk Budget b(cf)

Continuous scaling law b(cf) = 2.0% + 3.5% * u(cf). Baseline qualifiers risk 2.0% (surviving chop), while super-confluence setups (cf ≥ 85) scale to 5.50% risk (2.75x notional), concentrating capital where historical win rates exceed 70% and Profit Factors exceed 3.5x.

Pillar 2: ELU High-Leverage Ramp (100x–200x) Margin Efficiency

High leverage minimizes required margin (5%–10% of equity), allowing 3 to 4 concurrent positions without collateral exhaustion while the Liquidation Guard caps maximum allowable stops.

Pillar 3: The 4-Leg Ladder Breakeven De-risking Progression

TP1 banks immediate cash and moves the stop to Entry + Round-Trip Fees—downside risk drops to 0.00% permanently. Leg 4 (The Runner) rides fat-tailed trend runs with zero ceiling, capturing 5R, 8R, or 12R asymmetric windfalls.

Pillar 4: Dynamic Equity Re-Basing for Geometric Compounding

Re-bases on live wallet balance, doubling notional sizes as capital compounds without increasing percentage risk, unlocking exponential geometric returns.

Master Estate Performance Summary ($10,000 Capital per Config · 48 Calibrated Models)
Strategy LaneExecution VenueConfigsAllocatedCumulative Net P&LPortfolio ReturnTradesMax DD
Strategy S1gTrade Arbitrum L2 Synthetics16$160,000+$367,659.05+229.8%4,221< 15.0%
Strategy S1EdgeX Central Limit Order Book16$160,000+$128,305.35+80.2%4,169< 15.0%
Strategy S5gTrade CME Globex (Metals/Energy)16$160,000+$113,705.29+71.1%1,661< 6.6%
Combined EstateMulti-Strategy Algorithmic Fleet48$480,000+$609,669.69+127.0%10,051< 15.0%

02 · volatility, decomposed

1:52 · narrated · real bars · illustrative exit parameters

The surface at the top is the ζ field: ζ combines the normalised velocity, jerk and curvature of price, and is computed here across every window from 9 to 65 bars of real ETH/USD 15-minute data. Above zero it adds evidence for longs; below zero, for shorts.

Volatility is read the same way. Yang–Zhang realised volatility at six horizons forms a curve; a rolling principal-component decomposition splits it into level, slope and curvature. When long-horizon volatility breaks away from short, the HAR halt stands new entries down.

The exit: a stop set once at entry, three targets — the first capped at 3R — and a runner with no target. Leg sizes are calibrated per engine. Before the first target a ratchet tightens the stop in three steps; after it, a break-even lock and a trail that never loosens.

The bars are real; the exit parameters are illustrative, not calibrated. Not a backtest — many trades end at the stop. Method: the S1 whitepaper, sections 6 and 9.

end-to-end trade flow11 stages · entry → exit
STAGE 01Market Tick

A new OHLCV frame arrives from the broker feed for an instrument inside an active S1–S6 config. The feed is normalized across brokers and timestamped to the script timeframe.

inputs
  • broker feed (websocket)
  • active config registry
  • tf-aligned clock
outputs
  • normalized frame
  • rolling window update
frame committed
STAGE 02Engine & Subsystem Evaluation

The frame is run through the four alpha driver engines (TRND · BRK · MR · SWP) and the 17 subsystems specific to that script. Each engine computes its own candidate trade — only one engine carries the trade forward (engine attribution is preserved end-to-end).

inputs
  • normalized frame + rolling window
  • subsystem state (filters, structure, exhaustion)
  • active parameter set (from latest manifest)
outputs
  • candidate trade
  • engine attribution tag
  • subsystem stack record
gates
  • ≥1 engine produces a non-null candidate
  • subsystem stack consensus ≥ threshold
  • no overlap with an active position on the same instrument
REJECTNo engine fires or subsystems disagree → frame is logged and discarded. The trade flow stops here for this tick.
candidate trade
STAGE 03AI 1 · XGBoost ML Classifier

The candidate is scored by a gradient-boosted classifier trained on the calibrated cohort. Output is a probability of profitable resolution given the feature stack (engine, subsystem outputs, recent regime).

inputs
  • candidate trade + feature vector
outputs
  • probability score [0,1]
  • model confidence band
gates
  • score ≥ engine-specific threshold
  • confidence band within tolerance
REJECTScore below threshold → trade dropped. Logged for offline analysis only.
passes layer 1
STAGE 04AI 2 · FinBERT Sentiment Gate

A FinBERT-derived sentiment score is computed against the streaming news flow for the instrument and its correlated peers. The gate blocks trades that conflict with the prevailing sentiment regime — e.g. fading a strong narrative without a regime-aligned reason.

inputs
  • news + macro feed window
  • instrument + peer correlation map
outputs
  • sentiment alignment score
  • block/allow decision
gates
  • alignment score within engine tolerance
  • no active blackout headline
REJECTSentiment misalignment → trade dropped. Audit trail records the headline cohort that triggered the block.
passes layer 2
STAGE 05AI 3 · Regime Match Classifier

The active regime (computed from rolling features) is matched against the regime profile that calibrated this parameter set. Out-of-distribution regimes block the trade even when statistical edge is intact.

inputs
  • active regime vector
  • calibration regime fingerprint (per-config)
outputs
  • regime match score
  • block/allow decision
gates
  • match score ≥ regime threshold
REJECTOut-of-distribution regime → trade dropped. RX cycle is notified to track regime drift.
passes layer 3
STAGE 06AI 4 · Λ-Vol Regime Intelligence

The volatility PDE classifier computes the active Λ-Vol state from four features (level · slope · dispersion · velocity) and maps the candidate to one of five states: TREND_CALM · TREND_ACTIVE · MEAN_REVERT · STRESS_HIGH · TRANSITION. Only state-compatible engines are allowed through.

inputs
  • Λ-Vol feature vector
  • engine ↔ state compatibility matrix
outputs
  • active Λ-Vol state
  • engine compatibility verdict
gates
  • engine permitted in current state
  • no STRESS_HIGH veto on directional engines
REJECTEngine not permitted in current state → trade dropped. Drives a Λ-Vol-state attribution row in telemetry.
approved trade
STAGE 07Dynamic Risk Profiling

The approved trade is sized through three risk layers. ELU = Margin% × Leverage × SL% / 100 is computed at the per-trade layer and aggregated upward. Order-flow quality at the moment of placement maps continuously to leverage — thin books reduce size, deep books permit standard sizing.

inputs
  • account state
  • session ledger
  • portfolio exposure
  • live order-flow snapshot
outputs
  • position size
  • leverage
  • stop-loss / take-profit anchors
  • ELU value
gates
  • per-trade ELU ≤ trade ceiling
  • per-session aggregate ELU ≤ daily ceiling
  • portfolio correlation budget not exceeded
REJECTAny of the three risk ceilings breached → trade is rejected entirely (no down-sizing fallback). Session circuit breaker may trip.
sized order
STAGE 08Order Placement & Position Open

The order is routed through the OMS to the broker, with retry logic on partial fills and slippage capture. The position record is created with engine, subsystem stack, AI scores, and Λ-Vol state stamped — every piece of context that informed the entry is preserved for attribution.

inputs
  • sized order
  • broker route
  • slippage / commission profile
outputs
  • confirmed fill(s)
  • position record (entry context attached)
  • live mark-to-market hook
position live
STAGE 09Live Position Management

While the trade is open, the regime is re-checked on every new frame. A regime shift mid-trade can override the exit ladder (early exit) — this is the system's primary defense against held-through-a-state-change risk. The 4 AI layers continue to monitor; an out-of-distribution regime triggers a managed exit.

inputs
  • new frames
  • running mark-to-market
  • running Λ-Vol state
outputs
  • mark-to-market updates
  • regime-shift alerts
  • managed-exit triggers
exit triggered
STAGE 104-Leg Adaptive Exit

The position unwinds in four legs at engine-specific allocations. Targets are anchored to entry-time volatility; the runner is trailed by the live Λ-Vol envelope. A regime-shift override collapses the ladder into an immediate exit at whichever leg is next.

inputs
  • entry anchors
  • live volatility envelope
  • regime-shift signal (if any)
outputs
  • partial fills at P1, P2, P3, P4
  • realized P&L per leg
  • exit-reason tag per leg
P1Scalp
40–50%
First target — secures cost basis.
P2Core
25–30%
Mid-target — reduces variance.
P3Extended
15–20%
Stretch target — captures continuation.
P4Runner
5–10%
Λ-Vol trailed — runs the regime.
trade closed
STAGE 11Telemetry & Manifest Write-Back

The closed trade is written to the manifest with full attribution: engine, subsystem stack, AI 1–4 scores at entry, Λ-Vol state at entry and exit, leg-by-leg P&L, slippage and commission. Drift detection compares live edge against the cycle baseline; persistent drift triggers the next R-PRISM cycle.

inputs
  • closed trade record
  • live cohort vs cycle baseline
outputs
  • manifest entry
  • attribution row
  • drift signal (if any)
gates
  • manifest write succeeded
  • attribution decomposition sums to total P&L