Discussing the article: "Formulating Dynamic Multi-Pair EA (Part 8): Time-of-Day Capital Rotation Approach"

 

Check out the new article: Formulating Dynamic Multi-Pair EA (Part 8): Time-of-Day Capital Rotation Approach.

This article presents a Time-of-Day capital rotation engine for MQL5 that allocates risk by trading session instead of using uniform exposure. We detail session budgets within a daily risk cap, dynamic lot sizing from remaining session risk, and automatic daily resets. Execution uses session-specific breakout and fade logic with ATR-based volatility confirmation. Readers gain a practical template to deploy capital where session conditions are statistically strongest while keeping exposure controlled throughout the day.

The Time of Day Capital Allocation Approach is fundamentally a capital allocation engine designed to plug into different execution models rather than being a rigid trading system. At its core, the engine solves a simple but critical problem: how much risk capital should be deployed during each trading session, and on which instruments? By separating the allocation logic from the actual entry signals, the system becomes strategy-agnostic—whether you prefer breakouts, mean reversion, or momentum, the rotation engine ensures your capital is directed to the right session at the right time.

Capital allocation in this system follows a hierarchical risk budgeting approach. First, the trader defines a DailyCapitalPercent (e.g., 30% of account balance), which represents the maximum total risk exposure for the entire trading day. This daily budget is then subdivided among active sessions using either equal split (e.g., 30% ÷ 3 sessions = 10% per session) or manual percentages (e.g., Asian 7%, London 8%, New York 15% of the daily budget).

When a signal triggers, the system calculates remaining session risk (max minus used). It then sizes the position by dividing remaining risk by (stop-loss pips × pip value). For example, if the London session has a remaining budget of $240 and the stop loss requires 30 pips at $1 per pip, the lot size would be 0.08 lots. This ensures that every trade respects both session-level and daily-level risk limits, while automatically adjusting lot sizes downward as the session's risk budget gets consumed by open trades (regardless of outcome).

Author: Hlomohang John Borotho