Easy SMC Structure: user guide and iCustom buffers

24 November 2026, 19:40
Gheis Mohammadi
0
12

This is the user guide for Easy SMC Structure, a MetaTrader 5 indicator for Smart Money Concepts: market structure (BOS/CHoCH), order blocks, fair value gaps, liquidity, premium/discount and previous day/week levels. The first part explains how to read the chart, the second how to use the indicator in an Expert Advisor.

1. Closed bars only

Each bar is calculated once, when it closes, and never changes afterwards. Two consequences:

  • A swing point needs N bars on its right side to be confirmed (N = pivot strength). Its label appears N bars later, on the bar where it was confirmed. Nothing is drawn in hindsight.
  • A structure break is reported on the bar that closes beyond the level. A wick through a level is not a break; with the liquidity option it is marked as a sweep instead.

So what you see in history is what you would have seen live.

2. Reading the chart

  • Swing and internal structure: two pivot strengths (default 20 and 5). Swing structure gives the main trend, internal structure the smaller moves inside it. BOS = a break in the direction of the trend, CHoCH = the first break against it.
  • HH / HL / LH / LL: the swing points, coloured by meaning (higher highs and higher lows in the bullish colour).
  • Order blocks: for a bullish break, the candle with the lowest low between the broken swing high and the break. Removed when a candle closes below it (or, if selected, when a wick trades through it).
  • Fair value gaps: three-candle gaps of at least the set size in ATR. Removed when filled (or touched, if selected).
  • Equal highs/lows and sweeps: where liquidity rests, and where it was taken.
  • Premium / equilibrium / discount: narrow bands at the top, middle and bottom of the current swing range.
  • PDH/PDL, PWH/PWL: previous day and week high and low.

3. Settings that matter most

  • Pivot strength: higher values give fewer, more important swing points. Try 20/5 on M15-H1, 10/3 on M1-M5, 50/10 on H4-D1.
  • Number of zones kept: the newest N order blocks and gaps per direction. Lower values keep the chart clean.
  • Fair value gap minimum size (in ATR): raise it to hide small gaps.
  • Bars to draw: labels and zones are drawn for the last 1500 bars by default. The calculation always uses the whole history.
  • Alerts: each event type can be switched on separately (popup, push, sound). Alerts come once, when the bar closes.

4. Using it in an Expert Advisor

All results are in buffers. Read them with CopyBuffer at shift 1 (the last closed bar):

  • 0: swing event (+1 bullish BOS, +2 bullish CHoCH, -1 bearish BOS, -2 bearish CHoCH, 0 none)
  • 1: swing trend (+1, -1, 0 = not defined yet)
  • 2, 3: internal event and internal trend
  • 4, 5 / 6, 7: top and bottom of the newest active bullish / bearish order block
  • 8, 9 / 10, 11: top and bottom of the newest unfilled bullish / bearish fair value gap
  • 12: liquidity sweep (+1 sell-side swept, -1 buy-side swept)
  • 13: close position in the swing range, 0 to 100

Empty zones are EMPTY_VALUE. Example:

int h = iCustom(_Symbol, _Period, "Market\\Easy SMC Structure"); // default inputs

void OnTick()
  {
   double ev[1], trend[1], obTop[1], obBot[1];
   if(CopyBuffer(h, 0, 1, 1, ev) != 1 || CopyBuffer(h, 1, 1, 1, trend) != 1) return;
   if(ev[0] == 2)
      Print("bullish CHoCH on the last closed bar");
   if(CopyBuffer(h, 4, 1, 1, obTop) == 1 && CopyBuffer(h, 5, 1, 1, obBot) == 1 && obTop[0] != EMPTY_VALUE)
      PrintFormat("newest bullish order block: %.5f - %.5f", obBot[0], obTop[0]);
  }

To pass your own inputs, pass all of them in order. Note that in MQL5 each input group heading also counts as one string parameter, so pass "" in its place.

5. Strategy Tester

The free demo runs in the Strategy Tester in visual mode. Running it bar by bar is a good way to see that labels and zones appear only when their bar closes.

Questions are welcome in the comments of the product page.