
Trend Regime Line
Institutional Larry Williams triad trend regime indicator for MT5. Unifies %R thrust, Ultimate Oscillator momentum, and Williams A/D volume.

System Overview
Trend Regime Line decodes directional market regime through an institutional synthesis of three classic Larry Williams quantitative tools, each answering a distinct structural question before granting execution consensus.
Williams %R establishes directional thrust at market extremes (-10 and -90 zones), the Ultimate Oscillator confirms that underlying multi-cycle momentum validates the impulse, and Williams Accumulation/Distribution verifies whether institutional capital throughput continues to back the move.
The regime line itself represents the arithmetic midpoint of the 10-bar range—the exact price level where %R reads -50. Directional consensus is expressed visually: emerald green indicates unanimous bullish alignment, crimson red denotes bearish conviction, and neutral slate gray signals cycle divergence or consolidation.
Engineered with strict zero-repainting discipline on closed bars, XOR-free canvas shading geometry that preserves native candlestick depth, and zero external network latency.
How It Works?
Williams %R Directional Thrust
Monitors bar closes relative to the 10-bar high/low envelope. Readings at or above -10 initiate bullish regime bias, while closes at or below -90 trigger bearish regime orientation.
Ultimate Oscillator Multi-Cycle Momentum
Validates regime shifts across 7, 14, and 28 periods weighted 4:2:1. Requires oscillator alignment across the 50 centerline before confirming directional transitions.
Williams A/D Volume Flow Verification
Assesses cumulative accumulation/distribution over the 28-bar cycle, flagging stealth distribution at cycle highs or quiet accumulation at range lows.
Regime Consensus & Neutral Slate Gray
When momentum or volume diverges from price thrust, the indicator immediately drops into neutral gray, filtering whipsaws during choppy, uncommitted order flow.
4-Timeframe Radar Matrix
Integrates an unobtrusive onyx/gold heads-up display tracking live regime alignment across M15, H1, H4, and D1 timeframes with real-time distance proximity metrics.
Full iCustom Buffer Architecture
Exposes 14 distinct numerical buffers—including regime state, line levels, cloud boundaries, and matrix states—enabling programmatic integration into algorithmic EAs.