📦 SMC OrderBlock Entry Engine — Consumer Information
SMC ORDER BLOCKS NON-REPAINTING METATRADER 5 RULE-BASED BOS CONFIRMATION
Welcome to the official person information for SMC OrderBlock Entry Engine — an expert Sensible Cash Ideas (SMC) indicator for MetaTrader 5 that routinely identifies legitimate institutional order blocks , confirms them with a Break of Construction (BOS), checks for liquidity sweep confluence, and solely fires an entry sign after a strict affirmation candle. Each arrow you see has earned its place by a verified 4-step logic chain.
- Set up
- What Is an Order Block? (SMC Primer)
- How the 4-Step Logic Chain Works
- All Enter Parameters Defined
- What You See on the Chart
- Step-by-Step Buying and selling Situations
- Beneficial Settings by Buying and selling Type
- Frequent Errors
1️⃣ Set up
📥 Putting in from MQL5 Market (Compiled Model)
| 1 | Log in to your MQL5 account inside MetaTrader 5 (backside toolbar → MQL5.group). |
| 2 | Go to Instruments → MetaQuotes Language Editor — or press F4 . |
| 3 | In MetaEditor, open the Navigator panel on the left. Discover Indicators . |
| 4 | The bought indicator seems routinely beneath Market → Bought . Proper-click → Set up . |
| 5 | Return to MT5. Open any chart. Proper-click → Insert → Indicators → Customized → SMC OrderBlock Entry Engine . |
| 6 | The inputs dialogue opens. Configure your settings (see Part 4) and click on OK . |
| 7 | ✅ The indicator hundreds. Order block rectangles and indicators seem on the chart instantly. |
💡 Beneficial Chart Setup
Apply this indicator to an M15 or M30 chart for intraday entries. Use H1 or H4 for swing buying and selling setups. Set InpHTF to 1 timeframe above your chart timeframe for the bias filter.
2️⃣ What Is an Order Block? (SMC Primer)
In Sensible Cash Ideas, an Order Block (OB) is the final opposing candle earlier than a powerful impulsive transfer that breaks market construction. It represents the value degree the place institutional merchants — banks, hedge funds, and liquidity suppliers — positioned their authentic orders. When value returns to that zone, good cash is prone to defend it once more.
| Kind | What It Appears to be like Like | What It Means |
|---|---|---|
| 🟩 Bullish OB | Final bearish candle earlier than a powerful bullish impulse that breaks a swing excessive | Institutional purchase orders positioned right here. Worth returning = potential lengthy entry zone |
| 🟥 Bearish OB | Final bullish candle earlier than a powerful bearish impulse that breaks a swing low | Institutional promote orders positioned right here. Worth returning = potential quick entry zone |
🧠 Key Perception
Not all OBs are equal. This indicator solely marks OBs that meet ALL of the next: the previous impulse is powerful (above ATR threshold), the impulse breaks precise market construction (BOS), and optionally a previous liquidity sweep has occurred. This eliminates nearly all of weak, unreliable zones proven by fundamental OB indicators.
3️⃣ How the 4-Step Logic Chain Works
Each bullish or bearish entry arrow you see on the chart has handed by all 4 of those steps in sequence. If any step fails, no sign is proven.
| Step | Rule | Why It Issues |
|---|---|---|
| 1️⃣ Detect OB | Discover the final opposing candle earlier than an impulse the place: candle physique > N × ATR AND impulse breaks a swing excessive/low | Ensures solely impulse-driven OBs are marked — not random candles |
| 2️⃣ Verify BOS | Bullish: impulse should shut above prior swing excessive. Bearish: shut under prior swing low | Confirms the market has modified path, not simply pushed quickly |
| 3️⃣ Liquidity Sweep | Verify if a close-by equal excessive/low was swept (wick past degree, shut again inside) earlier than the OB fashioned | Institutional entries are virtually all the time preceded by a stop-hunt sweep |
| 4️⃣ Entry Affirmation | Worth returns to OB zone + one in all: Rejection wick, Engulfing candle, or Construction shift (configurable) | Prevents getting into OBs that value slices straight by with out reacting |
4️⃣ All Enter Parameters Defined
🔷 Order Block Detection
| Enter | Default | What It Does | Impact If You Change It |
|---|---|---|---|
| InpSwingLookback | 10 | What number of bars again the indicator scans to discover a swing excessive/low for BOS detection. | ⬆️ Increase to fifteen–20 for swing buying and selling (main swings solely). ⬇️ Decrease to five–7 for scalping (extra OBs). |
| InpImpulseATRMult | 1.5 | The impulse candle’s physique should be not less than this a number of of the ATR to qualify. Filters out weak strikes. | ⬆️ Increase to 2.0 for less than the strongest impulse OBs. ⬇️ Decrease to 1.0 for extra OBs (decrease high quality). |
| InpATRPeriod | 14 | Interval for Common True Vary calculation utilized in impulse detection and SL sizing. | Maintain at 14 (business customary). Decrease = sooner ATR response. Increased = smoother. |
| InpOBMaxAge | 200 | An OB is routinely invalidated and eliminated after this many bars with out value returning. | ⬆️ Maintain longer if swing buying and selling. ⬇️ Decrease to 50–80 for intraday to auto-clean stale zones. |
| InpShowInvalidOBs | false | When true, expired or mitigated OBs keep seen as gray zones for historic reference. | Set true for backtesting/assessment. Maintain false for dwell buying and selling — cleaner chart. |
🔷 Entry Settings
| Enter | Default | What It Does | Impact If You Change It |
|---|---|---|---|
| InpEntryMode | CONSERVATIVE | CONSERVATIVE waits for a affirmation candle to completely shut earlier than signalling. AGGRESSIVE locations a restrict order on the OB midpoint. | Conservative = safer, could get a barely worse value. Aggressive = higher value, increased probability of no fill if OB isn’t touched. |
| InpConfirmType | ANY | Which candle affirmation is required when value returns to the OB: WICK (rejection), ENGULF (engulfing), LTF_BOS (3-bar construction shift), or ANY (first one which qualifies). | WICK = good for wicky markets. ENGULF = stronger candle affirmation. LTF_BOS = structure-based. ANY = highest sign rely. |
| InpMinRR | 2.0 | Minimal Danger:Reward ratio. If the SL/TP geometry of a setup does not meet this, the sign is suppressed solely — no arrow proven. | ⬆️ Increase to 2.5–3.0 for less than probably the most beneficial setups. ⬇️ Decrease to 1.5 for extra indicators. |
🔷 Liquidity Confluence
| Enter | Default | What It Does | Impact If You Change It |
|---|---|---|---|
| InpRequireLiqSweep | true | When enabled, an OB is just legitimate if a close-by equal excessive/low was swept earlier than the OB fashioned. That is the institutional confluence filter. | Set true for highest-quality institutional setups. Set false to point out all OBs regardless — extra indicators, decrease win likelihood. |
| InpEqualLevelPips | 5 | Tolerance in pips for detecting equal highs/lows. Two highs inside 5 pips of one another rely as “equal”. | ⬆️ Increased = looser matching, extra ranges qualify as equal. ⬇️ Decrease to 2–3 for strict exact-level matching. |
🔷 Filters
| Enter | Default | What It Does | Impact If You Change It |
|---|---|---|---|
| InpLondonFilter | true | Solely present indicators throughout London session: 07:00–16:00 UTC. | Flip off if buying and selling AUD/JPY, NZD/JPY or different Asia-session dominant pairs. |
| InpNYFilter | true | Solely present indicators throughout New York session: 13:00–22:00 UTC. | Flip off in the event you solely commerce the London open. The London/NY overlap (13–16 UTC) is the highest-probability window. |
| InpMinATR | 0.0 | Minimal ATR worth a bar should have for a sign to fireside. 0 = disabled. | Set to e.g. 0.0005 on EURUSD to dam indicators throughout lifeless/flat markets forward of stories releases. |
| InpHTF | PERIOD_H4 | Increased timeframe used to find out directional bias through the 200 EMA. | Change to H1 for day buying and selling, D1 for swing/place buying and selling. Have to be increased than your chart TF. |
| InpUseTrendFilter | true | When enabled: bull indicators solely fireplace when value is above the HTF 200 EMA. Bear indicators solely when under it. | Strongly advisable ON. Prevents counter-trend buying and selling. Flip off provided that you commerce reversals particularly. |
🔷 Visuals
| Enter | Default | What It Does |
|---|---|---|
| InpShowZones | true | Draw OB rectangles on the chart. Set false for arrows-only view. |
| InpShowSignals | true | Present entry arrows. Flip off to make use of solely the zone drawing function. |
| InpShowSLTP | true | Present SL and TP dot markers on the chart at sign bars. |
| InpBullOBColor | Inexperienced | Fill color of bullish OB rectangles. Customise to your chart theme. |
| InpBearOBColor | Purple | Fill color of bearish OB rectangles. |
| InpDebugMode | false | Prints OB detection and entry occasions to the Specialists log. Use when troubleshooting. |
5️⃣ What You See on the Chart
| Visible Aspect | What It Means | Motion |
|---|---|---|
| 🟩 Inexperienced stuffed rectangle | Energetic bullish order block — value is predicted to bounce upward from this zone | Look ahead to an extended entry sign when value enters the zone |
| 🟥 Purple stuffed rectangle | Energetic bearish order block — value is predicted to drop from this zone | Look ahead to a brief entry sign when value enters the zone |
| ⬜ Gray rectangle | Expired or mitigated OB (solely seen if InpShowInvalidOBs = true) | Informational solely — don’t commerce these |
| ⬆️ Inexperienced arrow (under bar) | Confirmed bullish entry sign fired at this candle | Take into account going lengthy on the subsequent bar’s open |
| ⬇️ Purple arrow (above bar) | Confirmed bearish entry sign fired at this candle | Take into account going quick on the subsequent bar’s open |
| 🟠 Orange dot | Urged Cease Loss degree (past OB boundary + ATR buffer) | Place SL right here or tighter based mostly in your danger tolerance |
| 🔵 Cyan dot | Urged Take Revenue degree (subsequent liquidity pool / swing high-low) | Use as TP goal or scale out at this degree |
6️⃣ Step-by-Step Buying and selling Situations
🟢 Situation A — Bullish OB Entry on EURUSD M15 (London Session)
Setup: 09:15 UTC, EURUSD in an uptrend on H4. HTF EMA filter = bullish.
| 1 | A powerful bullish impulse candle breaks the prior swing excessive. Physique = 2.1 × ATR. ✅ BOS confirmed. |
| 2 | The indicator finds the final bearish candle earlier than that impulse at 1.08340–1.08390. That is the bullish OB . A 🟩 inexperienced rectangle attracts over this zone. |
| 3 | Worth swept an equal low at 1.08200 two bars earlier than the OB fashioned. ✅ Liquidity sweep confluence confirmed. |
| 4 | Worth rallies, then pulls again into the OB zone 12 bars later. A bullish candle prints with an extended decrease wick (wick = 1.8× physique). ✅ Rejection wick affirmation. |
| 5 | ⬆️ Inexperienced arrow fires under that candle. 🟠 SL dot marks under OB low. 🔵 TP dot marks swing excessive. |
| 6 | R:R = 2.6:1 — above InpMinRR of two.0. ✅ Sign displayed. |
| 7 | Commerce: Lengthy at subsequent bar open. SL under OB low (+ ATR buffer). TP at cyan dot. |
🔴 Situation B — Bearish OB Entry on GBPUSD H1 (NY Session)
Setup: 14:30 UTC, GBPUSD in a downtrend. HTF H4 EMA = bearish.
| 1 | A powerful bearish impulse (physique = 1.8 × ATR) breaks the prior swing low. ✅ BOS confirmed. |
| 2 | Final bullish candle earlier than the impulse at 1.27100–1.27170 turns into the bearish OB . 🟥 Purple rectangle drawn. |
| 3 | An equal excessive at 1.27200 was swept (wick above, shut under) 3 bars earlier than the OB. ✅ Sweep confluence. |
| 4 | Worth retraces up into the OB. A bearish engulfing candle closes contained in the zone with its physique under the midpoint. ✅ Engulf affirmation. |
| 5 | ⬇️ Purple arrow fires. R:R = 2.3:1. ✅ Sign proven. |
| 6 | Commerce: Quick at subsequent bar open. SL above OB excessive. TP at subsequent swing low. |
7️⃣ Beneficial Settings by Buying and selling Type
| Type | Chart TF | Key Settings |
|---|---|---|
| 🎯 Scalper | M5 / M15 | SwingLookback=6, ImpulseATRMult=1.2, OBMaxAge=50, EntryMode=AGGRESSIVE, HTF=H1 |
| 📈 Day Dealer | M15 / M30 | SwingLookback=10, ImpulseATRMult=1.5, OBMaxAge=120, EntryMode=CONSERVATIVE, HTF=H4 |
| 📊 Swing Dealer | H1 / H4 | SwingLookback=15, ImpulseATRMult=2.0, OBMaxAge=300, EntryMode=CONSERVATIVE, HTF=D1 |
8️⃣ Frequent Errors
| ❌ Mistake | ✅ Repair |
|---|---|
| Decreasing ImpulseATRMult under 1.0 and getting dozens of weak OBs on display | Maintain it at 1.3 minimal. Under 1.0 means any small candle can kind an OB — the zones turn out to be unreliable. |
| Turning off the HTF pattern filter and taking indicators towards the pattern | Maintain InpUseTrendFilter = true always till you will have 2–3 months of expertise with the indicator. |
| Getting into the second an OB rectangle seems with out ready for affirmation | The rectangle alone isn’t an entry sign. Watch for the affirmation arrow — it means value reacted to the zone. |
| Ignoring the gray SL dot and utilizing a psychological cease as an alternative | The SL dot is calculated from OB construction. All the time place a tough cease at or past that degree. |
⭐⭐⭐⭐⭐
GET EA FOR FREE HERE: https://www.mql5.com/en/market/product/174870
I might tremendously respect a optimistic assessment in case you are completely satisfied together with your buy.
Please contact me to discover a answer in case you are not.
Your suggestions helps ongoing growth and helps different merchants within the MQL5 group. 🙏
SMC OrderBlock Entry Engine · MetaTrader 5 · Sensible Cash Ideas · Order Blocks · BOS · Non-Repainting · MQL5 Indicator