Appearance

Personalize your experience

Mode
Accent Color
Direction

Algorithmic & Grid Trading Systems

0%
Lesson 2/12/Algorithmic Trading/Systematic Strategy Design/Signal Architecture14 min

Mean-Reversion & Z-Score Stat-Arb: Ornstein-Uhlenbeck & Time Stops

Algorithmic Trading

Capturing short-horizon snapbacks with Z-Score extremes, RSI(2), and mandatory N-bar time stops.

Key Topics & Tags
mean reversionz-scorersi 2time stopstatistical arbitrage

Core Architecture & Intuition

Capturing short-horizon snapbacks with Z-Score extremes, RSI(2), and mandatory N-bar time stops. Within the Algorithmic Trading curriculum (Systematic Strategy Design → Signal Architecture), this topic establishes the concrete quantitative rules and execution mechanics required for live market deployment.

Professional desks never rely on ambiguous visual guesses for mean reversion. Instead, every entry, invalidation level, and risk parameter is defined mathematically before a single order reaches the exchange gateway.

Hover over key terms below for instant definitions: Mean Reversion, Z-Score, and Rsi 2. For the complete mathematical derivation and edge-case analysis, open .

Sell Rung +2 (Take Profit)Sell Rung +1 (Take Profit)Anchor / Equilibrium PriceBuy Rung -1 (1.0x Base Lot)Buy Rung -2 (1.5x Scaled Lot)BUY 1TP +1BUY 1BUY 1.5AVG TPTP +2
Visual architecture for Mean-Reversion & Z-Score Stat-Arb: Ornstein-Uhlenbeck & Time Stops (Algorithmic Trading / Systematic Strategy Design / Signal Architecture).
★
Pro tip:Always validate mean reversion on closed bars and include realistic round-trip slippage + statutory taxes before deploying live capital.

Interactive Concept Breakdown

  • Mean Reversion — Core structural driver governing mean-reversion & z-score stat-arb: ornstein-uhlenbeck & time stops.
  • Z-Score — Prevents premature entries and enforces mechanical discipline across Signal Architecture.
  • Rsi 2 — Ensures worst-case scenario losses stay strictly within predetermined R-multiple budgets.

Step-by-Step Execution Protocol: Signal Architecture

  1. 1
    1. Pre-Session Calibration & Regime Check
    Measure baseline volatility and liquidity parameters for mean reversion prior to market open.
  2. 2
    2. Mechanical Signal Confirmation
    Wait for a completed bar close confirming the z-score threshold—never pre-empt mid-candle.
  3. 3
    3. Risk-Normalized Sizing & Order Placement
    Compute exact lot quantity from the invalidation distance and dispatch via a Marketable Limit order.
  4. 4
    4. Post-Trade Telemetry & Audit
    Log arrival price, fill slippage, and MAE/MFE metrics against the Signal Architecture benchmark.

Parameters, Rules & Reference Matrix

Parameter / RuleTypeDefaultDescription
primaryThreshold*floatCalibrated per ATRCore quantitative trigger governing Mean-Reversion & Z-Score Stat-Arb: Ornstein-Uhlenbeck & Time Stops.
confirmationWindowbars1 closed barRequires full bar closure to eliminate intrabar repainting.
maxRiskAllocation% equity0.5% - 1.0%Maximum capital at risk if invalidation level is hit.

Implementation & Quantitative Model

zscore-reversion.ts
export function zScoreSignal(price: number, mean20: number, std20: number, barsHeld: number) {  const z = (price - mean20) / Math.max(1e-6, std20);  if (barsHeld >= 8 || z >= 0) return "EXIT_LONG";  if (z <= -2.2) return "ENTER_LONG";  return "HOLD";}

Desk Verification Checklist

Confirm before deploying live capital

  • Confirm Signal Architecture regime alignment before enabling entries.
  • Verify candle closure beyond the trigger threshold (no intra-bar guessing).
  • Size position strictly from the distance to the structural invalidation point.

Cross-reference standard risk definitions such as drawdown, slippage, and when auditing your logs.

Full Trade School curriculum →