Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Interactive Supply and Demand Zone Trading Prototype - expert for MetaTrader 5

Views:
624
Rating:
(1)
Published:
DynamicSR4.mq5 (64.21 KB) view
\MQL5\Include\DynamicSR4\
MasterLog2.mqh (5.44 KB) view
ZoneStrategy.mqh (21.55 KB) view
TradeManager.mqh (14.77 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The project introduces a lightweight trading prototype built around an interactive supply and demand zone management framework. The objective is not to present a complete trading methodology or claim a finished automated trading system, but to demonstrate how structured zone analysis can be combined with validation logic, trade management, and market context evaluation.

The configurable input parameters control different areas of the trading framework, including:

  • Strategy Automation Controls — Enable or disable automated signal processing, configure the Expert Advisor identifier, and define basic execution parameters.
  • Risk, Spread & Trade Protection — Manage trading conditions through spread limits, risk-reward targets, and volatility-based protection settings.
  • Trailing Stop Settings — Control optional position management by allowing profits to be protected as price moves favorably.
  • Higher Timeframe Trend Filter Parameters — Apply broader market context confirmation using trend direction and momentum exhaustion checks.
  • Approach Context Parameters — Evaluate how price moves toward a qualified zone, helping distinguish between controlled approaches and aggressive market movements.

The main focus of this implementation is the interactive zone management system. Each qualified supply or demand zone maintains information about its lifecycle, structural quality, and interaction history as market conditions develop.

Supply demand Zone created

Fig 1. Supply Demand Zones drawn with an example Entry.

One of the key outputs of this project is the detailed zone logging system. The generated logs provide a record of how zones are formed, monitored, tested, and invalidated over time. Traders can use this information to study zone behavior, review historical interactions, and develop their own trading ideas or decision processes. Navigate here to find the logfiles

Fig 1. Log location

Fig 2. log file location.


The trading strategy included in this release is provided as an example of how the zone framework can be applied in an automated environment. Users are encouraged to explore the generated zone data, experiment with the available settings, and adapt the framework according to their own trading approach.

The primary goal of this project is to demonstrate a structured way of managing supply and demand zones while providing useful information that can support further analysis, experimentation, and strategy development.

For a deep dive in regard to this codebase please read these articles👇👇 

Part I, Part II, Part III 

Notice: This tool is designed purely as a foundational framework and should be utilized exclusively within a demo environment. The primary value of this engine lies in its comprehensive logging infrastructure; I encourage you to experiment with routing these logs to external applications or analytical bots. For anyone seeking an expanded feature set, a commercial utility based on this logic is available in the Market.


File Name
Description
MasterLog1.mqh
A reusable logging module used by the Expert Advisor. It provides the logging functionality required by the project.
DynamicSR4.mq5
The main Expert Advisor. It demonstrates the Dynamic Support and Resistance interaction engine presented and serves as the entry point for the accompanying source code.
TradeManager.mqh Implements the trade execution and position management layer. It is responsible for submitting, monitoring, and managing orders generated by the strategy while remaining independent of the decision-making process.
ZoneStrategy.mqh  Implements the trading decision engine. It evaluates qualified supply and demand zones through a sequence of validation filters before generating trade requests that are delegated to the trade manager for execution.
 MQL5.zip An archive with the MQL5 folder as its root, holding all files listed above. Unpack it into the terminal installation directory, and each file will be placed in its correct location: DynamicSR4.mq5 in MQL5\Experts\DynamicSR4\ and MasterLog1.mqh, TradeManager.mqh, and ZoneStrategy.mqh in MQL5\Include\DynamicSR4\ 

Portfolio Correlation and Margin Risk Calculator Portfolio Correlation and Margin Risk Calculator

Computes the historical Pearson correlation between any set of instruments and the combined margin your account would need to hold all of them at once, as a percentage of your equity. Runs natively in MetaTrader 5 with no external libraries, no Python, and no AI — set your symbol list and lot sizes as inputs and it reports the full matrix in the Experts tab and on the chart, refreshing on a timer.

Volume Strength Compass / BhanuCodeLab Volume Strength Compass / BhanuCodeLab

Volume Strength Compass is a volume-analysis indicator for MetaTrader 5 that evaluates market activity using Relative Volume, candle body strength, close position, and volume intensity. The indicator classifies each candle into different volume conditions such as normal volume, low volume, high volume,climax volume, bullish effort, bearish effort, and absorption. The results are displayed using colored volume columns, background highlights, signal labels, an average-volume line, and a real-time dashboard. The indicator can use tick volume, real volume, or automatically select real volume when available. It also supports alerts on either the current live candle or after candle closure.

Value Area Levels / BhanuCodeLab Value Area Levels / BhanuCodeLab

Value Area Levels is a session-based Value Area indicator for MetaTrader 5. It calculates and displays Value Area High, Point of Control, and Value Area Low levels for the developing, previous, and historical profiles.

Footprint XRay (Order Flow Volume Delta) Footprint XRay (Order Flow Volume Delta)

An institutional-grade order flow and footprint chart indicator ported from Pine Script to MQL5. It dynamically deconstructs major timeframe bars using lower timeframe (LTF) historical tick/real volume to compute buy/sell volume delta at each price level. The indicator features automatic timeframe selection, Point of Control (POC) highlighting, Stacked Imbalances, extreme Absorption detection, Unfinished Business (UB) tracking with live mitigation, and real-time alert triggers.