OrderFlow Value Area Portfolio EA
Standalone Auction Market Theory Expert Advisor combining multi-day Composite Volume Profiles (POC, VAH, VAL) and Session-Anchored VWAP across a 9-asset risk-parity portfolio from one EURUSD M30 chart.
Key features
- 48-bin closed-bar Multi-Day Composite Volume Profile (1D, 3D, 5D, and rolling 30-bar) computing Point of Control (POC), 70% Value Area High/Low (VAH/VAL), and untouched Naked POCs.
- True Session-Anchored VWAP (London Open, NY Cash Open, Tokyo Open, or Daily Rollover) with +/-1.0 and +/-2.0 standard deviation bands, slope tracking, and volume absorption filters.
- Single-chart 9-asset unique-symbol risk-parity portfolio attached to EURUSD M30 across Forex, global indices, Gold, and Bitcoin (EURUSD, UK100, NZDUSD, JP225, US30, USTEC, XAUUSD, AUDJPY, BTCUSD) — hedging and netting safe.
- Multi-model Auction Market Theory execution: Composite Value Area breakouts and VWAP pullbacks (Model B), Session VWAP SD-band exhaustion reversion (Model C), Failed Auction fades (Model A), Opening-Drive reclaim (Model D), and Naked POC rejection (Model E).
- In-sample risk-parity slot weights with automatic Balance Drawdown Step-Down, physical server-side stops, currency/group exposure caps, built-in MT5 Calendar news filter, and zero martingale, grid, DLLs, or WebRequest.
- Interactive 9-slot High-DPI CCanvas dashboard (100% and 200% DPI verified, Dark/Light themes) with live Value Area zone telemetry, VWAP distance, volume ratio, Pause EA, and two-step Close All protection.
Video
Demo and walk-through of OrderFlow Value Area Portfolio EA.
Full description
The complete feature description, as published on the MQL5 Market.
OrderFlow Value Area Portfolio EA is a standalone automated Expert Advisor built on Auction Market Theory. From a single EURUSD M30 chart, it computes 1-Day, 3-Day, 5-Day, and Rolling Composite 70% Volume Profiles (Point of Control, Value Area High, Value Area Low) alongside Session-Anchored VWAP (London Open, NY Cash Open, Tokyo Open, or Daily Rollover) strictly on closed bars, executing a diversified 9-asset risk-parity portfolio without martingale, grid, or averaging down.
Core Auction Market Engine
- Multi-Day Composite Volume Profile: Builds a 48-bin closed-bar volume distribution over 1-day, 3-day, 5-day composite, or rolling 30-bar windows to identify Point of Control (POC), Value Area High (VAH), Value Area Low (VAL), and untouched Naked POCs (nPOC). Uses exchange real volume when available and tick volume as an activity proxy on spot CFD feeds, displayed transparently on the panel.
- True Session-Anchored VWAP and Standard Deviation Bands: Anchors Session VWAP to London Open, NY Cash Open, Tokyo Open, or Daily Rollover with plus/minus 1.0 and 2.0 standard deviation bands and slope tracking.
- Volume Expansion and Absorption Filter: Combines bar close strength, rejection wick ratio, and relative volume surge against a rolling average to filter low-conviction moves.
- 100% Standalone and Causal: Single EX5 file with zero external indicators, zero DLL imports, and zero WebRequest dependencies.
9-Asset Risk-Parity Portfolio and Multi-Model Strategies
- Curated 9-Asset Unique-Symbol Portfolio (Default): Runs nine uncorrelated instruments across Forex, global equity indices, gold, and Bitcoin from one EURUSD M30 chart (100% Hedging and Netting account safe): EURUSD M30, UK100 M30, and NZDUSD M30 (London-Anchored VWAP exhaustion reversion); JP225 H1 and US30 H1 (5-Day Composite VA runners); USTEC H1 (Failed Auction fade to POC); XAUUSD H4 (Trend VWAP/POC pullback); AUDJPY H4 and BTCUSD H4 (30-Bar Composite VA runners).
- Model B — Composite Value Area Breakout and Trend VWAP Pullback: Trades closed-bar breakouts beyond multi-day VAH/VAL or trend-aligned pullbacks into Session VWAP and POC, confirmed by Macro Trend EMA (price and slope), ADX momentum, and volume expansion, managed with Chandelier ATR trailing stops.
- Model C — Session-Anchored VWAP SD-Band Exhaustion Reversion: Fades stretched moves beyond +/-2.0 to +/-2.2 standard deviation bands back toward Session VWAP with absorption close confirmation and commission-aware room filters.
- Model A / D / E Modes: Also includes Failed Auction Fade (VAH/VAL rejection to POC), Session-Open VWAP Opening-Drive Reclaim, and Untouched Naked POC Sweep and Rejection for single-symbol operation.
Institutional Compounding and Risk Guardrails
- In-Sample Risk-Parity Slot Weights and Balance DD Step-Down: Allocates calibrated per-slot risk weights (0.90x to 1.35x) and automatically halves position risk when balance falls below its peak by the configured threshold (default 5.5%), restoring full risk once a new balance high is reached.
- Automatic Broker Symbol Resolution: Detects broker prefixes, suffixes (such as .a or .r), and common index aliases (UK100 / FTSE100, JP225 / JPN225 / NI225, US30 / WS30, USTEC / US100, DE40 / GER40) while filtering out stock/ETF/bond symbols.
- Order Safety and Account Protection: Sizes positions from account balance and physical stop-loss distance with free-margin checks, symbol volume-limit clamping, stops/freeze clamping, automatic filling-mode detection, currency and asset-group exposure caps, spread-to-ATR limits, rollover shield, Friday cutoff, built-in MetaTrader 5 Economic Calendar high-impact news filter, daily equity loss guard, and optional maximum equity drawdown circuit breaker.
On-Chart Visuals and High-DPI 9-Slot Dashboard
- Clean Auction Levels: Draws the shaded Value Area box, VAH, POC, VAL, Session VWAP with standard deviation bands, and active TP1 target on the chart, with complete object cleanup on removal.
- Interactive CCanvas Dashboard: Draggable and minimisable 9-row panel with Dark and Light themes, verified at 100% and 200% DPI scaling with zero clipping. Shows live Value Area zone, distance from VWAP, volume ratio, open P&L, Pause EA toggle, and two-step Close All protection.
Backtest Summary (MetaTrader 5 Strategy Tester)
The following are historical backtest results recorded in the MetaTrader 5 Strategy Tester on a $10,000 USD deposit (leverage 1:100, zero martingale, zero grid). All 9 slots and risk-parity weights were locked on the In-Sample period (2021.01.01 to 2024.12.31) and verified on the unseen Out-of-Sample period (2025.03.01 to 2026.10.31) using Every Tick Based on Real Ticks.
- Default 9-Asset Balanced Portfolio (1.15% risk, 5.5% Balance DD Step-Down, EURUSD M30 anchor, 2021.01 to 2026.10, M1 OHLC): Net Profit +$73,512.57 (+735.1%), Profit Factor 1.27, 2,182 trades, Max Equity Drawdown 16.15%, Recovery Factor 4.95, Sharpe Ratio 1.73, 9 of 9 symbols profitable net of commissions and swaps. Unseen Out-of-Sample Every Tick Based on Real Ticks (2025.03 to 2026.10): Net Profit +$9,051.87 (+90.5%), Profit Factor 1.22, 618 trades, Win Rate 50.65%, Sharpe Ratio 1.70.
- Low-Drawdown 9-Asset Portfolio Preset (0.48% risk, 4.0% Balance DD Step-Down, 2021.01 to 2026.10, M1 OHLC): Net Profit +$12,787.26 (+127.9%), Profit Factor 1.23, 2,078 trades, Max Equity Drawdown 9.53%, Recovery Factor 5.47, zero drawdown halts. Unseen Out-of-Sample Every Tick Based on Real Ticks (2025.03 to 2026.10): Net Profit +$4,069.47 (+40.7%), Profit Factor 1.26, 590 trades, Max Equity Drawdown 9.29%, Recovery Factor 2.97, Sharpe Ratio 1.92.
- Growth High-Compound 9-Asset Portfolio Preset (1.55% risk, 7.0% Balance DD Step-Down, 2021.01 to 2026.10, M1 OHLC): Net Profit +$135,279.45 (+1,352.8%), Profit Factor 1.26, 2,170 trades, Max Equity Drawdown 19.09%, Recovery Factor 4.32, Sharpe Ratio 1.66. Unseen Out-of-Sample Real Ticks: Net Profit +$9,570.55 (+95.7%), Profit Factor 1.18, 614 trades.
- Multi-Deposit Scaling (Default Balanced, 2021.01 to 2026.10): $2,000 deposit: +$11,145.00 (+557.3%, PF 1.25, MaxDD 17.66%); $5,000 deposit: +$36,273.60 (+725.5%, PF 1.27, MaxDD 17.42%).
- Per-Slot Unseen Real-Tick OOS Leaders (2025.03 to 2026.10, 0.75% single-symbol risk): UK100 M30 PF 1.64 (Sharpe 11.40, MaxDD 3.35%); EURUSD M30 PF 1.55 (Sharpe 8.33, MaxDD 4.81%); JP225 H1 PF 1.33 (Sharpe 2.03, MaxDD 5.91%); US30 H1 PF 1.29 (Sharpe 1.91, MaxDD 6.54%); XAUUSD H4 PF 1.26 (MaxDD 5.71%); AUDJPY H4 PF 1.19; BTCUSD H4 PF 1.16.
Risk Disclaimer: Historical backtest results on one broker's data do not guarantee future live trading performance. Always test in the Strategy Tester and on a demo account before live deployment.
Quick Setup
- Open a single EURUSD M30 chart and attach OrderFlow Value Area Portfolio EA.
- Enable Algo Trading in MetaTrader 5. Default settings automatically run all 9 curated portfolio slots at 1.15% risk per trade with 5.5% Balance Drawdown Step-Down and a 4.0% daily equity loss guard.
- For strict low-drawdown operation (9.53% max equity drawdown in 5.8-year backtest), set Risk Per Trade to 0.48% or load the included Low-DD preset. For higher compounding, load the included Growth preset (1.55% risk).
- Ensure EURUSD, UK100, NZDUSD, JP225, US30, USTEC, XAUUSD, AUDJPY, and BTCUSD are enabled in Market Watch (the EA auto-resolves broker prefixes, suffixes, and index aliases).
Quick start
From purchase to a running expert advisor in a few minutes. Details in the install guide.
- Get the EA on the MQL5 Market page: buy, rent or download the free demo. Inside MetaTrader 5 you can also open the Market tab of the Toolbox and install it from there.
- It appears in the Navigator under Expert Advisors › Market. Open the chart named in the description (symbol and timeframe) and drag the EA onto it.
- On the Common tab tick Allow Algo Trading, and switch on the Algo Trading button in the toolbar.
- On the Inputs tab choose a risk profile, or press Load to apply a .set preset if the product ships one.
- Run it in the Strategy Tester and on a demo account first, with your own broker's data, before you trade real money.
Backtest and simulation figures are not a guarantee of future results. Trading involves risk; use risk you can afford to lose. See the risk disclaimer.
More expert advisors
Session Breakout Portfolio EA
A session-range breakout portfolio for gold, the Nikkei and the yen, traded from one chart.
Gold Edge Portfolio EA
Gold Edge Portfolio EA trades XAUUSD with six independent, simple strategies at the same time.
Index Portfolio EA
Three intraday strategies on four stock indices – US30, US100, US500 and GER40 – traded from one chart.
Bitcoin Trend Rider EA
Bitcoin Trend Rider EA is a trend-following and volatility-breakout Expert Advisor for BTCUSD, ETHUSD and other crypto CFDs.





