Model: 11.2 Writer: Giles Platform: MetaTrader 5 (MQL5) Kind: Automated Buying and selling EA based mostly on Sensible Cash Ideas (SMC) / ICT Principle
Desk of Contents
Chapter 1: Product Overview & Structure
1.1 Product Introduction
GilesExpertSMC is a feature-rich MetaTrader 5 automated buying and selling EA (Knowledgeable Advisor) that deeply integrates Sensible Cash Ideas (SMC), ICT (Interior Circle Dealer) principle, and basic technical evaluation indicators, offering merchants with a extremely configurable automated buying and selling framework.
The EA options 20 entry alerts, 9 trailing cease strategies, 6 cash administration modes, and helps multi-timeframe filtering, information filtering, Martingale technique, partial take-profit/stop-loss, and extra. By flexibly combining these modules, customers can construct buying and selling methods starting from easy to complicated — all with out writing a single line of code.
1.2 Core Design Philosophy
The core logic of GilesExpertSMC could be summarized in a single sentence:
Choose 1 entry sign + allow 0 to N filter alerts. The EA will solely place an order when the entry sign and ALL enabled filter alerts concurrently affirm the identical course.
Particularly:
Entry Sign: Solely one could be chosen as the first set off situation. When it generates a bullish (purchase) or bearish (promote) course, and no filter alerts are added, the EA will instantly place an order.
Filter Indicators: Any quantity of filter alerts could be enabled throughout a number of timeframes. When a number of filters are added, all filter alerts should concurrently produce a sign in the identical course because the entry sign earlier than the EA executes a commerce. If any filter sign will not be happy, no order is positioned.
Sign Expiration: Pay particular consideration to the Final Sign Expiration setting for every filter sign. Many alerts solely seem on particular bars; setting an expiration extends the sign’s period.
1.3 General Structure
The EA execution circulation is as follows:
┌─────────────────────────────────────────────────────────────┐ │ OnTick() Triggered │ ├─────────────────────────────────────────────────────────────┤ │ ① CAP Examine → ② Refresh Market Knowledge → ③ Processing() │ ├─────────────────────────────────────────────────────────────┤ │ Processing() Primary Loop │ │ │ │ ┌─ Iterate Current Positions ────────────────────────┐ │ │ │ • CheckClose() Examine shut situations │ │ │ │ • CheckTrailingStop() Primary trailing cease examine │ │ │ │ • CheckTrailingStopForAddPos() Add-pos trailing │ │ │ └──────────────────────────────────────────────────────┘ │ │ │ │ ┌─ Iterate Pending Orders ────────────────────────────┐ │ │ │ • Examine order deletion/expiration situations │ │ │ └──────────────────────────────────────────────────────┘ │ │ │ │ ┌─ Open Place Logic ───────────────────────────────┐ │ │ │ Day by day P&L restrict → Information filter → Hour/Day/Month │ │ │ │ → Unfold examine → Max orders → Course allowed │ │ │ │ → Min place distance → Martin situations │ │ │ │ → Entry sign course + All filters confirmed │ │ │ │ → Cash administration lot calc → Execute open │ │ │ └──────────────────────────────────────────────────────┘ │ └─────────────────────────────────────────────────────────────┘
1.4 Module Overview
| Module Class | Rely | Description |
|---|---|---|
| Entry Indicators | 20 sorts | SMC/ICT/Traditional indicators, choose one |
| Filter Indicators | 5 teams × 20 sorts | Present TF + TF1 + TF2 + SL filter + TP filter + Add-pos filter |
| Trailing Stops | 3 units × 9 sorts | Primary trailing + Add-pos trailing + Partial cease trailing |
| Cash Administration | 6 sorts | None / FixedLot / FixedMargin / FixedRisk / SizeOptimized / SmartRecovery |
| Danger Management | A number of | Day by day P&L limits, floating loss limits, unfold limits, information filter, time filter |
| Superior Methods | A number of | Martingale, CAP, Breakeven-when-loss, Partial TP/SL, Pattern bias filter |
1.5 Embedded Customized Indicators
The EA embeds the next 16 customized indicators through #useful resource , requiring no separate set up:
| Indicator Title | Description |
|---|---|
| SMC_MarketStructure | Market construction evaluation (BOS / CHOCH / Swing Excessive/Low) |
| SMC_OrderBlock | Order Block identification |
| SMC_FVG | Honest Worth Hole detection |
| SMC_BreakerBlock | Breaker Block identification |
| SMC_BSL_SSL | Purchase/Promote Facet Liquidity sweep detection |
| SMC_SwingHL | Swing Excessive/Low identification |
| SMC_FiboRe | Fibonacci Retracement calculation |
| SMC_Killzone | Killzone / Buying and selling Session identification |
| SMC_NWOG_NDOG | New York Week/Day Opening Hole detection |
| SMC_SD_OB | Provide/Demand zones + Order Block combo |
| SMC_StrongImbalance | Robust Imbalance detection |
| SMC_CandlesPatterns | Candlestick sample recognition (Inside bar, Engulfing, Double high/backside, and many others.) |
| SMC_RangeDetector | Consolidation vary detection |
| ICT_Bias | ICT Bias indicator |
| ICT_ATR | ICT Common Day by day Vary |
| Price_Channel | Value Channel indicator |
Chapter 2: EA Primary Settings
Parameter Group: ===========INPUTS FOR EXPERT===========
| Parameter | Default | Description |
|---|---|---|
| Expert_Title | “Giles_Expert_SMC” | EA Title. Displayed on the chart and used for persistent information file naming. |
| Expert_MagicNumber | 123456 | Magic Quantity. Distinctive identifier to tell apart totally different EA cases. Every occasion should use a unique Magic Quantity; in any other case, order administration shall be disrupted. |
| Expert_EveryTick | false | Each Tick Mode. false = checks as soon as per minute bar formation; true = checks on each worth tick. Most alerts do not want tick-level processing; hold false . Set to true solely when utilizing alerts marked (Tick Degree). |
| Expert_slippage | 3 | Slippage Tolerance (adjusted factors). Most allowed worth deviation when putting orders. |
| Expert_spread_allowed | 0.0 | Most Allowed Unfold (in factors). Checked earlier than every order; orders are blocked if unfold exceeds this worth. 0 = no restrict. |
| Expert_account_time_offset | 3.0 | GMT Time Offset. Hours distinction between dealer server time and GMT. Used for information filtering and time-related calculations. Set in accordance with your dealer. |
| Expert_indicator_refresh_frequency | PERIOD_M1 | Indicator Refresh Frequency. Controls how usually the EA’s built-in indicators replace. Default: each minute. |