DuoFX Smart Structure MT5
- Göstergeler
-
Dragos Mihai Ofrim
DuoFX Labs: trading tools for MetaTrader 5 and MetaTrader 4
We build the tools we use ourselves: fast, clean and honest about what they do. Every product ships for both MT5 and MT4 from the same code, is tested on live charts before release, and gets updates when traders ask for something. - Sürüm: 1.0
Smart money structure with the rules written down. Closed bars never repaint.
User guide and articles: User guide, Break of structure and change of character explained, with live examples, Order blocks, fair value gaps and liquidity on one chart.
DuoFX Smart Structure draws market structure for smart money concepts (SMC) traders, and every element on your chart follows an exact rule that is printed in this description. Swings, breaks of structure, changes of character, order blocks, fair value gaps, liquidity sweeps, premium and discount: all calculated on closed bars only, so once a bar has closed, what you see on it stays put.
It is free, with every feature and no time limit.
Market structure
- Confirmed swing highs and lows, labelled HH, HL, LH and LL.
- BOS (break of structure) and CHoCH (change of character) drawn the moment a candle closes beyond the swing. A wick is not a break.
- Live structure on the open bar is shown as "BOS up if this bar closes here" with a dotted line, clearly not confirmed yet, so you see it coming without being fooled by it.
Order blocks and fair value gaps with real states
- Every zone carries its state: fresh, tested or partially filled, and invalidated or filled. Hover any zone for its state, prices and the bar it became known on.
- Fresh zones are bold, used zones fade, dead zones end where they died or disappear (your choice).
- Short, clean labels ("OB", "FVG", "H4 OB") that stay out of each other's way.
- Order block zone on the full candle or the body only.
- Optional quality filter: only order blocks whose leg left a fair value gap behind it.
- Minimum gap size in ATR, so the noise stays off your chart on every symbol and timeframe.
Liquidity
- Liquidity sweeps: a wick through a prior swing that closes back inside, marked on the bar that did it.
- Equal highs and equal lows: resting liquidity drawn as a line until price takes it.
- Premium and discount of the current dealing range, with the equilibrium line.
Higher timeframe on your trading chart
- Pick a higher timeframe (H4 by default) and its live order blocks and fair value gaps are drawn as outlined boxes on your chart, labelled with their timeframe.
- Built from real higher-timeframe bars, and a higher-timeframe bar counts only after it has closed. No look-ahead.
- Optional: only alert when the signal agrees with the higher-timeframe bias. Nothing is sent while the higher timeframe is still loading, and a higher timeframe with no break yet has no bias, so it filters nothing.
Dashboard
- One-click layer chips: Swings, OB, FVG, Liquidity and the higher-timeframe zones. Switch a layer off and its objects are gone at once, switch it back on and they return. Your inputs are the defaults, and the chart remembers your choice when you change symbol or timeframe.
- Bias on your chart's timeframe plus up to 4 more (M15, H1, H4 and D1 by default).
- The last BOS or CHoCH on each, and how many bars ago it closed.
- The nearest live order block or fair value gap above and below price, with the distance in price and percent.
- Where price sits in the dealing range: premium, discount, or outside it.
- What the open bar would do if it closed right now.
- The panel sits on top of the chart, top left by default so the newest bars stay clear. Drag it anywhere, collapse it into a slim bar that still shows the bias, dark, light or automatic theme, sharp on standard and high resolution screens. Hover a chip or button to see what it does. It remembers its spot when you switch symbol or timeframe. On a small chart it slims down to the chips and the bias table on its own, and shows everything again when the chart grows.
Alerts
- BOS, CHoCH, new order block, new fair value gap, first touch of a zone, liquidity sweep: each on or off.
- Popup, push notification, email and sound.
- Every event alerts once, when its bar closes. No alerts for old bars when you load the indicator.
- Telegram and Discord alerts with the free DuoFX Alert Relay.
Chart objects and performance
- Closed bars never repaint. Anything that depends on the forming bar is labelled provisional.
- Labels never print on top of each other: when a swing, a sweep, a break and an order block land on the same spot, they stack neatly, and they re-stack as you zoom or scroll.
- Hard cap on chart objects, with separate limits per element, so the chart stays readable.
- Objects are updated in place, and kept when you switch timeframe or change settings, so higher-timeframe zones stay put without flicker.
- Colours for every element, with automatic defaults that look right on dark and light charts.
- Runs on a timer and only recalculates when a bar closes. Light on CPU, even with long history.
- Works on any symbol your broker offers: forex, gold, indices, crypto. No DLLs, no internet connections, nothing to install.
Available for MetaTrader 5 and MetaTrader 4.
How each element is defined
All rules run on closed bars. "Bar i" is a bar that has closed. Calculation starts a set number of bars back (1500 by default) and walks forward one closed bar at a time, so a bar's result is fixed once it closes. The first swings after that starting point are a warm-up, and the starting point is set when the indicator loads (and again, quietly, after a very long run of about 20,000 new bars), so a fresh load can label the oldest few swings differently. With "Hide filled gaps" and "Hide invalidated order blocks" on (the defaults), finished zones are removed from the chart to keep it clean; switch them off to see every zone with the bar where it was filled or invalidated.
- Swing high: a bar whose high is not exceeded by any of the Left bars before it and is strictly above the high of every one of the Right bars after it (swing low mirrored with lows). It is known only when the Right-th bar after it closes, and appears from then on (5 and 3 by default). Labels: HH or LH compared with the previous swing high, HL or LL compared with the previous swing low.
- BOS and CHoCH: a close above the most recent confirmed swing high that has not been broken yet is a bullish break; a close below the most recent unbroken swing low is a bearish break. If the break is against the current structure direction it is a CHoCH, otherwise a BOS. The first break sets the direction. A swing can be broken only once. The line runs from the swing to the breaking bar.
- Open bar (not confirmed): if the current, unfinished bar is beyond the unbroken swing, a dotted line and "BOS up if this bar closes here" (or down, or CHoCH) are shown. They are removed if price comes back, and become a real BOS or CHoCH only if the bar closes beyond the level. No alert is sent for them.
- Fair value gap: three consecutive candles where the low of the third is above the high of the first (bullish), or the high of the third is below the low of the first (bearish). The gap must be at least Min gap size x ATR (ATR = simple average of true range, ATR period bars, at the third candle). It appears when the third candle closes. Fresh until a later bar trades into it, then partially filled, then filled when a later bar reaches its far edge.
- Order block: created when a candle closes for a BOS or CHoCH. For a bullish break, find the lowest low between the broken swing high and the breaking bar (the origin of the move). The order block is the last bearish candle (close below open) at or before that low, searched up to Max bars back candles, never before the broken swing. Bearish order blocks mirror this with the highest high and the last bullish candle. If no such candle exists, there is no order block for that break. The zone is the candle's high to low, or its body. It is drawn from the order block candle, and it becomes known at the close of the breaking bar. Fresh until a later bar trades into it, then tested, then invalidated when a bar closes beyond its far edge (below the zone for bullish, above for bearish). With Only when the leg left a fair value gap on, a gap in the same direction must have formed after the order block candle and no later than the break.
- Liquidity sweep: a bar trades beyond a confirmed swing that no bar has traded beyond yet, and closes back on the near side of it (high above the swing high and close below it, or low below the swing low and close above it). If one bar takes several swings, the farthest one swept is marked. Any swing that is traded through is used up, whether swept or broken.
- Equal highs / lows: a new confirmed swing high within Tolerance x ATR of an earlier swing high that has not been traded through (lows mirrored). Drawn at the outer of the two prices until price trades beyond either swing.
- Dealing range, premium and discount: top = the highest high since the latest confirmed swing high, bottom = the lowest low since the latest confirmed swing low. The midpoint is equilibrium. Above it is premium, below it is discount.
- Higher timeframe: the same rules run on the higher timeframe's own bars. Only live (not filled, not invalidated) higher-timeframe zones are drawn. Their states change when a higher-timeframe bar closes.
- Dashboard bias: the direction of the last BOS or CHoCH on that timeframe. "When" counts bars on that timeframe: the newest closed bar is 1 bar ago.
- Alerts: sent for events on the most recent closed bar of the chart's timeframe, once each.
Settings
- Structure: swing bars before and after, bars calculated per timeframe (up to 20,000 on the chart's timeframe, 5,000 on the others), swing labels on or off and max, BOS and CHoCH on or off, max breaks shown, premium / discount on or off, forming-bar marks on or off
- Fair value gaps: on or off, min size in ATR, ATR period, hide filled gaps, max shown
- Order blocks: on or off, zone (full candle or body), max bars back from the leg origin, only when the leg left a fair value gap, hide invalidated, max shown
- Liquidity: sweeps on or off, equal highs / lows on or off, tolerance in ATR, max shown
- Higher timeframe: zones on or off, timeframe, max zones shown, alerts only in the higher-timeframe bias (none while it loads; no filter while it has no bias yet)
- Alerts: BOS, CHoCH, new fair value gap, new order block, zone touch, sweep; popup, push, email, sound, sound file, send to DuoFX Alert Relay (off by default)
- Dashboard: on or off, bias timeframes (up to 4), corner (top left by default), offsets, theme, font, font size, start minimised. The layer inputs (swing labels, order blocks, fair value gaps, sweeps and equal highs / lows, higher-timeframe zones) set where the panel's chips start.
- Colours: bullish and bearish structure, order blocks, fair value gaps, sweeps, equal highs / lows, premium, discount, swing labels (None = automatic for dark or light charts)
- Chart objects: max objects (hard cap), extend live zones by N bars, label font and size
Disclaimer: Trading forex and CFDs is high risk and markets can move fast. This indicator is a market analysis tool for educational and informational purposes only. It is not financial advice and does not guarantee results. Past performance does not indicate future results.
