Appearance
Personalize your experience
Regime Detection: ADX, Choppiness Index & Efficiency Ratio
Algorithmic TradingPreventing trend bots from bleeding in sideways chop by gating signals on Kaufman's Efficiency Ratio and Choppiness Index.
Core Architecture & Intuition
Preventing trend bots from bleeding in sideways chop by gating signals on Kaufman's Efficiency Ratio and Choppiness Index. Within the Algorithmic Trading curriculum (Systematic Strategy Design → Regime Filtering), this topic establishes the concrete quantitative rules and execution mechanics required for live market deployment.
Professional desks never rely on ambiguous visual guesses for adx. 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: Adx, Choppiness Index, and Efficiency Ratio. For the complete mathematical derivation and edge-case analysis, open .
Interactive Concept Breakdown
- Adx — Core structural driver governing regime detection: adx, choppiness index & efficiency ratio.
- Choppiness Index — Prevents premature entries and enforces mechanical discipline across Regime Filtering.
- Efficiency Ratio — Ensures worst-case scenario losses stay strictly within predetermined R-multiple budgets.
Step-by-Step Execution Protocol: Regime Filtering
- 11. Pre-Session Calibration & Regime CheckMeasure baseline volatility and liquidity parameters for adx prior to market open.
- 22. Mechanical Signal ConfirmationWait for a completed bar close confirming the choppiness index threshold—never pre-empt mid-candle.
- 33. Risk-Normalized Sizing & Order PlacementCompute exact lot quantity from the invalidation distance and dispatch via a Marketable Limit order.
- 44. Post-Trade Telemetry & AuditLog arrival price, fill slippage, and MAE/MFE metrics against the Regime Filtering benchmark.
Parameters, Rules & Reference Matrix
| Parameter / Rule | Type | Default | Description |
|---|---|---|---|
| primaryThreshold* | float | Calibrated per ATR | Core quantitative trigger governing Regime Detection: ADX, Choppiness Index & Efficiency Ratio. |
| confirmationWindow | bars | 1 closed bar | Requires full bar closure to eliminate intrabar repainting. |
| maxRiskAllocation | % equity | 0.5% - 1.0% | Maximum capital at risk if invalidation level is hit. |
Implementation & Quantitative Model
export function kaufmanEfficiencyRatio(closes: number[]): number { const netMove = Math.abs(closes[closes.length - 1] - closes[0]); const sumSteps = closes.slice(1).reduce((s, c, i) => s + Math.abs(c - closes[i]), 0); return sumSteps > 0 ? netMove / sumSteps : 0;}Desk Verification Checklist
Confirm before deploying live capital
- Confirm Regime Filtering 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.
More in Regime Filtering
- Volatility Targeting: Dynamic Leverage Scaling by Realized Volatility
Scaling strategy notional exposure inversely to 20-day realized volatility to stabilize portfolio Sharpe ratio.