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.1Watch 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.
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.
The 4-Leg Exit Ladder & Permanent Breakeven De-risking
Excursion milestone t1 tightens initial stop (k0 · ATR). Milestone t2 locks in fractional profit. Operates strictly before TP1; never loosens.
Closes 25–30% position weight, banks immediate cash, and engages Breakeven Lock at Entry + Round-Trip Fees. Downside risk drops to 0.00% permanently.
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.
Zero profit ceiling. Rides macro fat-tailed trend runs to capture 5R, 8R, and 12R windfalls. Protected exclusively by adaptive Keltner trailing stop.
Seven Principles of an Elite Hedge Fund
The mathematical and architectural laws that govern every live trading algorithm on Quant7Alpha.
Closed bars only. Standardized price change & clock windows. Guaranteed zero future data leak across all parameter stems.
Four independent market hypotheses (TRND, BRK, MR, SWP). An engine's thesis must be proven before any order can be proposed.
Multi-modal price kinematics: normalized velocity, jerk, and curvature. Evaluated across 9 to 65 bar rolling windows.
Composite score cf must clear configuration minimum cm, anchored by the continuous 60-minute HTF EMA21/55 directional trend filter.
ELU bounded leverage ramp (50x–200x), continuous dynamic sizing b(cf) = 2.0%–5.5%, and hard Liquidation Guard (stop > guard = refusal, never cut).
3-step profit ratchet, instant breakeven de-risking at TP1, and adaptive Keltner trailing stop that can only tighten, never loosen.
16–18 causal stages via Optuna TPE, scored on day-clustered lower confidence bounds (LCB), replayed across 15 purged & embargoed test pairs.
The Four Net P&L Boosting Enhancements
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.
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.
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.
Re-bases on live wallet balance, doubling notional sizes as capital compounds without increasing percentage risk, unlocking exponential geometric returns.
| Strategy Lane | Execution Venue | Configs | Allocated | Cumulative Net P&L | Portfolio Return | Trades | Max DD |
|---|---|---|---|---|---|---|---|
| Strategy S1 | gTrade Arbitrum L2 Synthetics | 16 | $160,000 | +$367,659.05 | +229.8% | 4,221 | < 15.0% |
| Strategy S1 | EdgeX Central Limit Order Book | 16 | $160,000 | +$128,305.35 | +80.2% | 4,169 | < 15.0% |
| Strategy S5 | gTrade CME Globex (Metals/Energy) | 16 | $160,000 | +$113,705.29 | +71.1% | 1,661 | < 6.6% |
| Combined Estate | Multi-Strategy Algorithmic Fleet | 48 | $480,000 | +$609,669.69 | +127.0% | 10,051 | < 15.0% |
02 · volatility, decomposed
1:52 · narrated · real bars · illustrative exit parametersThe 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.
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.
- broker feed (websocket)
- active config registry
- tf-aligned clock
- normalized frame
- rolling window update
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).
- normalized frame + rolling window
- subsystem state (filters, structure, exhaustion)
- active parameter set (from latest manifest)
- candidate trade
- engine attribution tag
- subsystem stack record
- ≥1 engine produces a non-null candidate
- subsystem stack consensus ≥ threshold
- no overlap with an active position on the same instrument
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).
- candidate trade + feature vector
- probability score [0,1]
- model confidence band
- score ≥ engine-specific threshold
- confidence band within tolerance
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.
- news + macro feed window
- instrument + peer correlation map
- sentiment alignment score
- block/allow decision
- alignment score within engine tolerance
- no active blackout headline
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.
- active regime vector
- calibration regime fingerprint (per-config)
- regime match score
- block/allow decision
- match score ≥ regime threshold
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.
- Λ-Vol feature vector
- engine ↔ state compatibility matrix
- active Λ-Vol state
- engine compatibility verdict
- engine permitted in current state
- no STRESS_HIGH veto on directional engines
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.
- account state
- session ledger
- portfolio exposure
- live order-flow snapshot
- position size
- leverage
- stop-loss / take-profit anchors
- ELU value
- per-trade ELU ≤ trade ceiling
- per-session aggregate ELU ≤ daily ceiling
- portfolio correlation budget not exceeded
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.
- sized order
- broker route
- slippage / commission profile
- confirmed fill(s)
- position record (entry context attached)
- live mark-to-market hook
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.
- new frames
- running mark-to-market
- running Λ-Vol state
- mark-to-market updates
- regime-shift alerts
- managed-exit triggers
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.
- entry anchors
- live volatility envelope
- regime-shift signal (if any)
- partial fills at P1, P2, P3, P4
- realized P&L per leg
- exit-reason tag per leg
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.
- closed trade record
- live cohort vs cycle baseline
- manifest entry
- attribution row
- drift signal (if any)
- manifest write succeeded
- attribution decomposition sums to total P&L

