This installation implements source‑aware processing: select a lower source or a lower/higher pair, then run detection and lifecycle per source with dedicated ATR, history checks, and bar stamps. Zones store their source timeframe for logging and snapshot persistence, and only that source's chart displays and permits edits. The result is predictable chart switching, reproducible restoration, and clearer separation of signals across timeframes.
Snapshot persistence provides the zone engine with a way to preserve stored zone records and their lifecycle state between runs. This capability, introduced in Part V, becomes particularly useful as we add a second source timeframe: chart switching can restore existing records rather than reconstruct their state from detection alone. Automatic history scans still run after restoration to identify eligible candidates.
In Part VI, our architectural focus shifts from chart-bound processing to explicitly configured source timeframes. Each active source keeps an independent runtime context, detailed in Phase 1. The existing detection and lifecycle functions receive the appropriate source timeframe and ATR value.
The organizing principle is permanent source ownership. A zone retains the timeframe that produced it through editing, lifecycle transitions, logging, and restoration. Visibility depends on the zone’s stored source and the displayed chart period. New manual rectangles receive that period as their source only when registration succeeds on an active source chart.
This part extends zone detection and lifecycle processing to two configured source timeframes, with single-source mode also supported. Trading coordination between sources is outside this extension.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Check out the new article: Interactive Supply and Demand Zone Manager in MQL5 (Part VI): Dual-Timeframe Zone Detection and Lifecycle Management.
Snapshot persistence provides the zone engine with a way to preserve stored zone records and their lifecycle state between runs. This capability, introduced in Part V, becomes particularly useful as we add a second source timeframe: chart switching can restore existing records rather than reconstruct their state from detection alone. Automatic history scans still run after restoration to identify eligible candidates.
In Part VI, our architectural focus shifts from chart-bound processing to explicitly configured source timeframes. Each active source keeps an independent runtime context, detailed in Phase 1. The existing detection and lifecycle functions receive the appropriate source timeframe and ATR value.
The organizing principle is permanent source ownership. A zone retains the timeframe that produced it through editing, lifecycle transitions, logging, and restoration. Visibility depends on the zone’s stored source and the displayed chart period. New manual rectangles receive that period as their source only when registration succeeds on an active source chart.
This part extends zone detection and lifecycle processing to two configured source timeframes, with single-source mode also supported. Trading coordination between sources is outside this extension.
Author: Francis Nyoike Thumbi