Easy SMC Structure
- Indicatori
- Versione: 1.0
- Attivazioni: 10
Easy SMC Structure draws Smart Money Concepts on your MetaTrader 5 chart: market structure (BOS and CHoCH), order blocks, fair value gaps, equal highs/lows, liquidity sweeps, premium/discount zones and previous day/week levels. Everything is calculated on closed bars, so the history you study is exactly what the indicator showed in real time. Every result is also available in buffers for Expert Advisors.
What it shows
- Market structure at two levels: swing structure (default pivot strength 20) and internal structure (default 5). A break of a swing point by a candle close is labelled BOS when it continues the trend and CHoCH when it changes it. Swing points are labelled HH, HL, LH and LL.
- Order blocks created at every structure break: the candle with the extreme low (bullish) or high (bearish) of the move that broke the level. A block is removed when a candle closes through it (or, if you prefer, when a wick trades through it).
- Fair value gaps: three-candle imbalances with a minimum size measured in ATR, removed when price fills the gap (or when price touches it, selectable).
- Liquidity: equal highs and equal lows (internal pivots within a tolerance in ATR) and sweeps, where a wick runs above a swing high or below a swing low and the candle closes back inside.
- Premium, equilibrium and discount of the current swing range.
- Previous day and previous week high/low.
No repaint
Each bar is calculated once, when it closes. Labels, zones and buffer values of closed bars never change afterwards. Swing points need N bars on the right side to be confirmed, so a swing label appears N bars after the swing itself, and a structure break is reported on the bar that closes through the level. We tested this by recording every buffer value of every bar at the moment it closed during long Strategy Tester runs (seven symbol/timeframe/setting combinations, M1 to D1, up to 655,000 bars) and comparing them with a fresh calculation over the full history: no value differed.
Alerts (on bar close): swing BOS/CHoCH, internal BOS/CHoCH, price entering an order block, new fair value gap, liquidity sweep, equal highs/lows. Popup, push notification or sound.
For Expert Advisor developers
All results are in buffers (read them with iCustom and CopyBuffer; use shift 1 for 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 bullish, -1 bearish, 0 not defined yet)
- 2: internal event (same codes)
- 3: internal trend
- 4, 5: top and bottom of the newest active bullish order block
- 6, 7: top and bottom of the newest active bearish order block
- 8, 9: top and bottom of the newest unfilled bullish fair value gap
- 10, 11: top and bottom of the newest unfilled bearish fair value gap
- 12: liquidity sweep (+1 sell-side liquidity swept, -1 buy-side liquidity swept)
- 13: position of the close inside the swing range, 0 to 100 (50 = equilibrium)
Empty zone values are EMPTY_VALUE. Example: int h = iCustom(_Symbol, _Period, "Market\\Easy SMC Structure"); uses the default inputs. To pass your own inputs, pass all of them in order; each input group heading counts as one string parameter (pass "").
Settings
Pivot strength for swing and internal structure, what to show, number of zones kept, mitigation rule for order blocks, minimum size and fill rule for fair value gaps, equal high/low tolerance, colors, label font size, number of bars to label, and alerts.
Notes
- Works on any symbol and timeframe. The calculation uses the whole chart history; labels are drawn for the last 1500 bars by default to keep the chart fast.
- Smart Money Concepts are a way to read price structure. The indicator shows the structure; it does not predict the market and it does not trade.
- The free demo runs in the Strategy Tester in visual mode, so you can watch the structure form bar by bar before you buy.
