Supply and demand zones on Gold (XAUUSD), EURUSD or any chart, built from confirmed swing highs and lows. Each swing high opens a supply zone and each swing low a demand zone, with a height of ATR times a factor you choose, so the zones stay in proportion on any symbol and timeframe.
Every zone keeps a count of how many times price came back into it, so the label reads fresh or tested 1x, 2x, 3x, and the color dims once it is tested. A close through the zone breaks it and removes it. Overlapping zones of the same side merge into one, and only the most recent ones per side stay on the chart.
A swing needs N closed candles on its right before it exists, so a zone shows up with that delay. The zones are rebuilt once per closed bar, not on every tick. This is a mechanical swing and ATR model: no volume, no order flow, no imbalance logic. Use it as a map of reaction areas, not as an entry signal by itself.
Zones
Display
Alerts
Indicator settings
Run it on XAUUSD, EURUSD, GBPUSD, US30, NAS100 or BTCUSD and compare the zone factor that fits each one: 0.5 is tight for gold on M15, while indices often read better at 0.8 or 1.0. Put it next to my Smart Money Concepts BOS CHoCH indicator and look at where a CHoCH happens inside a fresh demand or supply zone. Then manage the trade with my Partial Close Multi TP Manager, putting the first take profit at the edge of the opposite zone. If you write EAs, buffer 4 is a ready made filter: only buy when it reads -1, only sell when it reads 1. The zone builder is one function you can copy into your own code.
Based on the idea of the Shved Supply and Demand indicator from the MQL5 Code Base, rewritten from scratch for MT5.
Open source. Use it as it is, adapt it, build your own version on top of it.
New versions and new tools are announced first on my MQL5 channel: /en/channels/xander
Questions, suggestions and your own backtests are welcome in the Xander Lab group: /en/messages/02eec85e4364dd01
More tools on my profile: /en/users/09151993a
Provided as is, use at your own risk.
Copula: Gaussian, Student t, Clayton, Gumbel and Frank copulas with tail dependence
Fits five bivariate copulas on ranks, with Kendall's tau, tail dependence, the probability of joint extreme days, AIC and the conditional probabilities of pairs trading.
ChangePoint: Bayesian online change point detection
Online detection of changes in the mean or volatility (Adams-MacKay): probability of a change in the last k bars, current segment length, forecast, and an indicator.
Daily Loss Guard
Closes all trades when your daily loss reaches your limit.
Session Range and Spread
Draws Asia, London and New York session high/low boxes with each session's range in pips or price, plus a live spread and open-sessions panel.