XTrade — 5hz Quantitative Execution & FVG Cockpit
Engineered in dev/xtrader (fivehertz/xTrade), XTrade unites custom MQL5 and cAlgo indicators, execution cockpits, and a centralized Symbol Intelligence database. Its flagship Active_FVG_Cockpit.mq5 evaluates a 3-tier timeframe hierarchy (M5 Execution -> M15 Confirmation | H1 Macro Bias) across 6 live telemetry lines: MTF FVG/IFVG alignment, UTC Killzone session timing, Prior-D1/Asian Compression Fuel (NR7/InsideDay), 20-Day ADR exhaustion room, native MT5 Economic Calendar News Shield blackouts, and dynamic 1.5R/2.5R trade plans.
6-Line Multi-Timeframe Execution Cockpit & Readiness Engine
Indicators, Dashboards, Execution Bots & Trading Tools
Multi-Timeframe Institutional Indicators (MQL5 & cAlgo)
Active_FVG_Cockpit.mq5 · ATR14 Displacement & IFVG Flip Engine
5hz Active FVG Execution Cockpit
3-tier MTF confirmation (M5 Exec -> M15 Confirm | H1 Macro Bias) with 0–100 composite readiness scoring and ATR-filtered Fair Value Gaps.
NR7 & InsideDay Compression Scanner
Automatically flags Prior D1 < 60% ADR20, 7-day narrowest range (NR7), Inside Days, and Tight Asian Squeezes (< 30% ADR20).
Native MT5 Macro News Shield
Polls live MT5 Economic Calendar and 2020–2026 historical CSVs to enforce a -30 pt blackout 30m before and 15m after high-impact releases.
Deterministic Price Action, ADR Telemetry & Macro Protection
5hz Multi-Timeframe FVG Execution Cockpit
A draggable, collapsible 6-line on-chart HUD that synthesizes price action displacement, volatility compression, ADR exhaustion, and macroeconomic catalysts into a single 0–100 Readiness Score.
- Line 1 (Setup & MTF Align): Detects ARMED BUY/SELL vs. HTF WATCHING across Fresh FVGs (>= 0.25x ATR14, body >= 55%) and IFVG Flips
- Line 2 (Session Timing): Automatic UTC offset detection classifying ASIAN (00:00–07:00), LONDON OPEN (07:00–10:30), and NY OVERLAP (12:00–16:00) killzones
- Line 3 (Compression Fuel): Scores coiled energy via Prior D1 < 60% ADR20, NR7, InsideDay, and Tight Asian Squeeze (< 30% ADR20)
- Line 4 (ADR Room Left): Projects intraday ADR-H ceiling and ADR-L floor, flagging [AMPLE ROOM], [LIMITED ROOM], or [ADR EXHAUSTED]
- Line 5 (Macro News Shield): Polls MT5 CalendarValueHistory for high-impact events, enforcing a -30 pt BLACKOUT penalty 30m pre / 15m post release
- Line 6 (Live Trade Plan): Computes exact Entry, structural SL, TP1 (1.5R), and TP2 (2.5R) with interactive chart execution buttons
DashV1, DashRangeV2 & DashSymbolInfo Suite
Modular on-chart dashboards ported and expanded from cTrader (cAlgo) to MetaTrader 5, providing instant multi-day ADR matrices and live 23-row broker contract inspection.
- DashRangeV2: Displays D0–D5 daily pip ranges, 5-day AVG, custom ADR(N), 150% & 200% expansion targets, and live distance to High/Low
- DashSymbolInfo: Interactive symbol switcher inspecting contract size, pip/tick value, min/max/step volume in units & lots, unrealized Gross/Net P&L, and session countdowns
- Zero-dependency native MQL5 chart objects with mouse-drag repositioning and 1-click minimize states
Supabase Symbol Intelligence & Quantitative Subfolder (/trading)
Centralizes multi-broker instrument specifications from Symbols.xlsx and 6 years of macroeconomic calendar data (2020–2026) into an authenticated web workspace.
- Dedicated sub-modules for Trading Tools, On-Chart Dashboards, Automated Execution Bots, and MQL5/cAlgo Indicators
- Normalized contract specifications, margin tiers, and session schedules synced with Supabase PostgreSQL
- Gated /trading portal route engineered for role-based quantitative research and live bot telemetry
// 5hz Composite Trade Readiness Score Formula (0 - 100 Pts)
int ComputeReadinessScore(const CockpitState &st) {
int score = 0;
score += st.isArmed ? 24 : (st.isHtfWatching ? 12 : 0); // MTF FVG + Structure (0-24)
if(st.macroBiasAligned) score += 6; // H1 Macro Bias Bonus (+6)
score += st.isPrimeKillzone ? 20 : (st.isAsia ? 6 : 0); // Session Timing (0-20)
score += st.highFuel ? 15 : (st.modFuel ? 10 : 5); // Compression Fuel (0-15)
score += (st.adrPctUsed < 65 && st.tp1FitsAdr) ? 20 : 12; // ADR Room Left (0-20)
score += st.newsBlackout ? -30 : (st.newsClear ? 15 : 8); // Macro News Shield (-30..+15)
return MathClamp(score, 0, 100);
}Access the Authenticated Symbol Intelligence & Trading Portal
Explore the full Symbols.xlsx database, MQL5 indicator binaries, and live dashboard configurations inside the protected workspace.