Smart Money Concepts MT5 — BOS / CHoCH structure, Order Blocks, Equal Highs/Lows, Fair Value Gaps, Premium & Discount zones.
MT5 adaptation of the Majid



"Smart Money Concepts" Pine Script. Free for non-commercial use, with the original credit and license kept.
WHAT IT DOES
- Real-time Internal structure — BOS and CHoCH lines with labels (5-bar pivots), with bullish/bearish filters and optional confluence.
- Real-time Swing structure — BOS and CHoCH lines with labels (50-bar pivots), optional swing points (HH / HL / LH / LL) and Strong / Weak High / Low lines.
- Order Blocks — internal and swing Order Blocks with ATR or cumulative mean range filter, mitigation by close or by high/low. Mitigated blocks are removed automatically, with an optional alert on breakout.
- Equal Highs / Lows — EQH / EQL detection with adjustable bars and threshold.
- Fair Value Gaps — optional FVG detection with auto threshold and extend setting.
- Highs & Lows MTF — optional previous Daily, Weekly and Monthly High/Low lines.
- Premium & Discount zones — optional Premium, Equilibrium and Discount zones from the trailing range.
- Alerts — optional popup, push and email alerts for BOS / CHoCH, Order Block breakouts, EQH / EQL and FVG.
MODES
- Historical or Present mode, Colored or Monochrome style, optional candle colouring.
INPUTS (groups)
- Smart Money Concepts: Mode, Style, Color Candles
- Real Time Internal Structure: show, filters, colours, confluence, label size
- Real Time Swing Structure: show, filters, colours, label size, swing points, length, Strong/Weak
- Order Blocks: internal/swing show and count, filter, mitigation, colours
- Equal Highs / Lows: show, bars, threshold, label size
- Fair Value Gaps: show, auto threshold, timeframe, colours, extend bars
- Highs & Lows MTF: Daily / Weekly / Monthly show, style, colour
- Premium & Discount Zones: show, colours
- Alerts: enable, popup, push, email
INSTALLATION
1. Copy Majid_ul_Hassan_SMC_v1.12.mq5 to your MQL5 / Indicators folder.
2. Compile it in MetaEditor (F7) — 0 errors.
3. Attach it to any chart from the Navigator. Works on any symbol and timeframe.
NOTES
- Structure lines and Order Blocks are drawn from confirmed pivots, so history is stable.
- Default settings show internal + swing structure and internal Order Blocks; FVG, MTF lines and Premium/Discount zones are off by default — turn them on in the Inputs if you want them.
- Validate the behaviour on a demo chart before relying on it for live trading.
MT5 port / adaptation: Majid ul Hassan.
Shared under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0).