🔢 Omega Order Block SMC – Easy-to-Read Inputs Setup Guide
Omega Order Block SMC is a MetaTrader 5 Smart Money Concepts indicator that analyses internal and swing market structure, BOS, CHoCH, Order Blocks, Fair Value Gaps, Equal Highs/Lows, Strong/Weak levels, Premium/Discount zones, and higher-timeframe structure.

🔢 Installation
⚙️ Install the Indicator
🔹 Open MetaTrader 5 → File → Open Data Folder.
🔹 Go to MQL5 → Indicators and copy the indicator file into this folder. Use the .ex5 file, or .mq5 if the source code is provided.
🔹 If using the .mq5 source, open it in MetaEditor with F4 and press F7 to compile.
🔹 Return to MetaTrader 5, right-click Indicators in the Navigator, and select Refresh.
⚙️ Allow DLL Imports
🔹 Open Tools → Options → Expert Advisors and enable Allow DLL imports.
🔹 The licence check, Telegram alerts, and WEB / TELEGRAM dashboard buttons require Windows system libraries including wininet.dll and shell32.dll.
🔹 When attaching the indicator, also make sure Allow DLL imports is enabled on the indicator's Dependencies / Common tab.
🔹 No address needs to be added to the Allow WebRequest for listed URL section because the indicator connects through Windows directly.
⚙️ Attach the Indicator
🔹 Open the symbol and timeframe to analyse.
🔹 Drag Omega Order Block SMC from the Navigator onto the chart.
🔹 Enter the licence key into InpLicenseKey.
🔹 Adjust other Inputs as required.
🔹 Click OK. The indicator verifies the licence, calculates the available history, and draws the dashboard.
🔹 A Licence OK message should appear in the Experts tab.
⚙️ Minimum History
🔹 The chart requires at least 2 × SwingLen + AtrLen + 10 bars.
🔹 With the default settings, this equals 124 bars.
🔹 If a new chart has insufficient history, scroll left or wait for MetaTrader 5 to download additional market data.
⚙️ Change Settings Later
🔹 Press Ctrl+I, select Omega Order Block SMC, and click Edit.
🔹 Settings can also be accessed by double-clicking an indicator object.
🔹 Changing Inputs restarts the indicator and recalculates the analysis.
🔹 Use Save in the Inputs tab to store a .set file and Load to reuse the configuration on another chart.
🔢 General & Licence
🔹 Bars to calculate (0 = all) - keeps scrolling fast [MaxBarsCalc] — Default: 3000 — Controls how many recent bars are analysed. Structure, Order Blocks, and FVGs are calculated only inside this window. Recommended: 2000–5000.
🔹 Setting 0 analyses the entire available chart history, which can increase loading time on long histories.
🔹 Lower MaxBarsCalc, such as 1500, can help on slower computers or when many charts are open.
🔹 Licence key from eafxstore.com [InpLicenseKey] — Default: (empty) — Stores the personal licence key received from eafxstore.com. Leading and trailing spaces are removed automatically and letters are converted to uppercase.
🔹 An empty InpLicenseKey causes the indicator to stop and display “Please enter your licence key.”
🔹 The licence is checked online at startup and approximately every 30 minutes.
🔹 The licence is linked to the trading account. Switching to another account triggers another licence check.
🔹 If the licence server cannot be reached, the indicator normally continues working for a grace period of approximately 72 hours after the last successful check.
Licence Messages
🔹 Licence OK · valid until YYYY-MM-DD — The licence is active until the displayed date.
🔹 Licence OK · lifetime — The licence is active without a displayed expiry date.
🔹 Please tick “Allow DLL imports”… — DLL permission is not enabled.
🔹 Cannot reach the licence server — Check the internet connection and firewall.
🔹 System clock check failed — Check and correct the Windows date and time.
🔢 Structure
🔹 internal structure length [InternalLen] — Default: 5 — Defines the number of bars on each side used to identify internal short-term swing points. Internal breaks are displayed as thin dotted lines and create internal Order Blocks (iOB). Recommended: 5.
🔹 Smaller values such as 3–4 produce more frequent and faster internal signals but also more noise.
🔹 Larger values such as 7–10 produce fewer signals and require later confirmation.
🔹 Cau truc swing / swing structure length [SwingLen] — Default: 50 — Defines the number of bars on each side used to identify major swing points. Swing breaks are displayed as thick solid lines and create swing Order Blocks (OB). Recommended: 50.
🔹 Values around 30–40 make the main structure react faster.
🔹 SwingLen should remain clearly larger than InternalLen.
🔹 SwingLen also determines the minimum historical data required by the indicator.
🔹 internal BOS-CHoCH [ShowInternal] — Default: true — Shows or hides internal BOS and CHoCH lines and labels. Internal structure continues to be calculated even when the drawings are hidden.
🔹 Set to false when a cleaner chart is preferred, especially on higher timeframes.
🔹 Ve BOS/CHoCH swing [ShowSwing] — Default: true — Shows or hides swing BOS and CHoCH lines and labels. Swing structure continues to be calculated when hidden.
🔹 BOS/CHoCH lines kept on chart (0 = unlimited) [MaxBreaks] — Default: 300 — Controls the maximum number of BOS and CHoCH lines retained on the chart. Older lines and labels are removed when the limit is reached. Recommended: 200–500.
🔹 Setting 0 keeps all BOS/CHoCH lines, which can make the chart heavier during long sessions.
🔹 ATR [AtrLen] — Default: 14 — Defines the Average True Range period used as a volatility reference for minimum FVG size, Equal High/Low tolerance, higher-timeframe FVGs, and dashboard proximity calculations. Recommended: 14.
🔢 Order Block
🔹 An Order Block is created when market structure breaks. For a bullish break, the indicator identifies the candle with the lowest low between the previous swing low and the breaking candle.
🔹 For a bearish break, the indicator identifies the candle with the highest high between the previous swing high and the breaking candle.
🔹 An Order Block is removed when a candle closes beyond its far edge.
🔹 OB noi / internal OB [ShowIntOB] — Default: true — Shows Order Blocks created by internal structure breaks. They are labelled iOB and use a darker colour. Recommended: true for lower-timeframe precision entries.
🔹 Set to false when the chart becomes crowded and only swing Order Blocks are required.
🔹 OB swing [ShowSwingOB] — Default: true — Shows Order Blocks created by major swing breaks. They are labelled OB and use a brighter colour. These represent the more significant Order Block zones.
🔹 OBs shown per type & side [MaxOB] — Default: 5 — Controls how many recent unmitigated Order Blocks are displayed for each type and direction. With 5, up to 20 boxes can appear on the chart. Recommended: 3 for scalping and 5 for other styles.
🔹 This setting affects only the visual display. All Order Blocks continue to be tracked internally.
🔹 wick or body (false) [OBUseWick] — Default: false — Controls whether Order Blocks use the candle body or the complete wick range.
🔹 false uses body mode, creating tighter Order Block zones.
🔹 true uses wick mode, covering the complete candle range and creating wider zones.
🔹 Recommended: false for more precise entries; true when price frequently wicks through Order Block zones.
🔢 Zones
🔹 Fair Value Gap [ShowFVG] — Default: true — Detects and draws three-candle Fair Value Gaps. A bullish FVG occurs when candle 3 low is above candle 1 high and candle 2 closes above that high, with the opposite condition for bearish FVGs.
🔹 An FVG is removed when price touches its far edge.
🔹 Up to 12 recent open FVGs are displayed.
🔹 min FVG size (xATR) [FvgMinATR] — Default: 0.2 — Defines the minimum FVG size as a multiple of ATR. For example, with an ATR of 10 pips and a value of 0.2, only gaps of at least 2 pips are retained. Recommended: 0.3–0.5 on M1–M5 or volatile symbols; 0.1–0.2 on H4–D1.
🔹 Higher values produce fewer but larger FVGs.
🔹 Lower values detect more and smaller FVGs.
🔹 The setting also applies to higher-timeframe FVGs.
🔹 extension bars [FvgExtend] — Default: 30 — Controls how many bars to the right an FVG box is extended. FVGs older than 4 × FvgExtend are no longer displayed even if they remain open. Recommended: 20–50.
🔹 Equal highs / lows [ShowEQ] — Default: true — Detects and marks Equal Highs (EQH) and Equal Lows (EQL). These are swing points located at nearly the same price and are displayed as dotted lines.
🔹 EQH/EQL levels can act as liquidity pools. A line is removed when a candle closes beyond it.
🔹 tolerance EQH/EQL (xATR) [EqTolATR] — Default: 0.1 — Defines the maximum price difference between two swing points for them to qualify as equal. Recommended: 0.1.
🔹 Increasing the value to around 0.15–0.25 detects more equal levels.
🔹 Reducing it to 0.05 requires a much closer price match.
🔹 Strong / Weak High-Low [ShowStrongWeak] — Default: true — Labels current swing highs and lows as Strong or Weak according to the current trend.
🔹 In a bullish trend, the swing low is Strong and the swing high is Weak.
🔹 In a bearish trend, the swing high is Strong and the swing low is Weak.
🔹 Weak points are typical price targets, while strong points are typical stop locations.
🔹 Premium / Discount zones [ShowPD] — Default: true — Draws the Premium zone, Discount zone, and Equilibrium line at 50% of the swing range.
🔹 The dashboard continues to display the price position inside the range even when the visual zones are disabled.
🔢 Multi-Timeframe
🔹 The indicator can overlay higher-timeframe Order Blocks, FVGs, and trend information onto the current chart.
🔹 HTF zones are displayed as dashed boxes, with blue representing bullish zones and orange representing bearish zones.
🔹 Only closed higher-timeframe candles are used.
🔹 Higher-timeframe structure uses a fixed pivot length of 5 HTF bars.
🔹 Khung lon / higher timeframe (OFF = off) [MtfPeriod] — Default: MTF_H4 — Selects the higher timeframe used for HTF Order Blocks, FVGs, and trend information.
🔹 Available values are MTF_OFF, MTF_M15, MTF_M30, MTF_H1, MTF_H4, and MTF_D1.
🔹 The selected timeframe must be higher than the current chart timeframe. For example, selecting H1 on an H4 chart has no effect.
🔹 Recommended combinations: M1–M5 → M15/H1; M15 → H1/H4; H1 → H4; H4 → D1; D1 → OFF.
🔹 MTF_OFF also removes the higher-timeframe component from the SMC Score.
🔹 HTF bars [MtfBars] — Default: 300 — Defines how many higher-timeframe bars are analysed. At least 30 bars are required. Recommended: 200–500.
🔹 Higher values allow older HTF zones to be detected but require slightly more processing when a new HTF candle opens.
🔹 HTF OBs per side [MtfMaxOB] — Default: 3 — Defines the maximum number of higher-timeframe Order Blocks displayed on each side, bullish and bearish. Recommended: 2–3.
🔹 HTF FVGs are not limited by this setting.
🔹 HTF FVG [MtfFVG] — Default: true — Enables higher-timeframe Fair Value Gap detection and drawing.
🔹 Set to false when only higher-timeframe Order Blocks are required.
🔢 Appearance
🔹 Giao dien chart / Chart theme [Theme] — Default: THEME_DARK — Controls the chart background, grid, candles, and price-line colours.
🔹 THEME_NONE keeps the existing chart colours.
🔹 THEME_DARK uses a dark grey theme.
🔹 THEME_MIDNIGHT uses a deep navy theme.
🔹 THEME_LIGHT uses a white background with a grid.
🔹 The theme also switches the chart to candlesticks and hides period separators.
🔹 Recommended: THEME_DARK or THEME_MIDNIGHT for the intended zone colour contrast.
🔹 Restore colors on remove [RestoreTheme] — Default: true — Restores the chart colours that were active before the indicator was attached. Recommended: true.
🔹 Set to false if the applied theme should remain after removing the indicator.
🔹 font size [LabelFont] — Default: 8 — Controls the size of chart labels including BOS, CHoCH, OB, FVG, EQH/EQL, Strong/Weak, and Premium/Discount labels. Recommended: 8; use 9–10 on high-resolution screens.
🔢 Dashboard
🔹 Show dashboard [ShowDash] — Default: true — Shows or hides the information panel. Chart drawings and alerts continue working when the panel is hidden.
🔹 Anchor right (false = left) [DashRight] — Default: false — Places the dashboard from the left edge when false or from the right edge when true.
🔹 X offset (px) [DashX] — Default: 10 — Controls the horizontal distance from the selected chart edge.
🔹 Y offset (px) [DashY] — Default: 28 — Controls the vertical distance from the top of the chart.
🔹 ratio panel / Panel scale (tu co khi chart nho) [DashScale] — Default: 1.5 — Controls the dashboard size. 1.0 is the base size and 1.5 is 50% larger. The panel automatically shrinks on small charts. Recommended: 1.2–1.5 on Full HD, 1.5–2.0 on 4K, and 1.0 when several charts are tiled.
🔹 The panel automatically stays within approximately 45% of the chart width and available chart height, with a minimum scale of 0.55.
🔹 Font adjust (0.8 - 1.3) [DashFontAdj] — Default: 1.0 — Adjusts dashboard text size without changing its layout. Recommended: 0.9 when text looks crowded or 1.1–1.2 when text looks too small.
🔹 Move Dashboard — Click and hold the dashboard header, then drag it to the desired position.
🔹 The manually selected position is remembered for that chart, even after restarting MetaTrader 5.
🔹 After manually moving the dashboard, DashRight, DashX, and DashY are ignored for that chart.
🔹 To restore the input-based position, open F3 → Global Variables and delete variables beginning with OMSMC_DASH.
🔢 Alerts
🔹 Alerts are divided into channels and events. An enabled event is delivered through every enabled alert channel.
🔹 Alerts are generated only for live closed bars and are not triggered for historical events when the indicator loads.
⚙️ Alert Channels
🔹 Popup [AlertPopup] — Default: true — Displays the standard MetaTrader alert window with a sound.
🔹 Push notification (MetaQuotes ID) [AlertPush] — Default: false — Sends alerts to the MetaTrader mobile application. The MetaQuotes ID must be configured under Tools → Options → Notifications. Recommended: true when mobile alerts are required.
🔹 Am thanh / Sound [AlertSoundOn] — Default: false — Plays the selected sound file when an alert is triggered.
🔹 AlertSoundFile [AlertSoundFile] — Default: alert.wav — Defines the .wav file played by the indicator. The file must be located in the MetaTrader installation's Sounds folder.
⚙️ Alert Events
🔹 BOS / CHoCH (swing) [AlertStructure] — Default: true — Alerts when a swing-level break occurs and identifies the event as BOS continuation or CHoCH trend change.
🔹 BOS / CHoCH (noi / internal) [AlertInternal] — Default: false — Alerts when internal structure breaks occur. Internal breaks can be frequent on lower timeframes. Recommended: false by default; consider true on H1+ or when internal CHoCH is used as an entry trigger.
🔹 price enters an OB [AlertOB] — Default: true — Alerts when price enters an unmitigated swing Order Block from outside. A maximum of one OB alert is generated per bar.
🔹 Internal and HTF Order Blocks do not trigger this particular alert.
🔹 new FVG [AlertFVG] — Default: false — Alerts when a new Fair Value Gap is detected. This can generate frequent alerts on lower timeframes.
🔹 When enabling it, increasing FvgMinATR can reduce the number of FVG alerts.
🔹 HTF events [AlertMTF] — Default: true — Alerts when the higher timeframe records a new BOS/CHoCH event or changes trend.
🔹 HTF events are checked whenever a new higher-timeframe candle opens.
🔹 AlertMTF has no effect when MtfPeriod = MTF_OFF.
🔢 Telegram
🔹 Gui Telegram / Send to Telegram (Allow DLL imports) [TgEnable] — Default: false — Sends every enabled alert to Telegram and displays a TEST TG button in the dashboard footer when enabled.
🔹 Telegram messages are queued and sent in the background at approximately one message per second, with up to 20 waiting messages.
🔹 Bot token (tu @BotFather) [TgToken] — Default: (empty) — Stores the Telegram bot token created through @BotFather.
🔹 Chat ID [TgChatID] — Default: (empty) — Defines the destination personal chat, group, or channel.
🔹 Personal chat IDs are normally positive numbers, while group and channel IDs usually begin with -100.
Telegram Setup
🔹 Open Telegram and contact @BotFather.
🔹 Send /newbot and follow the instructions.
🔹 Copy the generated bot token into TgToken.
🔹 Open the new bot chat and press Start.
🔹 For a group, add the bot to the group. For a channel, add the bot as an administrator.
🔹 Obtain the Chat ID using a suitable method such as @userinfobot, or through Telegram's getUpdates method after sending a message to the bot.
🔹 Enter the Chat ID into TgChatID.
🔹 Set TgEnable = true and click OK.
🔹 Click TEST TG in the dashboard footer.
🔹 A successful test displays “Telegram: test message sent!”.
🔹 If the test fails, check the Experts tab for the exact error.
🔹 Keep the Telegram bot token private. Anyone with access to the token can send messages through the bot.
🔢 Quick Setup Presets
⚙️ Scalping
🔹 InternalLen — Recommended: 3–4 — Detects internal structure more quickly.
🔹 SwingLen — Recommended: 30–40 — Makes the main structure react faster while remaining larger than InternalLen.
🔹 MaxOB — Recommended: 3 — Keeps fewer Order Block boxes on the chart.
🔹 FvgMinATR — Recommended: 0.3–0.5 — Filters smaller FVGs, particularly on volatile symbols.
🔹 MtfPeriod — Recommended: MTF_M15 or MTF_H1 — Provides higher-timeframe context for M1–M5 charts.
⚙️ Intraday
🔹 InternalLen — Recommended: 5 — Balanced internal structure detection.
🔹 SwingLen — Recommended: 50 — Maintains the default main structure.
🔹 MaxOB — Recommended: 5 — Keeps more recent Order Blocks visible.
🔹 FvgMinATR — Recommended: 0.2–0.3 — Provides balanced FVG detection.
🔹 MtfPeriod — Recommended: MTF_H1 or MTF_H4 — Provides higher-timeframe context.
⚙️ Swing Trading
🔹 InternalLen — Recommended: 5–7 — Reduces short-term internal noise.
🔹 SwingLen — Recommended: 50 or higher — Focuses on larger market structure.
🔹 FvgMinATR — Recommended: 0.1–0.2 — Suitable for higher-timeframe FVG detection.
🔹 MtfPeriod — Recommended: MTF_D1 for H4 charts — Provides higher-timeframe structure.
⚙️ Cleaner Chart
🔹 ShowInternal — Recommended: false — Hides internal BOS/CHoCH drawings while keeping the calculations active.
🔹 ShowIntOB — Recommended: false — Hides internal Order Blocks.
🔹 MaxBreaks — Recommended: 200 — Limits historical structure lines.
🔹 MaxOB — Recommended: 3 — Reduces the number of visible Order Block boxes.
🔹 LabelFont — Recommended: 8 — Maintains compact chart labels.









